/* ==============================================
   PREMIUM EDITORIAL DESIGN SYSTEM — ConfrontaReTutto
   Pixel Perfect inspired by ZONIXX Minimalist Layout
   ============================================== */

/* ── Custom Properties ── */
:root {
    /* Color Palette */
    --bg-color: #f3f3f0;
    --text-primary: #000000;
    --text-secondary: #555555;
    --text-tertiary: #7c7c7c;
    --border-color: rgba(0, 0, 0, 0.12);
    --border-thick: 1.5px solid #000000;
    
    /* Fonts */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-soft: 'Outfit', sans-serif;

    /* Transition */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.4s var(--ease);
    --transition-fast: all 0.2s var(--ease);
}

/* ── Base Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Subtle Tricolore top stripe */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #008c45 0%, #008c45 33.33%, #ffffff 33.33%, #ffffff 66.66%, #cd212a 66.66%, #cd212a 100%);
    z-index: 2000;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ── Layout Grid ── */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.text-center { text-align: center; }
.block-center { margin-left: auto; margin-right: auto; }

/* ── Shared Elements ── */

/* Star Decorator ✦ */
.star-decorator {
    color: var(--text-primary);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.star-decorator.white {
    color: #ffffff;
}

/* Pill Outline Button */
.btn-pill-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--text-primary);
    border-radius: 100px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-pill-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-pill-outline.white {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-pill-outline.white:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ── HEADER ── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(243, 243, 240, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-fast);
}

#site-header.scrolled {
    background-color: rgba(243, 243, 240, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: invert(1);
    flex-shrink: 0;
    border-radius: 50%;
}

.logo-wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.tricolore-badge {
    display: inline-flex;
    width: 22px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-left: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.tricolore-badge .stripe {
    flex: 1;
    height: 100%;
}

.tricolore-badge .stripe.green { background-color: #008c45; }
.tricolore-badge .stripe.white { background-color: #ffffff; }
.tricolore-badge .stripe.red { background-color: #cd212a; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-cta-wrapper {
    display: flex;
    align-items: center;
}

/* ── HERO SECTION ── */
#hero {
    padding: 130px 0 60px;
}

.hero-top {
    text-align: center;
    margin-bottom: 40px;
}

.hero-tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 8vw, 6.8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--text-primary);
}

.hero-brands {
    margin-top: 50px;
}

.showcase-section {
    padding: 80px 0 90px;
}

/* Hero Bento Card */
.hero-card {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.hero-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-transform: uppercase;
    max-width: 400px;
}

.hero-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.hero-card-desc {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 440px;
}

.hero-card-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-badges {
    display: flex;
    gap: 8px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-play-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-play-circle:hover {
    transform: scale(1.1) rotate(180deg);
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}



/* ── APP COMPARISON SECTION ── */
#comparison {
    padding: 90px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 8px;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-see-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-see-all:hover {
    opacity: 0.7;
}

.circle-arrow-black {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}/* ── Comparison Cards Grid ── */
.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Hero Split Layout ── */
.hero-split-grid {
    display: grid;
    grid-template-columns: 0.8fr 2.2fr;
    gap: 72px;
    align-items: center;
}

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

.hero-left-text .hero-tagline {
    text-align: left;
    margin-bottom: 12px;
}

.hero-left-text .hero-title {
    text-align: left;
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 28px;
    text-align: left;
}

.hero-action-row {
    display: flex;
    align-items: center;
}

.hero-right-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}


/* ── Compliance Section (between hero and showcase) ── */
.compliance-section {
    padding: 20px 0;
    background-color: var(--bg-color);
}

.compliance-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.compliance-legal-text {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.01em;
    text-align: left;
    flex-shrink: 0;
}

.compliance-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.compliance-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.compliance-logo-item:hover {
    opacity: 1;
}

.compliance-vline {
    width: 1px;
    height: 32px;
    background: #ccc;
    flex-shrink: 0;
}


/* ── Vertical 9:16 App Card ── */
.app-vertical-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background-color: #0b0b0d;
    transition: var(--transition-smooth);
}

.app-vertical-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Sisal featured highlights */
.app-vertical-card.featured {
    border: 2px solid #ffffff;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
}

.row-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.row-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.app-vertical-card:hover .row-bg-img {
    transform: scale(1.03);
}

.row-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.row-content.vertical {
    position: relative;
    z-index: 3;
    padding: 24px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.card-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.card-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #0b0b0d;
}

.row-category-badge {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    display: block;
}

.row-brand-name {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
}

.row-rating-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    margin-top: 2px;
}

.row-score {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

.stars-mini {
    color: #ffb800;
    font-size: 14px;
    letter-spacing: 2.5px;
    display: inline-flex;
    gap: 1px;
}

/* Split each star into a span for staggered animation */
.stars-mini span {
    display: inline-block;
    animation: starPulse 2.8s ease-in-out infinite;
    transform-origin: center;
}

.stars-mini span:nth-child(1) { animation-delay: 0s; }
.stars-mini span:nth-child(2) { animation-delay: 0.18s; }
.stars-mini span:nth-child(3) { animation-delay: 0.36s; }
.stars-mini span:nth-child(4) { animation-delay: 0.54s; }
.stars-mini span:nth-child(5) { animation-delay: 0.72s; }

@keyframes starPulse {
    0%, 100% {
        color: #ffb800;
        transform: scale(1);
        text-shadow: none;
    }
    40% {
        color: #ffe066;
        transform: scale(1.22);
        text-shadow: 0 0 8px rgba(255, 200, 0, 0.7), 0 0 16px rgba(255, 180, 0, 0.35);
    }
    60% {
        color: #ffcc00;
        transform: scale(1.10);
        text-shadow: 0 0 5px rgba(255, 200, 0, 0.4);
    }
}

.card-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row-benefits.compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.row-benefits.compact li {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-benefits.compact li::before {
    content: "✓";
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.card-cta-btn {
    width: 100%;
    height: 44px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    margin-top: 8px;
}

.card-cta-btn svg {
    transition: var(--transition-fast);
}

.card-cta-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.card-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Featured card CTA hierarchy (Solid by default) */
.featured .card-cta-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.featured .card-cta-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* ── SNAI #1 Badge highlight ── */
.snai-badge {
    color: #FFD166;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.6);
    animation: snai-glow 2.5s ease-in-out infinite;
}

@keyframes snai-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 209, 102, 0.5); }
    50%       { text-shadow: 0 0 18px rgba(255, 209, 102, 0.9); }
}

/* SNAI CTA — brand yellow-orange (overrides .featured white) */
.card-cta-btn--snai,
.featured .card-cta-btn--snai {
    background-color: #F7A600;
    border-color: #F7A600;
    color: #0b0b0d;
}

.card-cta-btn--snai:hover,
.featured .card-cta-btn--snai:hover {
    background-color: #e09500;
    border-color: #e09500;
    color: #0b0b0d;
}

/* OS Badges */
.app-os-badges {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.os-icon {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: #ffffff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.app-vertical-card .app-os-badges {
    margin-top: 4px;
    margin-bottom: 2px;
}

.app-vertical-card .os-icon {
    opacity: 0.80;
}

.app-vertical-card:hover .os-icon {
    opacity: 1;
}

.os-icon:hover {
    transform: scale(1.18);
    opacity: 1 !important;
}

/* ── CATEGORIES LIST SECTION (THE CLUB Style) ── */
.club-categories-section {
    padding: 80px 0;
}

.club-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.club-label--no-line {
    margin-bottom: 32px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    border-top: var(--border-thick);
}

.category-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 48px;
    row-gap: 0;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: padding var(--transition-smooth);
}

.category-row:hover {
    padding-left: 12px;
}

.category-row.open {
    padding-left: 0;
}

.cat-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 0.95;
    grid-column: 1;
    grid-row: 1;
}

.cat-star {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: var(--transition-fast);
    grid-column: 2;
    grid-row: 1;
}

.category-row:hover .cat-star,
.category-row.open .cat-star {
    opacity: 1;
    transform: rotate(45deg);
}

.cat-plus {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    grid-column: 3;
    grid-row: 1;
}

.cat-plus-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-row:hover .cat-plus {
    opacity: 1;
}

.category-row.open .cat-plus {
    opacity: 1;
}

.category-row.open .cat-plus-icon {
    transform: rotate(45deg);
}

/* Accordion expand panel */
.cat-expand {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                padding 0.35s ease;
    opacity: 0;
    padding-top: 0;
}

.category-row.open .cat-expand {
    max-height: 200px;
    opacity: 1;
    padding-top: 20px;
    padding-bottom: 8px;
}

.cat-expand-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0;
}

.club-label--white {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
}

/* ── DARK FOOTER BANNER ── */
.dark-footer-banner {
    background-color: #0b0b0d;
    color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dark-banner-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 24px;
}

.dark-banner-desc {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 660px;
    margin: 0 auto 36px;
}

.dark-banner-desc strong {
    color: #ffffff;
}

/* Quick review pill links */
.legal-logos-img {
    display: block;
    margin: 32px auto 0;
    max-width: 280px;
    width: 100%;
    opacity: 0.85;
}

.dark-banner-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 64px;
}

.dark-link-pill {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── STANDARD FOOTER ── */
#site-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-rights {
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.footer-right-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav-link {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-nav-link:hover {
    color: var(--text-primary);
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeUp 0.8s var(--ease) forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive Styling ── */

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: clamp(3rem, 7vw, 5rem);
    }
    
    .hero-card {
        height: 480px;
    }
    
    .hero-card-content {
        padding: 32px;
    }

    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-left-text {
        align-items: center;
        text-align: center;
    }
    
    .hero-left-text .hero-tagline,
    .hero-left-text .hero-title,
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 24px;
    }
}

@media (max-width: 768px) {
    /* Disable entry animations on mobile so they are always visible */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* ── Header ── */
    #site-header {
        position: absolute;
        background-color: transparent;
        border-bottom: none;
    }

    .header-nav { display: none; }

    /* Hide CONFRONTA ORA on mobile */
    .header-cta-wrapper { display: none; }

    /* Center logo */
    .header-inner {
        justify-content: center;
    }

    /* ── Hero ── */
    #hero { padding: 100px 0 40px; }

    .hero-title { font-size: clamp(2.4rem, 8vw, 3.8rem); }

    .hero-card { height: 480px; }
    .hero-card-title { font-size: 2.8rem; }

    .hero-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-card-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Cards: horizontal carousel, left-aligned peek layout */
    .hero-right-cards {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 24px;
        gap: 16px;
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
        max-width: none;
        padding: 12px 24px 16px 24px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hero-right-cards::-webkit-scrollbar { display: none; }

    .app-vertical-card {
        flex-shrink: 0;
        width: clamp(285px, 80vw, 340px);
        scroll-snap-align: start;
    }

    /* ── Compliance strip: text above, logos centered in a row below ── */
    .compliance-section {
        padding: 20px 0;
    }

    .compliance-inner {
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow-x: visible;
        justify-content: center;
        align-items: center;
        padding: 0 24px;
        text-align: center;
    }

    /* Hide the vertical divider between text and logos */
    .compliance-inner > .compliance-vline {
        display: none;
    }

    .compliance-legal-text {
        font-size: 11px;
        line-height: 1.45;
        white-space: normal;
        color: #666;
        margin: 0;
        text-align: center;
        max-width: 480px;
    }

    .compliance-logos-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 14px;
        width: 100%;
        margin: 0 auto;
    }

    .compliance-logos-row .compliance-vline {
        display: block;
        height: 18px;
        background-color: rgba(0, 0, 0, 0.12);
        width: 1.5px;
        margin: 0;
        flex-shrink: 0;
    }

    /* ── Categories / dark banner ── */
    .category-row { gap: 20px; padding: 24px 0; }
    .cat-title { font-size: 1.8rem; }
    .cat-star { display: none; }
    .dark-banner-title { font-size: 2.8rem; }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-right-cards {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        padding: 12px 16px 16px 16px;
        scroll-padding-left: 16px;
    }

    .app-vertical-card {
        width: clamp(270px, 82vw, 320px);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-card {
        height: 440px;
    }

    .hero-card-content {
        padding: 20px;
    }

    .hero-card-title {
        font-size: 2.2rem;
    }

    .hero-card-desc {
        font-size: 13px;
    }

    .hero-badges {
        flex-direction: column;
        gap: 4px;
    }

    .row-brand-name {
        font-size: 30px;
    }
}

/* ── QUICK ANALYSIS SECTION (HORIZONTAL BRAND ROWS) ── */
.analysis-section {
    padding: 90px 0;
}

.analysis-rows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0;
}

/* Individual Horizontal Brand Row */
.analysis-row {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 24px 24px 24px 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.analysis-row.featured {
    border-color: rgba(0, 0, 0, 0.18);
}

.analysis-row:hover {
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Column 1: Brand Info */
.analysis-row-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 0 0 170px;
    padding-right: 24px;
}

.brand-logo-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.brand-row-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-row-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.brand-row-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.brand-row-rating {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-number {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-stars {
    font-size: 13px;
    color: #ffb800;
    letter-spacing: 2px;
    display: inline-flex;
    gap: 1px;
}

.rating-stars span {
    display: inline-block;
    animation: starPulse 2.8s ease-in-out infinite;
    transform-origin: center;
}

.rating-stars span:nth-child(1) { animation-delay: 0s; }
.rating-stars span:nth-child(2) { animation-delay: 0.18s; }
.rating-stars span:nth-child(3) { animation-delay: 0.36s; }
.rating-stars span:nth-child(4) { animation-delay: 0.54s; }
.rating-stars span:nth-child(5) { animation-delay: 0.72s; }

.analysis-row-brand .app-os-badges {
    margin-top: 4px;
}

.analysis-row-brand .os-icon {
    color: #111111;
    filter: none;
    opacity: 1;
}

.row-brand-cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000000;
    border-radius: 100px;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    background-color: transparent;
    transition: var(--transition-fast);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.row-brand-cta:focus,
.row-brand-cta:active {
    outline: none;
    box-shadow: none;
}

.row-brand-cta:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Featured row visual accents */
.analysis-row.featured .row-brand-cta {
    background-color: #000000;
    color: #ffffff;
}

.analysis-row.featured .row-brand-cta:hover {
    background-color: transparent;
    color: #000000;
}

/* SNAI brand CTA — yellow-orange override */
.row-brand-cta--snai,
.analysis-row.featured .row-brand-cta--snai {
    background-color: #F7A600;
    border-color: #F7A600;
    color: #0b0b0d;
}

.row-brand-cta--snai:hover,
.analysis-row.featured .row-brand-cta--snai:hover {
    background-color: #e09500;
    border-color: #e09500;
    color: #0b0b0d;
}

/* Column 2: Checklist Features */
.analysis-row-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 24px;
    flex: 0 0 250px;
    align-self: stretch;
    justify-content: center;
    margin-left: 48px;
}

.features-column-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.features-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
    align-items: flex-start;
}

.features-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}



.check-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    white-space: nowrap;
}

/* Column 3: Screens Row */
.analysis-row-screens {
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    padding-left: 24px;
    margin-left: auto;
}

.screens-row-inner {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: flex-end;
}

/* Mini phone mockups for screen previews */
.mini-phone-mockup {
    width: 130px;
    height: 265px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #111;
    flex-shrink: 0;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mini-phone-mockup:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.mini-phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mini-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mini-phone-mockup:hover .mini-screen-img {
    transform: scale(1.07);
}

.mini-screen-img {
    display: block;
}

/* Tablet & Mobile Media Queries for Horizontal Rows */
@media (max-width: 1024px) {
    .analysis-row {
        flex-wrap: wrap;
        padding: 24px;
    }

    .analysis-row-brand {
        flex: 0 0 160px;
        padding-right: 32px;
    }

    .analysis-row-features {
        flex: 1 1 200px;
        border-right: none;
        padding-right: 0;
        margin-left: 0;
    }

    .check-text {
        white-space: normal;
    }

    .analysis-row-screens {
        flex: 0 0 100%;
        padding-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        padding-top: 24px;
        margin-top: 8px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .analysis-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
    }

    /* Brand row: logo + meta stacked, CTA below */
    .analysis-row-brand {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        padding-right: 0;
        padding-bottom: 16px;
        width: 100%;
        gap: 12px;
        justify-content: flex-start;
    }

    /* App icon: 1:1 fixed size */
    .brand-logo-wrapper {
        flex-shrink: 0;
        width: 52px;
        height: 52px;
    }

    .brand-row-logo {
        width: 52px;
        height: 52px;
        object-fit: contain;
        aspect-ratio: 1 / 1;
    }

    .brand-row-meta {
        flex: 1;
        margin-left: 0;
        align-items: flex-start;
        min-width: 0;
    }

    /* CTA pushed below OS badges via order */
    .row-brand-cta {
        order: 4;
        width: 100%;
        flex-basis: 100%;
    }

    .analysis-row-features {
        flex: none;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        padding: 16px 0;
        width: 100%;
    }

    .features-checklist { gap: 10px; }

    /* Screens: bleed to card edge, horizontal scroll */
    .analysis-row-screens {
        flex: none;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 0;
        border-top: none;
        padding-top: 16px;
        overflow: hidden;
    }

    .screens-row-inner {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
        gap: 10px;
        padding: 0 20px 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .screens-row-inner::-webkit-scrollbar { display: none; }

    .mini-phone-mockup {
        flex-shrink: 0;
        width: 38vw;
        height: auto;
        aspect-ratio: 9 / 16;
        scroll-snap-align: start;
    }
}


/* ── Selection & Focus ── */
::selection {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}
