/* ==========================================================
   Homepage styles (code/templates/website/homepage.html.twig)
   Extracted from inline <style> blocks.
   ========================================================== */

/* ----- Sentiment dots (same colours as 🟢/🔵/🔴 in e-mail subjects) ----- */
.sentiment-dot-lg {
    display: inline-block;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.35rem;
}

.sentiment-dot-lg--positive { background: #34c759; }
.sentiment-dot-lg--neutral { background: #3b82f6; }
.sentiment-dot-lg--negative { background: #ff3b30; }

/* ----- Hero: phone lock screen with GpwAlert notifications ----- */
.hero-lock {
    padding: 0.5rem 1.5rem;
}

.hero-lock__phone {
    position: relative;
    width: 250px;
    aspect-ratio: 9 / 19.5;
    margin: 0 auto;
    padding: 9px;
    border-radius: 46px;
    background: #1b1d20;
    box-shadow: inset 0 0 0 1.5px #555a61, 0 40px 80px -30px rgba(0, 60, 52, 0.6);
}

.hero-lock__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 38px;
    color: #fff;
    background:
        radial-gradient(120% 70% at 20% 0%, #26a69a 0%, transparent 60%),
        radial-gradient(90% 60% at 100% 100%, #ffc107 0%, transparent 55%),
        linear-gradient(170deg, #00695c, #003d36 70%);
}

.hero-lock__island {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    border-radius: 14px;
    background: #000;
}

.hero-lock__clock {
    padding-top: 2.8rem;
    text-align: center;
    line-height: 1;
}

.hero-lock__date {
    font-size: 0.8rem;
    opacity: 0.85;
}

.hero-lock__time {
    margin-top: 0.2rem;
    font-size: 3.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-lock__list {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.hero-lock__n {
    display: flex;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
    font-size: 0.66rem;
    line-height: 1.3;
    opacity: 0;
    animation: heroLockIn 12s infinite;
}

.hero-lock__n img {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #fff;
}

.hero-lock__n > div {
    flex: 1;
    min-width: 0;
}

.hero-lock__n b {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.68rem;
    white-space: nowrap;
}

.hero-lock__n b > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-lock__n b small {
    font-weight: 400;
    opacity: 0.75;
}

.hero-lock__n:nth-child(3) { animation-delay: 1.2s; }
.hero-lock__n:nth-child(2) { animation-delay: 2.4s; }
.hero-lock__n:nth-child(1) { animation-delay: 3.6s; }

.hero-lock__bar {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.8);
}

@keyframes heroLockIn {
    0% { opacity: 0; transform: translateY(24px) scale(0.94); }
    5%, 85% { opacity: 1; transform: none; }
    95%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-lock__n { animation: none; opacity: 1; }
}

/* ----- Generic comparison image helper ----- */
.comparison-image {
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.comparison-image:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

/* ----- Hero stats (social proof line under subheader) ----- */
.hero-projecth__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-projecth__stats strong {
    color: #00796b;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .hero-projecth__stats {
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-projecth__stats .mx-2 {
        display: none !important;
    }
}

/* ----- Mobile responsive typography for hero ----- */
@media (max-width: 767.98px) {
    .hero-projecth__header {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-projecth__subheader {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    .hero-projecth__subheader ul li {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }

    .hero-projecth__subheader ul li small {
        display: none !important;
    }

    .home-search {
        display: none !important;
    }
}

/* ==========================================================
   Hero bento grid – compact feature showcase
   ========================================================== */
.hero-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(72px, auto);
    gap: 0.6rem;
    margin: 1.25rem 0 1.75rem 0;
    max-width: 640px;
}

.hero-bento__tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    background: rgba(0, 121, 107, 0.04);
    border: 1px solid rgba(0, 121, 107, 0.14);
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    overflow: hidden;
}

.hero-bento__tile:hover {
    transform: translateY(-3px);
    background: rgba(0, 121, 107, 0.08);
    border-color: rgba(0, 121, 107, 0.4);
    box-shadow: 0 10px 24px rgba(0, 121, 107, 0.15);
}

.hero-bento__tile--flagship {
    grid-column: span 2;
    grid-row: span 1;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.10) 0%, rgba(38, 166, 154, 0.06) 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
}

.hero-bento__tile--flagship::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: conic-gradient(from 0deg, rgba(0, 121, 107, 0.55), rgba(38, 166, 154, 0.15), rgba(0, 121, 107, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: bento-spin 6s linear infinite;
    pointer-events: none;
}

.hero-bento__tile--flagship::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: bento-shine 5s ease-in-out infinite;
    pointer-events: none;
}

.hero-bento__tile--wide {
    grid-column: 1 / -1;
}

.hero-bento__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00796B 0%, #26A69A 100%);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 121, 107, 0.3);
    animation: bento-float 3.5s ease-in-out infinite;
}

.hero-bento__tile--flagship .hero-bento__icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.4);
}

.hero-bento__tile:nth-child(2) .hero-bento__icon { animation-delay: .4s; }
.hero-bento__tile:nth-child(3) .hero-bento__icon { animation-delay: .8s; }
.hero-bento__tile:nth-child(4) .hero-bento__icon { animation-delay: 1.2s; }
.hero-bento__tile:nth-child(5) .hero-bento__icon { animation-delay: 1.6s; }

.hero-bento__content { min-width: 0; }

.hero-bento__title {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    color: var(--c-fg);
    margin-bottom: 0.1rem;
}

.hero-bento__tile--flagship .hero-bento__title { font-size: 1.02rem; }

.hero-bento__desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.6);
}

@keyframes bento-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

@keyframes bento-spin {
    to { transform: rotate(360deg); }
}

@keyframes bento-shine {
    0%   { left: -60%; }
    60%  { left: 120%; }
    100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bento__icon,
    .hero-bento__tile--flagship::before,
    .hero-bento__tile--flagship::after {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .hero-bento { grid-template-columns: 1fr; gap: 0.5rem; }
    .hero-bento__tile--flagship { grid-column: auto; padding: 0.85rem 1rem; }
    .hero-bento__tile--flagship .hero-bento__icon { width: 40px; height: 40px; font-size: 1rem; }
    .hero-bento__tile--flagship .hero-bento__title { font-size: 0.95rem; }
}

/* ==========================================================
   Pricing cards
   ========================================================== */
.pricing-trial-badge {
    display: inline-block;
    background-color: #e0f2f1;
    color: #00796b;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.pricing-card-featured {
    border: 2px solid #00796b !important;
    box-shadow: 0 10px 30px rgba(0, 121, 107, 0.18) !important;
    transform: translateY(-4px);
}

.pricing-featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00796b 0%, #00a896 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.25);
}

@media (max-width: 575.98px) {
    .pricing-card-featured {
        transform: none;
    }

    .pricing-featured-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ==========================================================
   Alert preview sections (ESPI / Financial / Weekly / Dashboard)
   Shared: teal gradient background sections
   ========================================================== */
.alert-preview img {
    max-height: 500px;
    max-width: 100%;
    object-fit: contain;
}

.alert-preview-section h2 {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.alert-preview-section p {
    font-weight: 400;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.alert-preview-section .feature-item div {
    font-weight: 400;
    line-height: 1.5;
}

.alert-preview-section .feature-item strong {
    font-weight: 600;
}

.alert-preview-section .col-lg-7:first-child {
    padding-left: 5rem !important;
}

@media (max-width: 991.98px) {
    .alert-preview-section .col-lg-7:first-child {
        padding-left: 1rem !important;
    }

    .alert-preview-section h2 {
        text-align: center !important;
    }
}

/* ----- Shared mobile-phone-shaped video wrapper ----- */
.homepage-inline-video-mobile-wrap {
    position: relative;
    width: min(100%, calc(min(70vh, 560px) * 9 / 19.5));
    aspect-ratio: 9 / 19.5;
    margin-left: auto;
    margin-right: auto;
    background: #111;
}

.homepage-inline-video-mobile-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .homepage-inline-video-mobile-wrap {
        width: min(100%, calc(min(72vh, 680px) * 9 / 19.5));
    }
}

/* ==========================================================
   AI Top Picks section + track record cards
   ========================================================== */
.ai-top-picks-section h2 {
    font-weight: 600;
    color: #2c3e50;
}

.ai-top-picks-section p {
    font-weight: 400;
    color: #5a6c7d;
    line-height: 1.6;
}

.ai-top-picks-section .feature-item div {
    font-weight: 400;
    line-height: 1.5;
    color: #2c3e50;
}

.ai-top-picks-section .feature-item strong {
    font-weight: 600;
    color: #2c3e50;
}

.track-record-block .track-record-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.track-record-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.track-card {
    border-radius: .75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid transparent;
    line-height: 1.2;
    background-color: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.track-card-head {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #5a6c7d;
    margin-bottom: .5rem;
}

.track-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.1;
    margin-bottom: .25rem;
}

.track-card-period {
    font-size: .78rem;
    color: #8a99a8;
}

.track-card.positive {
    background-color: rgba(0, 121, 107, .08);
    border-color: rgba(0, 121, 107, .2);
}

.track-card.positive .track-card-value,
.track-card.positive .track-card-head {
    color: #00796b;
}

.track-card.negative {
    background-color: rgba(220, 53, 69, .06);
    border-color: rgba(220, 53, 69, .2);
}

.track-card.negative .track-card-value,
.track-card.negative .track-card-head {
    color: #c02333;
}

.track-card.neutral {
    background-color: #f4f6f8;
    border-color: #e5e9ed;
}

.track-card.neutral .track-card-value {
    color: #8a99a8;
    font-size: 1.25rem;
}

@media (max-width: 575.98px) {
    .track-record-grid {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .track-card {
        padding: .85rem;
    }

    .track-card-value {
        font-size: 1.5rem;
    }
}

/* ==========================================================
   Weekly alerts section
   ========================================================== */
.weekly-alerts-section h2 {
    font-weight: 600;
    color: #2c3e50;
}

.weekly-alerts-section p {
    font-weight: 400;
    color: #5a6c7d;
    line-height: 1.6;
}

.weekly-alerts-section .feature-item div {
    font-weight: 400;
    line-height: 1.5;
    color: #2c3e50;
}

.weekly-alerts-section .feature-item strong {
    font-weight: 600;
    color: #2c3e50;
}

.weekly-alerts-preview img {
    max-height: 500px;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #e9ecef;
}

/* ==========================================================
   Panel inwestora features grid (dark teal section)
   ========================================================== */
.panel-features-grid .feature-tile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.panel-features-grid .feature-tile:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.panel-features-grid .feature-tile .feature-tile-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
}

/* ----- Weekly summary countdown (Niedzielne podsumowanie) ----- */
.weekly-countdown {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    background: rgba(0, 121, 107, 0.08);
    color: #00695c;
    font-size: 0.9rem;
    line-height: 1.3;
}

.weekly-countdown-label {
    color: #00695c;
    font-weight: 500;
}

.weekly-countdown-target {
    color: #004d40;
}

.weekly-countdown-remaining {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #00796b;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.weekly-countdown-remaining:empty {
    display: none;
}

/* ----- GPW live events section (Co dzieje sie na GPW w tym tygodniu) ----- */
.gpw-live-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-radius: 24px;
    padding: 3rem 2rem !important;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.gpw-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gpw-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    animation: gpwLivePulse 1.8s ease-out infinite;
}

@keyframes gpwLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.gpw-stat-tile {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gpw-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.gpw-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.gpw-stat-icon-earnings { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.gpw-stat-icon-dividend { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.gpw-stat-icon-exdate   { background: rgba(20, 184, 166, 0.12); color: #0f766e; }
.gpw-stat-icon-wza      { background: rgba(99, 102, 241, 0.12); color: #4338ca; }

.gpw-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.gpw-stat-label {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.35;
}

.gpw-stat-sub {
    font-size: 0.75rem;
    color: #15803d;
    font-weight: 600;
    margin-top: 0.2rem;
}

.gpw-stat-tile-highlight {
    text-align: left;
}

.gpw-stat-tile-highlight .gpw-stat-icon {
    margin-bottom: 0.5rem;
}

.gpw-stat-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 0.15rem;
}

.gpw-stat-company {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpw-featured-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.gpw-featured-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gpw-featured-item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 3px solid #6366f1;
    transition: background-color 0.15s ease;
}

.gpw-featured-item:hover {
    background: #f1f5f9;
}

.gpw-featured-date {
    flex: 0 0 auto;
    min-width: 56px;
    text-align: center;
    padding-right: 1rem;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gpw-featured-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.gpw-featured-month {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.gpw-featured-when {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    background: #e2e8f0;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.gpw-featured-when-today {
    background: #fee2e2;
    color: #b91c1c;
}

.gpw-featured-when-tomorrow {
    background: #fef3c7;
    color: #b45309;
}

.gpw-featured-body {
    flex: 1 1 auto;
    min-width: 0;
}

.gpw-featured-ticker {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.gpw-featured-title {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.gpw-live-cta {
    padding-top: 1rem;
}

@media (max-width: 576px) {
    .gpw-live-section {
        padding: 2rem 1rem !important;
        border-radius: 16px;
    }

    .gpw-stat-number {
        font-size: 1.5rem;
    }

    .gpw-featured-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gpw-featured-date {
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        padding-bottom: 0.5rem;
        min-width: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .gpw-featured-month {
        margin-top: 0;
    }
}

