@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Animatable custom properties for scroll masks.
   --mask-left / --mask-right are the "hard edge" positions.
   The fade zone is ±8% around each edge, so when --mask-left = 0%
   the fade runs from -8% to 0% (fully off-screen → no visible left fade). */
@property --mask-left {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}
@property --mask-right {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 92%;
}

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {

    /* --- Primary: Purple --- */
    --clr-primary:         rgba(95,  75,  139, 1);
    --clr-primary-light-1: rgba(123, 97,  168, 1);
    --clr-primary-light-2: rgba(151, 122, 196, 1);
    --clr-primary-light-3: rgba(208, 198, 230, 1);
    --clr-primary-light-3o:rgba(208, 198, 230, 0.25);
    --clr-primary-dark-1:  rgba(70,  55,  105, 1);
    --clr-primary-dark-2:  rgba(52,  41,  80,  1);
    --clr-primary-dark-3:  rgba(36,  28,  55,  1);

    /* --- Complementary 1: Teal (split-complementary) --- */
    --clr-teal:            rgba(75,  139, 120, 1);
    --clr-teal-light-1:    rgba(97,  168, 148, 1);
    --clr-teal-light-2:    rgba(122, 196, 175, 1);
    --clr-teal-light-3:    rgba(198, 230, 222, 1);
    --clr-teal-light-3o:   rgba(198, 230, 222, 0.25);
    --clr-teal-dark-1:     rgba(55,  105, 88,  1);
    --clr-teal-dark-2:     rgba(41,  80,  66,  1);
    --clr-teal-dark-3:     rgba(28,  55,  46,  1);

    /* --- Complementary 2: Amber (triadic) --- */
    --clr-amber:           rgba(139, 111, 75,  1);
    --clr-amber-light-1:   rgba(168, 138, 97,  1);
    --clr-amber-light-2:   rgba(196, 168, 122, 1);
    --clr-amber-light-3:   rgba(230, 219, 198, 1);
    --clr-amber-light-3o:  rgba(230, 219, 198, 0.25);
    --clr-amber-dark-1:    rgba(105, 82,  55,  1);
    --clr-amber-dark-2:    rgba(80,  62,  41,  1);
    --clr-amber-dark-3:    rgba(55,  43,  28,  1);

    /* --- Complementary 3: Rose (split-complementary) --- */
    --clr-rose:            rgba(139, 75,  95,  1);
    --clr-rose-light-1:    rgba(168, 97,  123, 1);
    --clr-rose-light-2:    rgba(196, 122, 151, 1);
    --clr-rose-light-3:    rgba(230, 198, 208, 1);
    --clr-rose-light-3o:   rgba(230, 198, 208, 0.25);
    --clr-rose-dark-1:     rgba(105, 55,  70,  1);
    --clr-rose-dark-2:     rgba(80,  41,  52,  1);
    --clr-rose-dark-3:     rgba(55,  28,  36,  1);

    /* --- Neutral / Utility --- */
    --clr-gray-5o:         rgba(123, 123, 123, 0.5);
    --clr-bg:              rgba(244, 242, 244, 1);
    --clr-surface:         rgba(245, 243, 251, 1);
    --clr-text:            rgba(26,  26,  46,  1);
    --clr-text-muted:      rgba(26,  26,  46,  0.5);

    /* --- Semantic aliases (kept for backward compat) --- */
    --clr-primary-light:   var(--clr-primary-light-1);
    --clr-primary-dark:    rgba(54, 46, 76, 1);

    /* --- Hero text --- */
    --hero-text-main:      rgba(245, 245, 245, 1);
    --hero-text-opaque:    rgba(245, 245, 245, 0.5);

    /* --- Layout --- */
    --nav-h:               72px;
    --radius-sm:           30px;
}


/* ==========================================================================
   BASE
   ========================================================================== */

*, *::before, *::after {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--clr-bg);
    overflow-x: hidden;
}

h2 {
    font-weight: 600;
    font-size: clamp(24px, 5.5vw, 50px);
    padding: 14px 0;
}


/* ==========================================================================
   UTILITIES
   ========================================================================== */

/* Screen-reader only */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    padding: 10px 15px;
    border-radius: 32px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    overflow-wrap: break-word;
    transition: transform 0.2s ease-in-out,
                background-color 0.2s ease-in-out,
                color 0.2s ease-in-out,
                box-shadow 0.2s ease-in-out;
}

@media (min-width: 576px) {
    .btn {
        padding: 16px 32px;
    }
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--hero-text-main);
}
.btn-primary:hover {
    background-color: var(--clr-primary-light-1);
    transform: scale(0.985);
}

.btn-secondary {
    background-color: var(--clr-primary-light-3);
    color: var(--clr-primary);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--clr-primary-light-2) !important;
    transform: scale(0.985);
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    background: transparent !important;
    height: var(--nav-h);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled,
.navbar.bg-solid {
    /* Always transparent — no background bar */
    background: transparent !important;
    box-shadow: none;
}

.navbar .container-fluid {
    padding: 24px;
}

.navbar-nav {
    flex-direction: row;
}

/* Brand logo as a mask.
   Default (over dark hero): white.
   After scroll (over lighter content) or inner pages: purple. */
.navbar-brand-logo {
    display: inline-block;
    width: 110px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.95);   /* white on dark hero */
    -webkit-mask: url('/assets/fuerenlogo.svg') center / contain no-repeat;
    mask: url('/assets/fuerenlogo.svg') center / contain no-repeat;
    transition: background-color 0.25s ease;
}
.navbar.scrolled .navbar-brand-logo {
    background-color: var(--clr-primary);            /* purple after scroll */
}
/* Home page: logo is always brand-colored, never white */
.navbar.logo-color .navbar-brand-logo,
.navbar.logo-color.scrolled .navbar-brand-logo {
    background-color: var(--clr-primary);
}

.sticky-top {
    top: 0px;
    position: fixed;
    width: 100%;
}
@media (min-width: 576px) {
    .sticky-top {
        top: 24px;
    }
}

/* Page enter transition */
@keyframes pageEnter {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.page-enter {
    animation: pageEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Dropdown */
@keyframes navDropDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu {
    padding: 8px;
    margin-top: 10px;
    min-width: 200px;
    border: none;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
    transform-origin: top center;
}
.dropdown-menu.show {
    animation: navDropDown 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dropdown-item {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-sm);
    padding: 13px 24px;
    color: var(--clr-primary-dark-1);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.18s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--clr-primary);
    background-color: transparent;
}
.dropdown-item.active,
.dropdown-item:active {
    position: relative;
    z-index: 1;
    background-color: var(--clr-primary);
    color: #fff;
}

/* Magic hover highlight — shared by lang dropdown and mobile menu */
.dropdown-highlight {
    position: absolute;
    left: 0;
    right: 0;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-light-3);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.12s ease;
    margin: auto 8px;
}
.dropdown-highlight.visible {
    opacity: 1;
}
.dropdown-highlight.visible.settled {
    transition: top 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.12s ease;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
}

/* ── Equal height for all nav buttons ── */
.navbar-nav .btn {
    height: 40px;
    line-height: 1;
    white-space: nowrap;
}
@media (min-width: 576px) {
    .navbar-nav .btn {
        height: 54px;
    }
}

/* ── Language button: planet icon on mobile, text on desktop ── */
.lang-icon {
    display: none;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    vertical-align: middle;
}
.lang-name {
    display: inline;
}
@media (max-width: 1400px) {
    .lang-icon { display: inline-block; }
    .lang-name  { display: none; }
}

.navbar-nav .btn-secondary {
    padding: 16px 20px;
    gap: 5px;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero .main-container {
    position: relative;
    width: 100%;
    margin: 70px 0 5vh;
    padding: 10vh 0;
    background-color: var(--clr-primary);
    color: var(--hero-text-main);
    border-radius: var(--radius-sm);
    text-align: center;
    overflow: hidden;
    transform: translateZ(0);
}
@media (min-width: 576px) {
    .hero .main-container {
        margin: 100px 0 5vh;
    }
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

.hero-container {
    display: flex;
    justify-content: center;
}

.hero-box {
    padding: 15px;
}
.hero-box.p-4 {
    padding: 20vh 1.5rem !important;
}
.hero-box .mb-3 {
    margin-bottom: 15px !important;
}

.hero-cta,
.hero-badge {
    padding-top: 5vh !important;
}

.hero-badge {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--hero-text-opaque);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    line-height: 0.7;
}
.hero-badge .fueren-logo {
    display: inline-block;
    vertical-align: baseline;
}
.hero-badge .fueren-logo img {
    height: 0.74em;
    width: auto;
    vertical-align: baseline;
    pointer-events: none;
    user-select: none;
}

.hero-sh {
    font-weight: 500;
    font-size: clamp(20px, 5.5vw, 40px);
    line-height: 1.1;
    padding-top: 20px;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-fun-fact {
    font-weight: 500;
    font-size: 20px;
    color: var(--hero-text-opaque);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    background-color: var(--clr-primary-light-3);
    color: var(--clr-primary);
    zoom: 1.6;
}
@media (max-width: 575px) {
    .hero .btn { zoom: 1.2; }
}
.hero .btn:hover {
    background-color: var(--clr-primary-light-1);
    color: var(--clr-primary-light-3);
}


/* ==========================================================================
   TAGLINE HERO
   ========================================================================== */

.tagline-hero {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tagline-hero .tagline-hero-container {
    max-width: 80%;
}

.tagline-hero-title {
    font-weight: 600;
    font-size: clamp(28px, 7vw, 60px);
    line-height: 1;
    color: var(--clr-primary-dark-1);
}
.tagline-hero-subtitle {
    font-size: clamp(15px, 3.5vw, 30px);
    line-height: 1.2;
    padding-top: clamp(16px, 3vw, 30px);
    color: var(--clr-primary-light-1);
}
.tagline-hero-img {
    width: 50px;
    padding-bottom: 20px;
}


/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section-headandinfo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(56px, 10vw, 130px);
}
.rem-tp {
    margin-top: 0 !important;
}

.features-section-header {
    display: inline-block;
    font-weight: 600;
    font-size: clamp(26px, 6.5vw, 60px);
    color: var(--clr-primary-light-1);
}
.features-section-info {
    display: inline-block;
    color: var(--clr-gray-5o);
}

.features-containers {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    margin-top: 50px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* hide the scrollbar — people swipe anyway */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* dynamic scroll masks — updated via JS custom properties.
       Fade zone is 8pp wide, anchored at the hard edge:
         left  fade: (edge − 8%) → edge   → fully off-screen when edge = 0%
         right fade: edge → (edge + 8%)   → fully off-screen when edge = 100% */
    mask-image: linear-gradient(
        to right,
        transparent calc(var(--mask-left) - 8%),
        black       var(--mask-left),
        black       var(--mask-right),
        transparent calc(var(--mask-right) + 8%)
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent calc(var(--mask-left) - 8%),
        black       var(--mask-left),
        black       var(--mask-right),
        transparent calc(var(--mask-right) + 8%)
    );
    transition: --mask-left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                --mask-right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.features-containers::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex-shrink: 0;
    width: 19rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3o);
    color: var(--clr-primary-dark-1);
    scroll-snap-align: start;
    /* bg-image support */
    position: relative;
    overflow: hidden;
}
@media (min-width: 576px) {
    .feature-card {
        width: 23rem;
    }
}

.feature-card:last-child {
    margin-right: 45px;
}

/* ── Background-image variant ───────────────────────────────
   Usage: <div class="feature-card" style="--card-bg: url('/path/to/image.jpg')">
   The card renders the image cover-sized. A dark gradient rises
   from the bottom (where the text sits) up to ~60% of the card,
   ensuring text is always readable against the photo.
   ─────────────────────────────────────────────────────────── */
.feature-card[style*="--card-bg"] {
    color: rgba(255, 255, 255, 0.95);
    justify-content: flex-end;   /* push all content to the bottom */
}
.feature-card[style*="--card-bg"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    z-index: 0;
}
/* Dark gradient: solid at bottom, fading to transparent at ~60% height */
.feature-card[style*="--card-bg"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.70) 25%,
        rgba(0, 0, 0, 0.30) 50%,
        transparent         65%
    );
    border-radius: inherit;
    z-index: 1;
}
.feature-card[style*="--card-bg"] > * {
    position: relative;
    z-index: 2;
}
.feature-card h2 {
    font-weight: 600;
    font-size: 40px;
    line-height: 1;
    padding: 20px 0;
}
.feature-card p {
    font-size: 25px;
}
.feature-card p small {
    font-size: 12px;
}
.feature-card .card-image {
    height: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--clr-primary-dark-1);
    align-items: center;
    text-align: center;
}
.feature-card .card-image img {
    max-width: 100%;
    max-height: 100%;
}

/* Inline feature row (non-card layout) */
.feature-row {
    display: inline-table;
    max-width: 45%;
    margin-right: 4%;
    padding: clamp(20px, 4vw, 40px);
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-1);
    color: var(--clr-surface);
}
.feature-row img {
    max-width: 50px;
}
@media (max-width: 575px) {
    .feature-row {
        display: block;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}


/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    padding: clamp(30px, 5vw, 50px) 0;
    margin-top: clamp(50px, 10vw, 130px);
}
.stats-section .main-container {
    padding: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-1);
    color: var(--hero-text-main);
}

.stat-item {
    margin: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3);
    text-align: center;
    min-width: 200px;
}
.stat-item .stat-number {
    font-weight: 800;
    font-size: clamp(36px, 9vw, 70px);
    color: var(--clr-primary);
}
.stat-item .stat-label {
    font-weight: 500;
    font-size: clamp(13px, 2.8vw, 24px);
    color: var(--clr-primary-light-1);
}

.stats-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-align: center;
    padding-bottom: 8px;
}

.stats-subtitle {
    padding-top: 10px;
    font-size: 18px;
    text-align: center;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }


/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: clamp(60px, 12vw, 20vh) 0;
    text-align: center;
}
.cta-subtitle {
    font-size: clamp(16px, 3vw, 25px);
}
.cta-section img {
    width: clamp(140px, 40vw, 200px);
    margin: clamp(16px, 4vw, 30px);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer .footer-box {
    padding: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3);
    color: var(--clr-primary-dark-1);
}

/* ── Main row: tagline ← | → social + disclaimer ── */
.footer-main {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 8px 0 20px;
}

.footer-left {
    flex: 1 1 auto;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

/* ── Tagline ── */
.footer-tagline {
    font-weight: 600;
    font-size: clamp(26px, 4.5vw, 52px);
    line-height: 1.1;
    margin: 0;
    max-width: 520px;
}

/* ── Social links ── */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--clr-primary-dark-1);
    padding: 8px 12px;
    border-radius: calc(var(--radius-sm) / 2);
    background-color: rgba(255, 255, 255, 0.45);
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.footer-social-link:hover {
    background-color: rgba(255, 255, 255, 0.72);
    transform: translateY(-2px);
}

.footer-social-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-social-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.footer-social-platform {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.55;
}
.footer-social-handle {
    font-size: 13px;
    font-weight: 600;
}

/* ── Disclaimer ── */
.footer-disclaimer {
    font-size: 12px;
    opacity: 0.55;
    max-width: 340px;
    text-align: right;
    line-height: 1.55;
    margin: 0;
}

/* ── Bottom bar ── */
.footer-bottom {
    padding: 20px 30px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-legal-links {
    text-align: right;
}
.footer-legal-links a {
    padding-left: 8px;
    color: var(--clr-primary-dark-1);
    text-decoration: none;
}
.footer-legal-links a:hover {
    opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .footer-main {
        flex-direction: column;
        gap: 24px;
    }
    .footer-right {
        align-items: flex-start;
        width: 100%;
    }
    .footer-social {
        justify-content: flex-start;
    }
    .footer-disclaimer {
        text-align: left;
        max-width: 100%;
    }
}


/* ==========================================================================
   LEGAL / INNER PAGES
   ========================================================================== */
.legal {
    margin-top:100px;
}
.inner-header {
    padding: clamp(28px, 6vw, 50px) 0;
}
.inner-header h1 {
    font-size: clamp(32px, 8vw, 80px);
}

.legal-tabs-menu {
    padding: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-dark-1);
    color: var(--clr-primary-light-3);
}
.legal-tabs-menu a {
    display: block;
    padding: 8px 0;
    color: var(--clr-primary-light-3);
    text-decoration: none;
}

.legal-prose h2 {
    font-size: 30px;
}
.legal-prose .info-block {
    padding: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3o);
    margin-bottom: 20px;
}
.legal-prose .contact-card {
    padding: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3);
    margin-bottom: 20px;
}

.returntohome {
    padding-top: 30px;
    text-align: right;
}

/* ==========================================================================
   MEDIA / INNER PAGES — shared page shell
   ========================================================================== */

.inner-page {
    padding: 40px 0 80px;
}

.inner-body {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Compact legal mode for Fueren in-app webview ── */
body.legal-app-mode {
    background: #fff;
}
body.legal-app-mode .inner-page {
    padding: 10px 0 24px;
}
body.legal-app-mode .inner-body {
    max-width: 760px;
    padding: 0 18px;
}
body.legal-app-mode .legal-app-meta {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin: 4px 0 12px;
}
body.legal-app-mode .legal-prose {
    font-size: 15px;
    line-height: 1.65;
}
body.legal-app-mode .legal-prose h2 {
    font-size: clamp(21px, 5.2vw, 26px);
    margin: 22px 0 10px;
}
body.legal-app-mode .legal-prose h3 {
    font-size: clamp(17px, 4.1vw, 20px);
    margin: 18px 0 8px;
}
body.legal-app-mode .legal-prose p,
body.legal-app-mode .legal-prose li {
    font-size: 15px;
    line-height: 1.65;
}
body.legal-app-mode .legal-prose ul {
    margin: 6px 0 14px;
    padding-left: 20px;
}
body.legal-app-mode .legal-prose .info-block,
body.legal-app-mode .legal-prose .contact-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fafbff;
    box-shadow: none;
    padding: 16px;
}
body.legal-app-mode .legal-prose .info-block hr {
    margin: 10px 0;
    opacity: 0.2;
}

@media (max-width: 420px) {
    body.legal-app-mode .inner-body {
        padding: 0 14px;
    }
}

.inner-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--clr-primary-dark-1);
    margin: 48px 0 20px;
}
.inner-section-title:first-child {
    margin-top: 0;
}

/* ── Info block (general content card) ── */
.info-block {
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3o);
    margin-bottom: 16px;
    line-height: 1.65;
}
.info-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--clr-primary-dark-1);
}
.info-block p,
.info-block li {
    font-size: 15px;
    color: var(--clr-text);
}
.info-block ul {
    padding-left: 20px;
    margin: 8px 0 0;
}
.info-block ul li {
    padding: 3px 0;
}

/* ── Press / article card ── */
.card {
    padding: 28px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3);
    color: var(--clr-primary-dark-1);
    margin-bottom: 20px;
}

.card-date {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.55;
    margin: 0 0 8px;
}

.card-title {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.card-excerpt {
    font-size: 15px;
    line-height: 1.65;
    opacity: 0.8;
    margin: 0 0 20px;
}

/* ── Outline button ── */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: calc(var(--radius-sm) / 2);
    border: 2px solid var(--clr-primary-dark-1);
    color: var(--clr-primary-dark-1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.btn-outline:hover {
    background-color: var(--clr-primary-dark-1);
    color: var(--clr-primary-light-3);
}

/* ── Divider ── */
.divider {
    height: 1px;
    background-color: var(--clr-primary-light-3);
    margin: 40px 0;
    border: none;
    opacity: 0.7;
}

/* ── Logo gallery ── */
.logo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.2s ease;
}
.logo-card:hover {
    transform: translateY(-3px);
}

.logo-preview {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 24px;
}
.logo-preview img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.logo-preview-light {
    background-color: var(--clr-primary-light-3);
}
.logo-preview-dark {
    background-color: var(--clr-primary-dark-2);
}

.logo-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin: 0;
    text-align: center;
}

/* ── Screenshot grid ── */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.screenshot-item {
    position: relative;
    display: block;
    border-radius: calc(var(--radius-sm) / 1.5);
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 9 / 19.5;
    background-color: var(--clr-primary-light-3);
}
.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.screenshot-item:hover img {
    transform: scale(1.04);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(36, 28, 55, 0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}
.screenshot-overlay svg {
    width: 22px;
    height: 22px;
}
.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

/* ── Contact card ── */
.contact-card {
    padding: 28px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3);
    color: var(--clr-primary-dark-1);
    margin-bottom: 20px;
    line-height: 1.7;
}
.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}
.contact-card a {
    color: var(--clr-primary-dark-1);
}
.contact-card a:hover {
    opacity: 0.75;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .logo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .inner-section-title {
        margin-top: 36px;
    }
}


/* ==========================================================================
   SECTION COLOR THEMES
   Apply one of these classes to the container wrapping
   .features-section-headandinfo and .feature-card elements.

   Usage:
     <div class="theme-teal">
       <div class="features-section-headandinfo">…</div>
       <div class="features-containers">
         <div class="feature-card">…</div>
       </div>
     </div>
   ========================================================================== */

/* --- Shared theme mechanics --- */
.theme-primary,
.theme-teal,
.theme-amber,
.theme-rose {
    --_clr:        var(--clr-primary);
    --_light-1:    var(--clr-primary-light-1);
    --_light-2:    var(--clr-primary-light-2);
    --_light-3:    var(--clr-primary-light-3);
    --_light-3o:   var(--clr-primary-light-3o);
    --_dark-1:     var(--clr-primary-dark-1);
    --_dark-2:     var(--clr-primary-dark-2);
    --_dark-3:     var(--clr-primary-dark-3);
}

.theme-teal {
    --_clr:        var(--clr-teal);
    --_light-1:    var(--clr-teal-light-1);
    --_light-2:    var(--clr-teal-light-2);
    --_light-3:    var(--clr-teal-light-3);
    --_light-3o:   var(--clr-teal-light-3o);
    --_dark-1:     var(--clr-teal-dark-1);
    --_dark-2:     var(--clr-teal-dark-2);
    --_dark-3:     var(--clr-teal-dark-3);
}

.theme-amber {
    --_clr:        var(--clr-amber);
    --_light-1:    var(--clr-amber-light-1);
    --_light-2:    var(--clr-amber-light-2);
    --_light-3:    var(--clr-amber-light-3);
    --_light-3o:   var(--clr-amber-light-3o);
    --_dark-1:     var(--clr-amber-dark-1);
    --_dark-2:     var(--clr-amber-dark-2);
    --_dark-3:     var(--clr-amber-dark-3);
}

.theme-rose {
    --_clr:        var(--clr-rose);
    --_light-1:    var(--clr-rose-light-1);
    --_light-2:    var(--clr-rose-light-2);
    --_light-3:    var(--clr-rose-light-3);
    --_light-3o:   var(--clr-rose-light-3o);
    --_dark-1:     var(--clr-rose-dark-1);
    --_dark-2:     var(--clr-rose-dark-2);
    --_dark-3:     var(--clr-rose-dark-3);
}

/* --- Themed: features section header & info --- */
.theme-primary .features-section-header,
.theme-teal    .features-section-header,
.theme-amber   .features-section-header,
.theme-rose    .features-section-header {
    color: var(--_light-1);
}

/* --- Themed: feature cards --- */
.theme-primary .feature-card,
.theme-teal    .feature-card,
.theme-amber   .feature-card,
.theme-rose    .feature-card {
    background-color: var(--_light-3o);
    color: var(--_dark-1);
}

.theme-primary .feature-card .card-image,
.theme-teal    .feature-card .card-image,
.theme-amber   .feature-card .card-image,
.theme-rose    .feature-card .card-image {
    background-color: var(--_dark-1);
}

.theme-primary .feature-card h2,
.theme-teal    .feature-card h2,
.theme-amber   .feature-card h2,
.theme-rose    .feature-card h2 {
    color: var(--_dark-1);
}

/* --- Image-variant cards inside themed containers: force white text --- */
.theme-primary .feature-card[style*="--card-bg"],
.theme-teal    .feature-card[style*="--card-bg"],
.theme-amber   .feature-card[style*="--card-bg"],
.theme-rose    .feature-card[style*="--card-bg"] {
    color: rgba(255, 255, 255, 0.95);
}
.theme-primary .feature-card[style*="--card-bg"] h2,
.theme-teal    .feature-card[style*="--card-bg"] h2,
.theme-amber   .feature-card[style*="--card-bg"] h2,
.theme-rose    .feature-card[style*="--card-bg"] h2 {
    color: #fff;
}

/* --- Themed: feature row (inline layout variant) --- */
.theme-primary .feature-row,
.theme-teal    .feature-row,
.theme-amber   .feature-row,
.theme-rose    .feature-row {
    background-color: var(--_light-1);
}

/* ==========================================================================
   NAV — PAGES PILL  (desktop ≥ lg)
   A single pill-shaped container centred in the navbar holding links
   to the three content pages. White background, subtle backdrop blur.
   ========================================================================== */

.nav-pages-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    /* Fade in / out with nav scroll */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled .nav-pages-pill {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-pages-pill .nav-pill-link {
    display: inline-block;
    padding: 10px 23px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--clr-primary-dark-1);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.4;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-pages-pill .nav-pill-link:hover {
    background: var(--clr-primary-light-3);
    color: var(--clr-primary);
}

.nav-pages-pill .nav-pill-link.active {
    background: var(--clr-primary);
    color: #fff;
}

/* Make sure the navbar container is positioned so the pill can be centred */
.navbar .container {
    position: relative;
}


/* ==========================================================================
   NAV — BURGER BUTTON  (mobile < lg)
   Circular button with three horizontal lines.
   ========================================================================== */

.nav-burger-wrap {
    position: relative;
}

.nav-burger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 576px) {
  .nav-burger {
    width: 54px;
    height: 54px;
  }
}

.nav-burger:hover {
    background: rgba(255, 255, 255, 0.30);
}

.navbar.scrolled .nav-burger:hover {
    background: var(--clr-primary-light-3);
}

.nav-burger span {
    display: block;
    width: 16px;
    height: 2px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    transition: background-color 0.2s ease;
    pointer-events: none;
}

.navbar.scrolled .nav-burger span {
    background-color: var(--clr-primary-dark-1);
}


/* ==========================================================================
   NAV — MOBILE DROPDOWN MENU
   ========================================================================== */

.nav-mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
    z-index: 1000;
    animation: navDropDown 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav-mobile-menu.show {
    display: block;
}

.nav-mobile-menu a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    color: var(--clr-primary-dark-1);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.18s ease;
}

.nav-mobile-menu a:hover {
    background-color: transparent;
    color: var(--clr-primary);
}

.nav-mobile-menu a.active {
    position: relative;
    z-index: 1;
    background-color: var(--clr-primary);
    color: #fff;
}

.nav-mobile-menu .nav-menu-divider {
    height: 1px;
    background: var(--clr-primary-light-3);
    margin: 6px 8px;
}


/* ==========================================================================
   PAGE HERO  (shared across features / about / schools)
   Similar energy to the home hero but adapted for inner pages.
   ========================================================================== */

.page-hero {
    padding: clamp(100px, 18vh, 180px) 0 clamp(60px, 10vh, 100px);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--clr-primary-dark-2);
    color: var(--hero-text-main);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    margin-bottom: clamp(40px, 8vw, 80px);
}

.page-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hero-text-opaque);
    margin-bottom: 20px;
}

.page-hero-title {
    font-size: clamp(34px, 8vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 auto 20px;
    max-width: 820px;
    color: var(--hero-text-main);
    padding: 0;
}

.page-hero-subtitle {
    font-size: clamp(16px, 3.2vw, 24px);
    line-height: 1.4;
    color: var(--hero-text-opaque);
    max-width: 620px;
    margin: 0 auto 36px;
}

.page-hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Decorative blobs — smooth radial-gradient lights */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 62% 58% at 88%  8%,  rgba(159, 130, 216, 0.42) 0%, transparent 70%),
        radial-gradient(ellipse 48% 52% at  8%  88%, rgba( 95,  75, 155, 0.26) 0%, transparent 68%),
        radial-gradient(ellipse 36% 42% at 50%  52%, rgba(200, 182, 240, 0.10) 0%, transparent 65%);
    pointer-events: none;
}
/* Noise texture overlay */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.035;
    mix-blend-mode: overlay;
    pointer-events: none;
}


/* ==========================================================================
   SECTION LAYOUTS  (inner pages)
   ========================================================================== */

/* Uniform vertical rhythm for all content sections */
.section {
    padding: clamp(52px, 9vw, 108px) 0;
}

.page-section {
    padding: clamp(40px, 8vw, 90px) 0;
}

.page-section-header {
    margin-bottom: clamp(32px, 5vw, 56px);
}

.page-section-eyebrow {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-primary-light-1);
    margin-bottom: 10px;
}

.page-section-title {
    font-size: clamp(26px, 5.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--clr-primary-dark-1);
    padding: 0;
    margin: 0 0 12px;
}

.page-section-subtitle {
    font-size: clamp(15px, 2.6vw, 20px);
    line-height: 1.55;
    color: var(--clr-text-muted);
    max-width: 560px;
}


/* ==========================================================================
   VALUE CARDS  (used on About page)
   ========================================================================== */

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.value-card {
    padding: 28px;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-light-3o);
    color: var(--clr-primary-dark-1);
    transition: transform 0.2s ease;
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
}

.value-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--clr-primary-dark-1);
}

.value-card-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--clr-text);
    margin: 0;
}


/* ==========================================================================
   PRIVACY CALLOUT  (dark band)
   ========================================================================== */

.privacy-callout {
    background: var(--clr-primary-dark-2);
    color: var(--hero-text-main);
    border-radius: var(--radius-sm);
    padding: clamp(36px, 7vw, 70px) clamp(24px, 5vw, 60px);
    margin: clamp(40px, 8vw, 80px) 0;
    position: relative;
    overflow: hidden;
}

.privacy-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 58% 68% at 92%  8%,  rgba(159, 130, 216, 0.36) 0%, transparent 68%),
        radial-gradient(ellipse 42% 48% at  5%  92%, rgba( 95,  75, 155, 0.20) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.privacy-callout::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.privacy-callout-title {
    font-size: clamp(22px, 4.5vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}

.privacy-callout-body {
    font-size: clamp(14px, 2.2vw, 18px);
    line-height: 1.65;
    color: var(--hero-text-opaque);
    max-width: 600px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.privacy-callout-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: var(--hero-text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.privacy-badge svg,
.privacy-badge .material-symbols-rounded {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.privacy-callout-footnote {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.38);
    margin: 20px 0 0;
    max-width: 560px;
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   HIGHLIGHT ROW  (icon + text side-by-side, Schools / Features pages)
   ========================================================================== */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.highlight-card {
    padding: 28px;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 2px 12px rgba(95, 75, 139, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(95, 75, 139, 0.12);
}

.highlight-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--clr-primary-light-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--clr-primary);
}

.highlight-card-icon svg,
.highlight-card-icon .material-symbols-rounded {
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
}

.highlight-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--clr-primary-dark-1);
}

.highlight-card-body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--clr-text-muted);
    margin: 0;
}


/* ==========================================================================
   CREATOR CARD  (About page)
   ========================================================================== */

.creator-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-sm);
    background: var(--clr-primary-light-3o);
    margin-top: 40px;
}

.creator-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.creator-name {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: var(--clr-primary-dark-1);
    margin: 0 0 4px;
}

.creator-role {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--clr-primary-light-1);
    margin: 0 0 12px;
}

.creator-bio {
    font-size: 15px;
    line-height: 1.65;
    color: var(--clr-text);
    margin: 0;
}

@media (max-width: 560px) {
    .creator-card {
        flex-direction: column;
    }
}


/* ==========================================================================
   STORY SECTION  (About page)
   ========================================================================== */

.story-block {
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    border-left: 4px solid var(--clr-primary);
    margin-bottom: 20px;
}

.story-block p {
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.7;
    color: var(--clr-text);
    margin: 0;
}

.story-block + .story-block {
    border-left-color: var(--clr-teal);
}


/* ==========================================================================
   SCHOOLS PAGE — BENEFIT STRIP
   ========================================================================== */

.benefit-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 2px 10px rgba(95, 75, 139, 0.06);
}

.benefit-number {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.benefit-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--clr-primary-dark-1);
    margin: 0;
}

.benefit-desc {
    font-size: 13px;
    color: var(--clr-text-muted);
    margin: 6px 0 0;
}


/* ==========================================================================
   PAGE CTA SECTION  (reused on inner pages)
   ========================================================================== */

.page-cta {
    padding: clamp(60px, 12vw, 120px) 0;
    text-align: center;
}

.page-cta-title {
    font-size: clamp(28px, 6vw, 56px);
    font-weight: 700;
    color: var(--clr-primary-dark-1);
    margin: 0 0 16px;
    padding: 0;
}

.page-cta-subtitle {
    font-size: clamp(15px, 2.6vw, 20px);
    color: var(--clr-text-muted);
    margin: 0 0 36px;
}

.page-cta img {
    width: clamp(140px, 40vw, 200px);
}

/* App Store badge link wrapper */
.cta-appstore-badge {
    display: inline-block;
}
.cta-appstore-badge img {
    width: clamp(140px, 40vw, 200px);
    margin: clamp(16px, 4vw, 30px);
}

/* Additional reveal delay */
.reveal-delay-3 { transition-delay: 0.36s; }


/* ==========================================================================
   FEATURE SHOWCASE  (Features page — image + points layout)
   ========================================================================== */

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    padding: clamp(40px, 7vw, 80px) 0;
    border-bottom: 1px solid var(--clr-primary-light-3o);
}

.feature-showcase:last-child {
    border-bottom: none;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

/* Grey SVG image placeholder */
.feature-img-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light-3o);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img-wrap img {
    max-width: 100%;
    height: 100%;
    display: block;
}

.feature-img-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

/* Feature copy column */
.feature-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-copy-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-primary-light-1);
}

.feature-copy-title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--clr-primary-dark-1);
    margin: 0;
    padding: 0;
}

.feature-copy-body {
    font-size: clamp(15px, 2.2vw, 17px);
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin: 0;
}

/* Bullet points list under the body text */
.feature-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--clr-text);
}

.feature-point-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--clr-primary);
}

@media (max-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr;
    }
    .feature-showcase.reverse {
        direction: ltr;
    }
}


/* ==========================================================================
   PLAIN STORY TEXT  (replaces story-block card style — Schools / About)
   ========================================================================== */

.story-text {
    max-width: 760px;
    margin-bottom: 28px;
}

.story-text p {
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.75;
    color: var(--clr-text);
    margin: 0;
}

.story-text + .story-text {
    margin-top: 8px;
}


/* ==========================================================================
   CONTACT BLOCK  (About page bottom)
   ========================================================================== */

.contact-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 52px);
    border-radius: var(--radius-sm);
    background: var(--clr-primary-light-3o);
    margin-top: clamp(32px, 6vw, 60px);
}

.contact-block-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-primary-light-1);
}

.contact-block-title {
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 700;
    color: var(--clr-primary-dark-1);
    margin: 0;
    padding: 0;
}

.contact-block-body {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.65;
    color: var(--clr-text-muted);
    margin: 0;
    max-width: 540px;
}

.contact-block-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

.contact-block-email:hover {
    color: var(--clr-primary-dark-1);
    text-decoration: underline;
}

.contact-block-email .material-symbols-rounded {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
