/* landing-login.css
 * Desktop-first landing page with mobile-inspired rounded cards,
 * with responsive breakpoints below.
 * Requires standard.css variables.
 */

/* Scroll-reveal: elements fade/slide in as they enter the viewport
 * (see public/js/landing-reveal.js). Staggered via nth-child so cards in
 * the same grid don't all pop in at once. */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 700ms ease, transform 700ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.reveal-on-scroll-group > *:nth-child(1) { --reveal-delay: 0ms; }
.reveal-on-scroll-group > *:nth-child(2) { --reveal-delay: 90ms; }
.reveal-on-scroll-group > *:nth-child(3) { --reveal-delay: 180ms; }
.reveal-on-scroll-group > *:nth-child(4) { --reveal-delay: 270ms; }
.reveal-on-scroll-group > *:nth-child(5) { --reveal-delay: 360ms; }
.reveal-on-scroll-group > *:nth-child(6) { --reveal-delay: 450ms; }

body:has(.landing-login-page) .sg-footer {
    border-top-color: rgba(21, 14, 96, 0.16);
}

 .landing-login-page,
 .landing-login-page *,
 .landing-login-page *::before,
 .landing-login-page *::after {
     box-sizing: border-box;
 }
 
 .landing-login-page {
     min-height: 100vh;
     padding: 2rem 0 4rem;
     background:
         radial-gradient(circle at top left, rgba(0, 194, 224, 0.18), transparent 30rem),
         radial-gradient(circle at top right, rgba(21, 14, 96, 0.18), transparent 34rem),
         #f2fbfd;
     color: #150e60;
 }
 
 .landing-login-shell {
     width: min(100% - 3rem, 86rem);
     margin: 0 auto;
 }
 
 .landing-login-topbar {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     margin-bottom: 1.5rem;
     padding: 0.85rem 1rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 999rem;
     background: rgba(255, 255, 255, 0.86);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }
 
 .landing-login-brand {
     color: #150e60;
     font-size: 1.15rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: -0.04em;
     text-decoration: none;
 }
 
 .landing-login-brand:hover,
 .landing-login-brand:focus {
     color: #150e60;
     text-decoration: none;
 }
 
 .landing-login-navlinks {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }
 
 .landing-login-navlinks a {
     display: inline-flex;
     align-items: center;
     min-height: 2.5rem;
     padding: 0.65rem 0.95rem;
     border-radius: 999rem;
     color: #150e60;
     font-size: 0.9rem;
     font-weight: 800;
     line-height: 1;
     text-decoration: none;
 }
 
 .landing-login-navlinks a:hover,
 .landing-login-navlinks a:focus,
 .landing-login-navlinks .landing-login-nav-cta {
     background: #e0f7fc;
     color: #0f0a45;
     text-decoration: none;
 }
 
 .landing-login-hero {
     display: grid;
     grid-template-columns: minmax(0, 1fr) 27rem;
     gap: 1.25rem;
     align-items: stretch;
     margin-bottom: 1.25rem;
 }
 
 .landing-login-hero-copy,
 .landing-login-demo-panel {
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2.5rem;
     background: rgba(255, 255, 255, 0.92);
     box-shadow: 0 1.5rem 4rem rgba(21, 14, 96, 0.14);
 }
 
 .landing-login-hero-copy {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     justify-content: center;
     gap: 1rem;
     min-height: 0;
     padding: 2.25rem 2.5rem;
     background: #0dcaf0;
     color: #ffffff;
 }
 
 .landing-login-kicker {
     display: inline-flex;
     align-items: center;
     min-height: 2rem;
     margin-bottom: 0;
     padding: 0.45rem 0.75rem;
     border-radius: 999rem;
     background: rgba(255, 255, 255, 0.18);
     color: #ffffff;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: 0.08em;
     text-transform: uppercase;
 }
 
 .landing-login-title {
     max-width: 48rem;
     margin: 0;
     color: #ffffff;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
     font-size: clamp(2.6rem, 3.8vw, 4.25rem);
     font-weight: 500;
     line-height: 1.02;
     letter-spacing: -0.02em;
     text-transform: uppercase;
 }
 
 .landing-login-subtitle {
     max-width: 41rem;
     margin: 0;
     color: rgba(255, 255, 255, 0.94);
     font-size: 1.08rem;
     font-weight: 700;
     line-height: 1.48;
 }
 
 .landing-login-notice {
     max-width: 41rem;
     padding: 1rem 1.25rem;
     border-radius: 1.25rem;
     background: #ffe4e6;
     color: #150e60;
     font-weight: 900;
     line-height: 1.45;
     transition: opacity 0.4s ease;
 }

 .landing-login-notice.is-hidden {
     opacity: 0;
 }

 .landing-login-actions {
     display: flex;
     flex-wrap: wrap;
     gap: 0.75rem;
 }
 
 .landing-login-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-height: 3.25rem;
     padding: 0.85rem 1.25rem;
     border: 0;
     border-radius: 999rem;
     background: #ffffff;
     color: #0f0a45;
     font-size: 0.95rem;
     font-weight: 900;
     line-height: 1;
     text-align: center;
     text-decoration: none;
     box-shadow: 0 0.75rem 1.5rem rgba(21, 14, 96, 0.12);
     transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
 }
 
 .landing-login-btn:hover,
 .landing-login-btn:focus {
     transform: translateY(-0.125rem);
     color: #0f0a45;
     text-decoration: none;
     box-shadow: 0 1rem 2rem rgba(21, 14, 96, 0.18);
 }
 
 .landing-login-btn-primary {
     background: #d4f634;
     color: #150e60;
 }
 
 .landing-login-btn-primary:hover,
 .landing-login-btn-primary:focus {
     color: #150e60;
 }
 
 .landing-login-btn-secondary {
     background: rgba(255, 255, 255, 0.88);
 }
 
 .landing-login-demo-panel {
     display: grid;
     grid-template-rows: auto auto auto 1fr;
     min-height: 0;
     padding: 1.4rem;
     overflow: hidden;
 }
 
 .landing-login-panel-tag {
     justify-self: start;
     margin-bottom: 1rem;
     padding: 0.45rem 0.75rem;
     border-radius: 999rem;
     background: #e0f7fc;
     color: #150e60;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
     text-transform: uppercase;
 }
 
 .landing-login-demo-panel h2 {
     margin: 0;
     color: #150e60;
     font-size: 2.35rem;
     font-weight: 900;
     line-height: 0.95;
     letter-spacing: -0.06em;
 }
 
 .landing-login-demo-panel p {
     margin: 0.9rem 0 1rem;
     color: #5b6b8c;
     font-size: 0.98rem;
     font-weight: 700;
     line-height: 1.42;
 }
 
 .landing-login-demo-preview {
     display: flex;
     align-items: flex-end;
     min-height: 0;
     max-height: 9rem;
     border-radius: 2rem;
     background: linear-gradient(145deg, #e0f7fc, #fff7fc);
     overflow: hidden;
 }

 .landing-login-demo-preview img {
     display: block;
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 
 .landing-login-stats {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 0.75rem;
     margin-bottom: 2.5rem;
 }
 
 .landing-login-stat {
     min-height: 6.25rem;
     padding: 1.1rem 1.25rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 1.75rem;
     background: rgba(255, 255, 255, 0.9);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }
 
 .landing-login-stat span {
     display: block;
     margin-bottom: 0.5rem;
     color: #5b6b8c;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1.1;
     text-transform: uppercase;
 }
 
 .landing-login-stat strong {
     display: block;
     color: #150e60;
     font-size: 1.75rem;
     font-weight: 900;
     line-height: 1;
 }
 
 .landing-login-exams {
     margin-bottom: 2.5rem;
 }

 .landing-login-section-head {
     display: flex;
     align-items: end;
     justify-content: space-between;
     gap: 1rem;
     margin-bottom: 1.25rem;
 }
 
 .landing-login-section-head .landing-login-kicker {
     background: #e0f7fc;
     color: #0f0a45;
 }
 
 .landing-login-section-title {
     margin: 0;
     color: #150e60;
     font-size: 3.25rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: -0.02em;
     text-transform: uppercase;
 }
 
 .landing-login-section-head p {
     max-width: 22rem;
     margin: 0;
     color: #5b6b8c;
     font-size: 0.98rem;
     font-weight: 700;
     line-height: 1.4;
     text-align: right;
 }
 
 .landing-login-exam-grid {
     display: grid;
     grid-template-columns: repeat(5, minmax(0, 1fr));
     gap: 1rem;
 }
 
 .landing-login-exam-link {
     display: grid;
     grid-template-rows: 10.75rem 1fr;
     height: 100%;
     min-height: 27rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2rem;
     background: #ffffff;
     color: #150e60;
     overflow: hidden;
     text-decoration: none;
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.09);
     transition: transform 180ms ease, box-shadow 180ms ease;
 }
 
 .landing-login-exam-link:hover,
 .landing-login-exam-link:focus {
     transform: translateY(-0.125rem);
     color: #150e60;
     text-decoration: none;
     box-shadow: 0 1.35rem 3rem rgba(21, 14, 96, 0.14);
 }
 
 .landing-login-exam-image {
     background: #e0f7fc;
     overflow: hidden;
 }
 
 .landing-login-exam-image img {
     display: block;
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 
 .landing-login-exam-content {
     display: grid;
     grid-template-rows: auto auto 1fr auto;
     gap: 0.75rem;
     padding: 1rem;
 }
 
 .landing-login-exam-meta {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     gap: 0.5rem;
 }
 
 .landing-login-exam-meta span,
 .landing-login-exam-meta strong {
     display: inline-flex;
     align-items: center;
     min-height: 1.8rem;
     padding: 0.45rem 0.65rem;
     border-radius: 999rem;
     background: #e0f7fc;
     color: #0f0a45;
     font-size: 0.72rem;
     font-weight: 900;
     line-height: 1;
     text-transform: uppercase;
 }
 
 .landing-login-exam-meta strong,
 .landing-login-exam-card.is-free .landing-login-exam-meta span {
     background: #d1fae5;
     color: #065f46;
 }
 
 .landing-login-exam-content h3 {
     margin: 0;
     color: #150e60;
     font-size: 1.45rem;
     font-weight: 900;
     line-height: 1.04;
     letter-spacing: -0.04em;
 }
 
 .landing-login-exam-content p {
     margin: 0;
     color: #5b6b8c;
     font-size: 0.92rem;
     font-weight: 700;
     line-height: 1.38;
 }
 
 .landing-login-exam-action {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-height: 2.65rem;
     padding: 0.7rem 0.9rem;
     border-radius: 999rem;
     background: #150e60;
     color: #ffffff;
     font-size: 0.85rem;
     font-weight: 900;
     line-height: 1;
 }
 
 .landing-login-exam-card.is-free .landing-login-exam-action {
     background: #d4f634;
     color: #150e60;
 }
 
 .landing-login-feature-grid {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 0.75rem;
 }
 
 .landing-login-feature-card {
     min-height: 14rem;
     padding: 1.4rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2rem;
     background: rgba(255, 255, 255, 0.9);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }
 
 .landing-login-feature-card span {
     display: inline-flex;
     margin-bottom: 1rem;
     padding: 0.45rem 0.65rem;
     border-radius: 999rem;
     background: #e0f7fc;
     color: #150e60;
     font-size: 0.78rem;
     font-weight: 900;
 }
 
 .landing-login-feature-card h3 {
     margin: 0 0 0.75rem;
     color: #150e60;
     font-size: 1.5rem;
     font-weight: 900;
     line-height: 1.05;
 }
 
 .landing-login-feature-card p {
     margin: 0;
     color: #5b6b8c;
     font-size: 0.96rem;
     font-weight: 700;
     line-height: 1.42;
 }

 /* Responsive */

 @media (max-width: 1024px) {
     .landing-login-hero {
         grid-template-columns: minmax(0, 1fr);
     }

     .landing-login-demo-panel {
         min-height: 0;
     }

     .landing-login-exam-grid {
         grid-template-columns: repeat(3, minmax(0, 1fr));
     }
 }

 @media (max-width: 768px) {
     .landing-login-page {
         padding: 1.25rem 0 3rem;
     }

     .landing-login-shell {
         width: min(100% - 2rem, 86rem);
     }

     .landing-login-topbar {
         flex-wrap: wrap;
         border-radius: 1.5rem;
     }

     .landing-login-hero-copy {
         min-height: 0;
         padding: 1.75rem;
         border-radius: 1.75rem;
     }

     .landing-login-title {
         font-size: clamp(2.5rem, 10vw, 3.5rem);
     }

     .landing-login-demo-panel {
         padding: 1.1rem;
         border-radius: 1.75rem;
     }

     .landing-login-stats {
         grid-template-columns: repeat(3, minmax(0, 1fr));
         gap: 0.5rem;
         margin-bottom: 1.5rem;
     }

     .landing-login-section-head {
         flex-wrap: wrap;
     }

     .landing-login-section-head p {
         text-align: left;
     }

     .landing-login-section-title {
         font-size: clamp(2rem, 8vw, 2.75rem);
     }

     .landing-login-exam-grid {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }

     .landing-login-exam-link {
         min-height: 0;
     }

     .landing-login-feature-grid {
         grid-template-columns: minmax(0, 1fr);
     }
 }

 @media (max-width: 480px) {
     .landing-login-stats,
     .landing-login-exam-grid {
         grid-template-columns: minmax(0, 1fr);
     }

     .landing-login-actions {
         flex-direction: column;
         align-items: stretch;
     }
 }
 