/* ============================================================
   PREP CONNECT MOBILE — HOME PAGE OVERRIDES (Default-New.aspx)
   Loaded after /Style/site.css.
   ============================================================ */

/* ============================================================
   NAVIGATION — light-glass variant that dynamically switches to
   dark-glass depending on the section scrolled behind it (see
   the nav theming script at the bottom of Default-New.aspx).
   ============================================================ */
.site-nav {
    background: rgba(235, 235, 235, 0.72);
    transition: background 0.25s ease;
}
.site-nav.nav-scrolled {
    background: rgba(120, 120, 120, 0.92) !important;
}
.site-nav.nav-scrolled .nav-links a,
.site-nav.nav-scrolled .nav-hamburger span {
    color: rgba(255,255,255,0.95);
}
.site-nav.nav-scrolled .nav-hamburger span { background: rgba(255,255,255,0.95); }
.site-nav .nav-links a { color: #1a1a1a; }
.site-nav .nav-links a:hover { color: #000000; }
.site-nav .nav-hamburger span { background: rgba(30,30,30,0.85); transition: all 0.3s; }
.nav-mobile-menu { background: rgba(235, 235, 235, 0.75); }
.nav-mobile-menu a { color: #1a1a1a; border-bottom: 1px solid rgba(0,0,0,0.08); }

/* Dark-glass variant: applied via JS when a light-background section sits
   behind the nav. Opaque enough on its own that white text stays readable
   no matter what's behind it. */
.site-nav.nav-theme-dark,
.nav-mobile-menu.nav-theme-dark {
    background: rgba(18, 18, 18, 0.55);
}
.site-nav.nav-theme-dark .nav-links a,
.nav-mobile-menu.nav-theme-dark a {
    color: rgba(255,255,255,0.92);
}
.site-nav.nav-theme-dark .nav-links a:hover,
.nav-mobile-menu.nav-theme-dark a:hover {
    color: #ffffff;
}
.site-nav.nav-theme-dark .nav-hamburger span { background: rgba(255,255,255,0.85); }
.nav-mobile-menu.nav-theme-dark a { border-bottom-color: rgba(255,255,255,0.12); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: auto;
    padding: 116px 32px 56px;
    background: linear-gradient(135deg, #dedede 0%, #c4c4c4 55%, #d6d6d6 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; min-width: 0; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(153,0,0,0.08);
    border: 1px solid rgba(153,0,0,0.3);
    color: #990000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.hero-h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    color: #1a1a1a;
    line-height: 1.08;
    margin-bottom: 16px;
}
.hero-h1 span { color: #990000; }
.hero-sub {
    font-size: 1.0625rem;
    color: #3d3d3d;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 520px;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hero-social-proof {
    color: #444444;
    font-size: 14px;
}
.hero-social-proof .stars { color: #990000; letter-spacing: 2px; margin-right: 6px; }
.hero-devices {
    flex: 0 0 auto;
    position: relative;
    width: 340px;
    height: 460px;
}
.device-iphone {
    position: absolute;
    right: 0;
    top: 0;
    width: 220px;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.6));
    z-index: 2;
}
.device-android {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 190px;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5));
    opacity: 0.85;
    z-index: 1;
}
@media (max-width: 960px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; padding: 0; }
    .hero-ctas { justify-content: center; }
    .hero-devices { width: 280px; height: 380px; margin-bottom: 8px; }
    .device-iphone { width: 170px; }
    .device-android { width: 140px; }
    .hero-eyebrow { font-size: 12px; padding: 6px 12px; border-radius: 14px; }
}
@media (max-width: 480px) {
    .hero-devices { width: 220px; height: 300px; }
    .device-iphone { width: 145px; }
    .device-android { width: 120px; }
}

/* ============================================================
   CAROUSEL STRIP
   ============================================================ */
.carousel-section {
    background: #f5f5f5;
    padding: 48px 24px;
    text-align: center;
}
.carousel-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #444444;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}
.jcarousel {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.jcarousel ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    list-style: none;
    margin: 0; padding: 0;
}
.jcarousel li {
    display: flex;
    align-items: center;
    border-right: 1px solid #dddddd;
    padding: 0 20px;
}
.jcarousel li:last-child { border-right: none; }
.appSection {
    width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
}
@media (max-width: 960px) {
    .jcarousel, .jcarousel ul { flex-wrap: wrap; }
    .jcarousel li { border-right: none; padding: 12px 20px; }
}
.appicon img {
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.appInfo { flex: 1; text-align: left; }
.schoolName { display: block; font-size: 15px; font-weight: 700; color: #222222; line-height: 1.3; margin-bottom: 3px; }
.schoolInfo { font-size: 13px; color: #666666; line-height: 1.6; }
.schoolInfo a { color: #990000; font-style: italic; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
    background: #ffffff;
    padding: 80px 24px;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-eyebrow {
    display: inline-block;
    color: #990000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #1a1a1a;
    line-height: 1.15;
}
.section-header p {
    margin-top: 14px;
    font-size: 1.0625rem;
    color: #666666;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.features-groups {
    max-width: 1200px;
    margin: 0 auto;
}
.feature-group {
    margin-bottom: 48px;
}
.feature-group:last-child {
    margin-bottom: 0;
}
.feature-group-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
/* Reusable single-row scroll carousel for feature-card groups */
.feature-scroll-wrap {
    position: relative;
}
.feature-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 2px 8px;
    margin: -2px -2px -8px;
}
.feature-scroll::-webkit-scrollbar {
    display: none;
}
.feature-scroll .feature-card {
    flex: 0 0 280px;
}
.feature-scroll-fade {
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 88px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s;
}
.feature-scroll-fade--right {
    right: 0;
    background: linear-gradient(to right, rgba(255,255,255,0), #ffffff 70%);
}
.feature-scroll-fade--left {
    left: 0;
    background: linear-gradient(to left, rgba(255,255,255,0), #ffffff 70%);
}
.feature-scroll-fade.is-hidden {
    opacity: 0;
}
.feature-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s;
}
.feature-scroll-arrow--right {
    right: 4px;
}
.feature-scroll-arrow--left {
    left: 4px;
}
.feature-scroll-arrow i {
    color: #990000;
    font-size: 16px;
}
.feature-scroll-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 600px) {
    .feature-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .feature-scroll .feature-card {
        flex: 1 1 100%;
    }
    .feature-scroll-fade,
    .feature-scroll-arrow {
        display: none;
    }
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: #fff0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-icon i { font-size: 22px; color: #990000; }
.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}
.feature-card p { font-size: 0.9rem; color: #666666; line-height: 1.6; flex: 1; min-height: 4.8em; }

/* Flip cards (feature cards with a screenshot on the back) */
.feature-card.is-flippable {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    perspective: 1200px;
    cursor: pointer;
    transition: top 0.45s cubic-bezier(.2,.8,.2,1), left 0.45s cubic-bezier(.2,.8,.2,1),
                width 0.45s cubic-bezier(.2,.8,.2,1), height 0.45s cubic-bezier(.2,.8,.2,1);
}
.feature-card.is-flippable:hover { transform: none; }
.feature-card.is-flippable.is-active {
    position: fixed;
    z-index: 1001;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.35));
}
.feature-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    flex: 1;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}
.feature-card.is-flippable.is-flipped .feature-flip-inner {
    transform: rotateY(180deg);
}
.feature-flip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}
.feature-flip-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.feature-card-placeholder {
    visibility: hidden;
    flex-shrink: 0;
}
.feature-flip-front,
.feature-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.feature-flip-front {
    background: #ffffff;
    padding: 28px 24px;
}
.feature-flip-back {
    background: #ffffff;
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.feature-flip-back img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    object-fit: contain;
}
.feature-flip-hint {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #990000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   APP SHOWCASE
   ============================================================ */
.showcase-section {
    background: #111111;
    padding: 80px 24px;
    overflow-x: hidden;
}
.showcase-section .section-header h2 { color: #ffffff; }
.showcase-section .section-header p { color: #999999; }
.showcase-section .section-eyebrow { color: #ff6666; }
.showcase-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.showcase-item {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.showcase-item.visible { opacity: 1; transform: translateY(0); }
.showcase-item:nth-child(2) { transition-delay: 0.15s; }
.showcase-item:nth-child(3) { transition-delay: 0.3s; }
.showcase-item::before {
    content: '';
    position: absolute;
    top: 44%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.38) 38%, rgba(255,255,255,0) 75%);
    filter: blur(16px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}
.showcase-item.featured::before { width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.46) 38%, rgba(255,255,255,0) 75%); }
.showcase-item img {
    position: relative;
    z-index: 1;
    width: 200px;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    margin: 0 auto 12px;
}
.showcase-item.featured img { width: 240px; }
.showcase-caption {
    color: #aaaaaa;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .showcase-item img { width: 140px; }
    .showcase-item.featured img { width: 160px; }
    .showcase-grid { gap: 16px; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: #ffffff; padding: 80px 24px; }
.steps-grid {
    display: flex;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}
.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    border-radius: 8px;
    background: #f8f8f8;
}
.step-number {
    width: 56px;
    height: 56px;
    background: #990000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 16px;
}
.step-icon { font-size: 24px; color: #990000; margin-bottom: 12px; }
.step-card h3 { font-size: 1.0625rem; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: #666666; line-height: 1.6; }
.how-footnote {
    text-align: center;
    margin-top: 36px;
    font-size: 0.9rem;
    color: #888888;
    font-style: italic;
}

/* ============================================================
   IMPACT BANNER
   ============================================================ */
.impact-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a0000 50%, #990000 100%);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.impact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 60px,
        rgba(255,255,255,0.03) 60px,
        rgba(255,255,255,0.03) 120px
    );
}
.impact-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.impact-quote {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    color: #ffffff;
    line-height: 1.25;
    font-style: normal;
}
.impact-quote::before { content: '\201C'; }
.impact-quote::after { content: '\201D'; }
.impact-sub {
    margin-top: 20px;
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    background: #ffffff;
    padding: 80px 24px;
}
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e8e8e8;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 1.5rem;
    font-weight: 400;
    color: #990000;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 4px 22px;
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.7;
    max-width: 640px;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* Offset anchor-scroll targets so content isn't hidden behind the fixed nav */
section[id] {
    scroll-margin-top: 100px;
}
