/* ── StatsWrapped Front Page ─────────────────────────────────────── */

/* ── Screen-reader utility ───────────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Design tokens are defined in base.css — loaded first on every page. */

/* ── Hero Section Base (mobile-first) ────────────────────────────── */

.hero-section {
    padding: 2.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    max-width: 480px;
    margin: 0 auto;
}

/* ── Typography ──────────────────────────────────────────────────── */

.hero-label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1.25;
    font-weight: normal;
    margin: 0 0 1rem 0;
}

.hero-description {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 2rem 0;
    opacity: 0.85;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.9rem 2.25rem;
    text-decoration: none;
    text-align: center;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 3px;
}

.btn-outline {
    border-color: currentColor;
    background: transparent;
    color: inherit;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-filled {
    background: var(--blue-accent);
    color: #fff;
    border-color: var(--blue-accent);
}

.btn-filled:hover {
    background: #2d6bc4;
    border-color: #2d6bc4;
    color: #fff;
}

/* ── Hero — Insights (warm-white) ──────────────────────────────── */

.hero--insights {
    background-color: var(--warm-white);
    color: var(--text-dark);
}

/* ── Hero product mock ───────────────────────────────────────────── */

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}

.hero-mock {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--border-dark);
    box-shadow:
        0 4px 6px rgba(11, 26, 48, 0.04),
        0 18px 40px rgba(11, 26, 48, 0.1);
    overflow: hidden;
    /* Entrance: whole mock */
    animation: hero-mock-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-mock__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border-dark);
}

.hero-mock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(11, 26, 48, 0.15);
}

.hero-mock__dot:nth-child(1) { background: #e8a0a0; }
.hero-mock__dot:nth-child(2) { background: #e8d080; }
.hero-mock__dot:nth-child(3) { background: #a0d0a8; }

.hero-mock__url {
    flex: 1;
    margin-left: 0.5rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: var(--warm-white);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-mock__body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-mock__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--success);
    background: rgba(45, 122, 95, 0.1);
    border: 1px solid rgba(45, 122, 95, 0.22);
    padding: 0.3rem 0.55rem;
    animation: hero-item-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-mock__badge-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.hero-mock__kicker {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    animation: hero-item-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-mock__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.hero-mock__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0 0.65rem;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    background: transparent;
    animation: hero-item-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-mock__card--a {
    animation-delay: 0.3s;
}

.hero-mock__card--b {
    animation-delay: 0.4s;
}

.hero-mock__card-stat {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: normal;
    color: var(--navy-deep);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-dark);
}

.hero-mock__card-label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.hero-mock__persona {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0.8rem 0.8rem;
    border: 1px solid var(--border-dark);
    border-radius: 0.2rem;
    background: var(--warm-white);
    animation: hero-item-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-mock__persona-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
}

.hero-mock__persona-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--navy-deep);
}

.hero-mock__persona-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.6rem 0.22rem 0.22rem;
    border: none;
    border-radius: 999px;
    background: var(--navy-deep);
    color: var(--warm-white);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(11, 26, 48, 0.12);
}

.hero-mock__persona-badge span[aria-hidden] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: normal;
    letter-spacing: 0;
    text-transform: none;
}

.hero-mock__persona-reason {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.hero-mock__chart {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem 0.55rem;
    border: 1px solid var(--border-dark);
    background: var(--warm-white);
    animation: hero-item-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.hero-mock__chart-label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.hero-mock__bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 4.25rem;
    padding-top: 0.25rem;
}

.hero-mock__bar {
    flex: 1;
    background: var(--navy-deep);
    opacity: 0.55;
    border-radius: 0;
    transform-origin: bottom center;
    animation: hero-bar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-mock__bar--5,
.hero-mock__bar--6 {
    opacity: 0.85;
    background: var(--blue-accent);
}

.hero-mock__bar--1 { height: 28%; animation-delay: 0.7s; }
.hero-mock__bar--2 { height: 42%; animation-delay: 0.76s; }
.hero-mock__bar--3 { height: 35%; animation-delay: 0.82s; }
.hero-mock__bar--4 { height: 58%; animation-delay: 0.88s; }
.hero-mock__bar--5 { height: 72%; animation-delay: 0.94s; }
.hero-mock__bar--6 { height: 90%; animation-delay: 1s; }
.hero-mock__bar--7 { height: 64%; animation-delay: 1.06s; }
.hero-mock__bar--8 { height: 48%; animation-delay: 1.12s; }

.hero-mock__chart-axis {
    display: flex;
    justify-content: space-between;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* ── Light motion keyframes ──────────────────────────────────────── */

@keyframes hero-mock-enter {
    from {
        opacity: 0;
        transform: translateY(16px) rotateX(4deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes hero-item-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-bar-grow {
    from {
        transform: scaleY(0);
        opacity: 0.4;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mock,
    .hero-mock__badge,
    .hero-mock__kicker,
    .hero-mock__card,
    .hero-mock__persona,
    .hero-mock__chart,
    .hero-mock__bar {
        animation: none;
    }
}

/* ── Tablet+ ─────────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 2rem;
    }

    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-mock {
        max-width: 400px;
        transform: rotate(-1.5deg);
        animation-name: hero-mock-enter-desktop;
    }

    @keyframes hero-mock-enter-desktop {
        from {
            opacity: 0;
            transform: translateY(18px) rotate(-1.5deg);
        }
        to {
            opacity: 1;
            transform: translateY(0) rotate(-1.5deg);
        }
    }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
    .hero-mock {
        animation: none;
        transform: rotate(-1.5deg);
    }
}

/* ── Feature Strip ────────────────────────────────────────────────── */

.feature-strip {
    background-color: var(--cream);
    color: var(--text-dark);
    padding: 2.5rem 1rem;
}

.feature-strip__grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--warm-white);
    padding: 1.25rem;
    border: 1px solid var(--border-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(11, 26, 48, 0.08);
}

.feature-card__icon {
    font-size: 2rem;
}

.feature-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0;
}

.feature-card__desc {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

@media (min-width: 768px) {
    .feature-strip {
        padding: 5rem 2rem;
    }

    .feature-strip__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ── Consent / CTA Panel ─────────────────────────────────────────── */

.consent-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
}

.consent-panel .btn {
    width: 100%;
    max-width: 18rem;
}

.consent-panel__text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ── Trust Badge ─────────────────────────────────────────────────── */

.trust-badge {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.75;
    margin: 0;
    text-align: center;
    max-width: 18rem;
    letter-spacing: 0.01em;
}
