/* ── Landing page styles ─────────────────────────────────────
   Loaded only on the home/landing page via <link> in landing.html
   ─────────────────────────────────────────────────────────── */

/* Hero — pale Italian flag gradient */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - 4px);
    display: flex;
    align-items: center;
    background: linear-gradient(
        to right,
        #dff0e8 0%,
        #eef8f2 18%,
        #f8fdf9 34%,
        #ffffff 50%,
        #fff5f6 66%,
        #fde8eb 82%,
        #f9dde1 100%
    );
    overflow: hidden;
}

/* Three-stripe top border echoing the flag */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--green) 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    padding-block: 5rem;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.hero h1 {
    color: var(--text);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(0, 146, 70, 0.10);
    border: 1px solid rgba(0, 146, 70, 0.28);
    color: var(--green-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-cta-group .btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.hero-cta-group .btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}
.hero-cta-group .btn-secondary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255,255,255,0.7);
}
.hero-cta-group .btn-secondary:hover {
    background: #fff;
    border-color: var(--green-border);
    color: var(--green-dark);
}

/* Hero portrait — faded background below 1024px, full size above */
.hero-image-wrap {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    opacity: 0.25;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding-block: 5rem;
    }

    .hero-image-wrap {
        width: 75%;
        opacity: 0.25;
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    /* Text stays left; portrait takes its natural width at full hero height */
    .hero-text {
        max-width: 56%;
    }

    .hero-image-wrap {
        width: auto;
        opacity: 1;
    }

    .hero-img {
        height: 100%;
        width: auto;
    }
}

/* ── Easy command panel with image ───────────────────────── */
.ec-panel-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.ec-panel-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-3);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ec-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 0.6rem;
    border: none;
    padding: 0;
    line-height: 1.3;
}

.ec-panel-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .ec-panel-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* ── Tabs (shared: pain + showcase) ─────────────── */
.tab-radio { display: none; }

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    list-style: none;
}

.tab-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    transition: all 0.18s ease;
    user-select: none;
}

.tab-btn:hover {
    border-color: var(--green-border);
    color: var(--green);
    background: var(--green-subtle);
}

/* Goal tab active state (green) */
#goal-tab-0:checked ~ .tab-list label[for="goal-tab-0"],
#goal-tab-1:checked ~ .tab-list label[for="goal-tab-1"],
#goal-tab-2:checked ~ .tab-list label[for="goal-tab-2"],
#goal-tab-3:checked ~ .tab-list label[for="goal-tab-3"] {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.tab-panel { display: none; }

/* Goal panels */
#goal-tab-0:checked ~ .tab-panel[data-panel="0"],
#goal-tab-1:checked ~ .tab-panel[data-panel="1"],
#goal-tab-2:checked ~ .tab-panel[data-panel="2"],
#goal-tab-3:checked ~ .tab-panel[data-panel="3"] { display: block; }

/* Easy command panel */
.ec-panel {
    background: var(--bg-2);
    border: 2px solid var(--red-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Red accent for pain tabs only */
[data-tab-group="pain"] .tab-btn:hover {
    border-color: var(--red-border);
    color: var(--red);
    background: var(--red-subtle);
}

/* Pain tab active state (red) */
#pain-tab-0:checked ~ .tab-list label[for="pain-tab-0"],
#pain-tab-1:checked ~ .tab-list label[for="pain-tab-1"],
#pain-tab-2:checked ~ .tab-list label[for="pain-tab-2"],
#pain-tab-3:checked ~ .tab-list label[for="pain-tab-3"],
#pain-tab-4:checked ~ .tab-list label[for="pain-tab-4"] {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Pain panels */
#pain-tab-0:checked ~ .tab-panel[data-panel="0"],
#pain-tab-1:checked ~ .tab-panel[data-panel="1"],
#pain-tab-2:checked ~ .tab-panel[data-panel="2"],
#pain-tab-3:checked ~ .tab-panel[data-panel="3"],
#pain-tab-4:checked ~ .tab-panel[data-panel="4"] { display: block; }

/* Goal tab wrapper — green bordered box */
[data-tab-group="goal"] .tab-panel {
    background: var(--bg-2);
    border: 2px solid var(--green-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
}

/* Showcase panel */
.sc-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.sc-panel-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.sc-panel-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-3);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Trust logos ─────────────────────────────────────────── */
.trust-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}

.trust-logo {
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.2s, filter 0.2s;
    max-height: 40px;
}

.trust-logo:hover {
    opacity: 1;
    filter: none;
}

/* ── Social proof ────────────────────────────────────────── */
.testimonial-card {
    position: relative;
    padding-top: 2rem;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 0.25rem;
    left: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--green);
    opacity: 0.4;
    font-family: Georgia, serif;
}

.testimonial-quote {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-border);
}

.testimonial-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-subtle);
    border: 2px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--green);
    font-weight: 700;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ── Image + text sections ───────────────────────────────── */
.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-text-section.image-right .image-text-img  { order: 2; }
.image-text-section.image-right .image-text-body { order: 1; }

.image-text-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-text-img::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,146,70,0.12), rgba(206,43,55,0.06));
    z-index: 0;
}

.image-text-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    display: block;
}

.image-text-body h2 {
    border-left: none;
    padding-left: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 0.75rem;
}

.image-text-body p {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.image-text-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ── Final CTA / Guarantee ───────────────────────────────── */
.final-cta-section {
    background: linear-gradient(135deg,
        var(--green-subtle) 0%,
        var(--bg) 50%,
        var(--red-subtle) 100%
    );
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.final-cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.final-cta-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.final-cta-inner p {
    max-width: 600px;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.final-cta-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.final-cta-img-wrap::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,146,70,0.12), rgba(206,43,55,0.06));
    z-index: 0;
}

.final-cta-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    display: block;
}

@media (min-width: 768px) {
    .final-cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .final-cta-inner { grid-template-columns: 55fr 45fr; }
}

/* ── Landing footer ──────────────────────────────────────── */
.landing-footer {
    background: var(--text);
    color: rgba(255,255,255,0.75);
    padding-block: 4rem 2rem;
}

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

.landing-footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.landing-footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 340px;
    margin-bottom: 0;
}

.landing-footer h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    margin-top: 0;
    border: none;
    padding: 0;
}

.landing-footer-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.landing-footer-info li {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.landing-footer-info a {
    color: rgba(255,255,255,0.7);
}

.landing-footer-info a:hover {
    color: var(--green-light);
}

.landing-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.landing-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.landing-footer-social a:hover {
    background: var(--green);
    color: #fff;
}

.social-svg-icon {
    display: block;
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.landing-footer-social a:hover .social-svg-icon {
    opacity: 1;
}

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

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

.landing-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.landing-footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.landing-footer-bottom-links a:hover {
    color: rgba(255,255,255,0.85);
}

/* ── Responsive overrides ────────────────────────────────── */
@media (max-width: 900px) {
    .sc-panel { grid-template-columns: 1fr; }
    .image-text-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .image-text-section.image-right .image-text-img,
    .image-text-section.image-right .image-text-body {
        order: unset;
    }
    .landing-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .final-cta-section { padding-block: 4rem; }
}
