/* =====================================================
   TRAINING PROGRAM — Locked In Lx
   Dark editorial, gold accents — matches rules/highlights.
   ===================================================== */

:root {
    --tr-bg: #000;
    --tr-surface: #0f0f12;
    --tr-surface-2: #18181b;
    --tr-line: rgba(255, 255, 255, 0.07);
    --tr-text: #e4e4e7;
    --tr-dim: #a1a1aa;
    --tr-gold: #FFD700;
    --tr-green: #25D366;
}

body { background: var(--tr-bg); }

/* ============================ HERO ============================ */
.tr-hero {
    position: relative;
    min-height: 62vh;
    min-height: 62dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 32px 76px;
    background:
        radial-gradient(ellipse at 22% 38%, rgba(255, 215, 0, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 68%, rgba(133, 20, 75, 0.20) 0%, transparent 60%),
        #050505;
}
.tr-hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5; z-index: 1; pointer-events: none;
}
.tr-hero-content {
    position: relative; z-index: 2;
    max-width: 1100px; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
}
.tr-phase { display: flex; align-items: center; gap: 12px; }
.tr-phase-dot {
    width: 7px; height: 7px; background: var(--tr-gold);
    border-radius: 50%; box-shadow: 0 0 12px rgba(255,215,0,0.7);
    animation: tr-pulse 2.4s ease-in-out infinite;
}
@keyframes tr-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.25)} }
.tr-phase-text {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.tr-hero-title {
    font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: 0.88;
    color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin: 0;
}
.tr-hero-title span { color: var(--tr-gold); -webkit-text-stroke: 1px var(--tr-gold); }
.tr-hero-body {
    max-width: 560px; color: var(--tr-dim);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem); line-height: 1.7; margin: 6px 0 0;
}
.tr-hero-meta {
    display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap;
}
.tr-meta-item { display: flex; flex-direction: column; gap: 4px; }
.tr-meta-value {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
    font-size: 2.1rem; line-height: 1; color: #fff;
}
.tr-meta-label {
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.45);
}
.tr-meta-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

/* ============================ PACKS ============================ */
.tr-packs {
    max-width: 1100px; margin: 80px auto 0; padding: 0 32px;
}
.tr-section-head { margin-bottom: 40px; }
.tr-section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--tr-gold); margin-bottom: 10px;
}
.tr-section-tag::before {
    content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.tr-section-title {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
    font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.95;
    color: #fff; text-transform: uppercase; letter-spacing: 0.03em; margin: 0;
}
.tr-section-sub {
    font-family: 'Inter', sans-serif; color: var(--tr-dim);
    font-size: 0.98rem; margin: 10px 0 0; max-width: 560px; line-height: 1.6;
}

.tr-pack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.tr-pack {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--tr-line);
    border-radius: 18px;
    padding: 34px 30px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.19,1,0.22,1),
                border-color 0.3s ease,
                box-shadow 0.5s ease;
}

/* Ambient film-grain texture (matches hero / menu) */
.tr-pack::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Gold glow — blooms on hover; the featured card keeps a soft drift at rest */
.tr-pack::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(255,215,0,0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    z-index: 0;
}
.tr-pack:hover::after { opacity: 1; }

/* Keep content above the decorative layers */
.tr-pack-name,
.tr-pack-tagline,
.tr-price-row,
.tr-features,
.tr-pack-cta { position: relative; z-index: 1; }
.tr-pack-badge { z-index: 2; }   /* keeps its own position:absolute */

.tr-pack:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 26px 50px -24px rgba(0,0,0,0.75);
}

.tr-pack--featured {
    --accent: var(--tr-gold);
    border: 1px solid rgba(255, 215, 0, 0.55);
}
/* Slow gold light drift on the featured card, even at rest */
.tr-pack--featured::after {
    opacity: 0.55;
    animation: tr-glow-drift 7s ease-in-out infinite;
}
.tr-pack--featured:hover::after {
    opacity: 1;
    animation: none;
}
@keyframes tr-glow-drift {
    0%, 100% { background: radial-gradient(circle at 30% 0%, rgba(255,215,0,0.14), transparent 62%); }
    50%      { background: radial-gradient(circle at 72% 8%, rgba(255,215,0,0.18), transparent 64%); }
}

.tr-pack[data-accent="blue"]  { --accent: #3B82F6; }
.tr-pack[data-accent="gold"]  { --accent: var(--tr-gold); }

/* ===== Scroll-reveal entrance ===== */
.tr-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.19,1,0.22,1);
    will-change: opacity, transform;
}
.tr-reveal.in {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger within each group */
.tr-pack-grid .tr-pack:nth-child(2).tr-reveal { transition-delay: 0.12s; }
.tr-steps .tr-step:nth-child(1).tr-reveal { transition-delay: 0.05s; }
.tr-steps .tr-step:nth-child(2).tr-reveal { transition-delay: 0.15s; }
.tr-steps .tr-step:nth-child(3).tr-reveal { transition-delay: 0.25s; }
.tr-proof-grid .tr-proof-card:nth-child(3n+2).tr-reveal { transition-delay: 0.08s; }
.tr-proof-grid .tr-proof-card:nth-child(3n+3).tr-reveal { transition-delay: 0.16s; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .tr-reveal { opacity: 1; transform: none; transition: none; }
    .tr-pack--featured::after { animation: none; }
    .tr-pack, .tr-price, .tr-features li, .tr-pack-cta::after { transition: none; }
}

.tr-pack-badge {
    position: absolute; top: 22px; right: 22px;
    background: var(--tr-gold); color: #0a0a0a;
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 99px;
}

.tr-pack-name {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1;
    color: #fff; text-transform: uppercase; letter-spacing: 0.02em;
    margin: 6px 0 0;
}
.tr-pack-tagline {
    font-family: 'Inter', sans-serif; color: var(--tr-dim);
    font-size: 13px; margin: 8px 0 0; line-height: 1.5;
}

.tr-price-row {
    display: flex; align-items: flex-end; gap: 12px;
    margin: 24px 0 4px; padding-bottom: 22px;
    border-bottom: 1px solid var(--tr-line);
}
.tr-price {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
    font-size: 3.4rem; line-height: 0.9; color: var(--tr-gold);
    transform-origin: left bottom;
    transition: transform 0.45s cubic-bezier(0.19,1,0.22,1), text-shadow 0.4s ease;
}
.tr-pack:hover .tr-price {
    transform: scale(1.05);
    text-shadow: 0 0 26px rgba(255, 215, 0, 0.45);
}
.tr-price-meta {
    display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px;
}
.tr-price-duration {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 0.04em;
}
.tr-price-note {
    font-family: 'Inter', sans-serif; font-size: 11px; color: var(--tr-dim);
    letter-spacing: 0.04em;
}

.tr-features {
    list-style: none; margin: 24px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.tr-features li {
    display: flex; align-items: flex-start; gap: 12px;
    font-family: 'Inter', sans-serif; font-size: 14px;
    color: var(--tr-text); line-height: 1.5;
    transition: transform 0.45s cubic-bezier(0.19,1,0.22,1), color 0.3s ease;
}
/* Cascade the feature rows on hover */
.tr-pack:hover .tr-features li { transform: translateX(6px); }
.tr-pack:hover .tr-features li:nth-child(1) { transition-delay: 0.02s; }
.tr-pack:hover .tr-features li:nth-child(2) { transition-delay: 0.06s; }
.tr-pack:hover .tr-features li:nth-child(3) { transition-delay: 0.10s; }
.tr-pack:hover .tr-features li:nth-child(4) { transition-delay: 0.14s; }
.tr-pack:hover .tr-features li:nth-child(5) { transition-delay: 0.18s; }
.tr-features svg {
    flex-shrink: 0; margin-top: 2px; color: var(--accent, var(--tr-gold));
    transition: transform 0.45s cubic-bezier(0.19,1,0.22,1);
}
.tr-pack:hover .tr-features li svg { transform: scale(1.15); }
.tr-features li.opt { color: var(--tr-dim); }
.tr-features li.opt .tr-opt-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--tr-dim);
    border: 1px solid var(--tr-line); padding: 1px 7px; border-radius: 99px;
    margin-left: 6px;
}

.tr-pack-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 28px; padding: 16px 24px; border-radius: 99px;
    background: var(--tr-green); color: #fff; text-decoration: none;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    position: relative; overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.19,1,0.22,1), box-shadow 0.3s ease, background 0.3s ease;
}
/* Shine sweep across the CTA on card hover */
.tr-pack-cta::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.38), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.7s cubic-bezier(0.19,1,0.22,1);
}
.tr-pack:hover .tr-pack-cta::after { left: 130%; }
.tr-pack-cta:hover {
    background: #1EBE57; transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37,211,102,0.32);
}

/* ============================ HOW IT WORKS ============================ */
.tr-how {
    max-width: 1100px; margin: 90px auto 0; padding: 0 32px;
}
.tr-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px;
}
.tr-step {
    background: var(--tr-surface); border: 1px solid var(--tr-line);
    border-radius: 14px; padding: 28px 24px;
}
.tr-step-num {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
    font-size: 2.4rem; color: var(--tr-gold); line-height: 1;
}
.tr-step-title {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    font-size: 1.3rem; color: #fff; text-transform: uppercase;
    letter-spacing: 0.03em; margin: 14px 0 6px;
}
.tr-step-body {
    font-family: 'Inter', sans-serif; font-size: 13px;
    color: var(--tr-dim); line-height: 1.6; margin: 0;
}

/* ============================ SOCIAL PROOF ============================ */
.tr-proof {
    max-width: 1280px; margin: 90px auto 0; padding: 0 22px;
}
.tr-proof-head { padding: 0 10px; }
.tr-proof-grid {
    margin-top: 36px;
    column-count: 3;
    column-gap: 16px;
}
.tr-proof-card {
    display: block; width: 100%; margin: 0 0 16px;
    border: 1px solid var(--tr-line); border-radius: 14px;
    overflow: hidden; background: var(--tr-surface);
    position: relative; break-inside: avoid; text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.tr-proof-card:hover {
    transform: translateY(-4px); border-color: rgba(255,215,0,0.45);
    box-shadow: 0 16px 34px rgba(0,0,0,0.5);
}
.tr-proof-card img {
    width: 100%; height: auto; display: block; vertical-align: bottom;
    transition: transform 0.7s cubic-bezier(0.19,1,0.22,1), filter 0.4s ease;
}
.tr-proof-card:hover img { transform: scale(1.05); filter: brightness(1.06); }
.tr-proof-overlay {
    position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    pointer-events: none;
}
.tr-proof-cap {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    color: #fff; font-size: 1.02rem; margin: 0;
}
.tr-proof-tag {
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--tr-gold);
}

/* ============================ CTA BANNER ============================ */
.tr-cta {
    margin-top: 90px;
    padding: 90px 32px 110px;
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.06) 0%, transparent 62%), #050505;
    border-top: 1px solid var(--tr-line);
}
.tr-cta-inner {
    max-width: 680px; margin: 0 auto; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.tr-cta-eyebrow {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    color: var(--tr-gold); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
}
.tr-cta-title {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.2rem); color: #fff;
    text-transform: uppercase; letter-spacing: 0.02em; margin: 0; line-height: 1.05;
}
.tr-cta-body {
    font-family: 'Inter', sans-serif; color: var(--tr-dim);
    font-size: 15px; line-height: 1.7; max-width: 460px; margin: 0;
}
.tr-cta-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
    padding: 16px 30px; border-radius: 99px; background: var(--tr-green);
    color: #fff; text-decoration: none; font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    transition: transform 0.3s cubic-bezier(0.19,1,0.22,1), box-shadow 0.3s ease, background 0.3s ease;
}
.tr-cta-btn:hover {
    background: #1EBE57; transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37,211,102,0.32);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
    .tr-proof-grid { column-count: 2; }
}
@media (max-width: 860px) {
    .tr-pack-grid { grid-template-columns: 1fr; }
    .tr-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .tr-hero { min-height: 54vh; min-height: 54dvh; padding: 110px 22px 56px; }
    .tr-hero-meta { gap: 16px; }
    .tr-meta-divider { display: none; }
    .tr-packs, .tr-how { padding: 0 22px; margin-top: 60px; }
    .tr-pack { padding: 28px 22px 26px; }
    .tr-price { font-size: 2.8rem; }
    .tr-proof { margin-top: 64px; }
    .tr-proof-grid { column-count: 2; column-gap: 10px; }
    .tr-proof-card { margin-bottom: 10px; }
    .tr-cta { margin-top: 64px; padding: 70px 22px 84px; }
}
@media (max-width: 480px) {
    .tr-proof-grid { column-count: 1; }
}
