/* ==========================================================================
   School Insight ERP — Design Match Stylesheet
   ========================================================================== */

:root {
    --primary: #4F8EF7;
    --primary-dark: #3A7AE8;
    --primary-soft: rgba(79, 142, 247, 0.12);
    --secondary: #7CC6FE;
    --accent: #64D2FF;
    --bg: #F7FAFF;
    --bg-soft: #F8FAFC;
    --card: #FFFFFF;
    --heading: #172B4D;
    --text: #667085;
    --border: #E8EEF7;
    --success: #4CAF50;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 10px rgba(23, 43, 77, 0.05);
    --shadow-md: 0 10px 30px rgba(23, 43, 77, 0.08);
    --shadow-lg: 0 20px 50px rgba(79, 142, 247, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-h3: 1.5rem;
    --font-size-h2: clamp(1.875rem, 3vw, 2.5rem);
    --font-size-h1: clamp(2.25rem, 4.5vw, 3.5rem);
    --line-height-base: 1.65;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-xl); }
h5, h6 { font-size: var(--font-size-base); }
p, li, input, select, textarea, button { font-size: var(--font-size-base); }
small { font-size: var(--font-size-sm); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

a { text-decoration: none; color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
p { margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.7rem 1.45rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }

.btn-primary {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(79, 142, 247, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 142, 247, 0.35);
}

.btn-outline-primary {
    border: 2px solid #D6E4FF;
    color: var(--primary);
    background: var(--white);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border: none;
    font-weight: 700;
}

.btn-light:hover {
    background: #F0F6FF;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.55);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-login {
    min-width: 96px;
}

.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1050;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.96);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header .navbar {
    min-height: var(--header-height);
    padding: 0.65rem 0;
}

.navbar-brand.brand-3d {
    margin-right: 1rem;
    line-height: 0;
}

.brand-logo-img {
    height: auto;
    width: auto;
    max-height: 58px;
    max-width: min(300px, 42vw);
    object-fit: contain;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    filter: drop-shadow(0 8px 16px rgba(79, 142, 247, 0.28));
    transition: transform var(--transition), filter var(--transition);
}

.brand-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(240,246,255,0.95));
    border: 1px solid rgba(79, 142, 247, 0.18);
    box-shadow:
        0 10px 28px rgba(79, 142, 247, 0.18),
        0 2px 0 rgba(255,255,255,0.8) inset;
    overflow: visible;
}

.brand-3d .brand-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 30%, rgba(124,198,254,0.45), transparent 55%);
    animation: brandPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    clip-path: inset(0 round 10px);
}

.brand-3d:hover .brand-logo-img,
.brand-3d:hover .footer-logo-img,
.brand-3d:hover .login-logo {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 12px 22px rgba(79, 142, 247, 0.4));
}

@keyframes brandPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

.footer-logo-img {
    height: auto;
    width: auto;
    max-height: 56px;
    max-width: 260px;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    filter: drop-shadow(0 6px 14px rgba(79, 142, 247, 0.25));
}

.footer-brand.brand-3d {
    margin-bottom: 1rem;
    display: inline-flex;
    padding: 0.65rem 0.85rem;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: #445066;
    padding: 0.55rem 0.95rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23172B4D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section-padding { padding: 96px 0; }

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 620px;
    margin: 0 auto 3rem;
}

.text-primary-brand { color: var(--primary); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section {
    padding: calc(var(--header-height) + 56px) 0 70px;
    background:
        radial-gradient(circle at 85% 20%, rgba(124, 198, 254, 0.28), transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(79, 142, 247, 0.12), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #EEF4FF;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.35rem;
    border: 1px solid #DCE8FF;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.15rem;
}

.hero-description {
    font-size: 1.08rem;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.75rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.6rem;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading);
}

.hero-trust-item i {
    color: var(--primary);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    padding: 1rem 0.5rem 2rem;
}

.hero-glow {
    position: absolute;
    width: 78%;
    height: 78%;
    top: 10%;
    left: 12%;
    background: radial-gradient(circle, rgba(79,142,247,0.35) 0%, rgba(79,142,247,0) 70%);
    filter: blur(10px);
    z-index: 0;
}

.dashboard-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 360px;
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dash-sidebar {
    width: 58px;
    background: #F4F8FF;
    border-right: 1px solid var(--border);
    padding: 1rem 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dash-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    align-items: center;
}

.dash-nav span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #8A94A6;
    font-size: 0.8rem;
}

.dash-nav span.active {
    background: #E8F0FF;
    color: var(--primary);
}

.dash-main {
    flex: 1;
    padding: 1rem;
    background: #FBFCFF;
}

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dash-topbar h6 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.dash-topbar small {
    color: var(--text);
    font-size: 0.72rem;
}

.dash-top-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #8A94A6;
}

.dash-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.dash-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-stat small {
    display: block;
    font-size: 0.68rem;
    color: var(--text);
}

.dash-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--heading);
}

.dash-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
}

.dash-stat-icon.blue { background: #EAF2FF; color: var(--primary); }
.dash-stat-icon.green { background: #E9F8EE; color: #2E9B57; }
.dash-stat-icon.purple { background: #F3E9FF; color: #8B5CF6; }
.dash-stat-icon.orange { background: #FFF2E5; color: #F59E0B; }

.dash-charts {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.7rem;
}

.dash-chart-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.75rem;
}

.dash-chart-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--heading);
}

.dash-chart-head small {
    color: var(--text);
    font-weight: 500;
}

.line-svg { width: 100%; height: 70px; }

.donut-wrap {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 0.2rem auto 0;
}

.donut-wrap svg { width: 100%; height: 100%; }

.donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--heading);
}

.ai-insight-card {
    position: absolute;
    left: 8%;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow-md);
    max-width: 280px;
    animation: floatY 4.5s ease-in-out infinite;
}

.ai-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #EEF4FF;
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ai-insight-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--heading);
}

.ai-insight-card p {
    font-size: 0.75rem;
    color: var(--text);
}

/* ==========================================================================
   Trusted
   ========================================================================== */

.trusted-section {
    padding: 42px 0 50px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.trusted-label {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A94A6;
    margin-bottom: 1.6rem;
}

.logo-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 28s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.school-logo-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #F8FAFC;
    opacity: 0.72;
    white-space: nowrap;
}

.school-logo-badge i { color: #9AA6B8; }
.school-logo-badge span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: #6B778C;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features-section { background: var(--bg-soft); }

.feature-card {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 1.15rem;
}

.icon-blue { background: #EAF2FF; color: #4F8EF7; }
.icon-green { background: #E8F8EE; color: #2E9B57; }
.icon-purple { background: #F2E9FF; color: #8B5CF6; }
.icon-orange { background: #FFF1E4; color: #F59E0B; }
.icon-cyan { background: #E7F8FC; color: #0EA5B7; }
.icon-pink { background: #FFEAF1; color: #E11D68; }

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.feature-desc {
    font-size: 0.95rem;
    line-height: 1.65;
}

.view-all-link {
    font-family: var(--font-heading);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link i { transition: transform var(--transition); }
.view-all-link:hover i { transform: translateX(4px); }

/* ==========================================================================
   Mobile Apps
   ========================================================================== */

.apps-section { background: var(--white); }

.apps-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.app-side h3 {
    font-size: 1.35rem;
    margin: 0.9rem 0 1rem;
}

.app-side-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.app-side-icon.blue { background: #EAF2FF; color: var(--primary); }
.app-side-icon.purple { background: #F2E9FF; color: #8B5CF6; }

.app-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-checklist li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: var(--heading);
}

.app-checklist i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #EAF2FF;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 0.65rem;
}

.purple-checks i {
    background: #F2E9FF;
    color: #8B5CF6;
}

.phones-cluster {
    position: relative;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.phone {
    width: 180px;
    background: #1B2437;
    border-radius: 28px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    position: absolute;
}

.phone-back {
    transform: translate(-42px, -18px) rotate(-6deg);
    z-index: 1;
}

.phone-front {
    transform: translate(48px, 0) rotate(5deg);
    z-index: 2;
}

.phone-notch {
    width: 72px;
    height: 16px;
    background: #1B2437;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
}

.phone-screen {
    background: #F7FAFF;
    border-radius: 22px;
    min-height: 340px;
    padding: 1rem 0.85rem;
}

.phone-top small,
.phone-profile small {
    display: block;
    color: var(--text);
    font-size: 0.72rem;
}

.phone-top strong,
.phone-profile strong {
    font-family: var(--font-heading);
    color: var(--heading);
}

.phone-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.phone-card strong {
    font-family: var(--font-heading);
    color: var(--heading);
}

.phone-card.soft { background: #F8FAFC; }

.phone-btn {
    margin-top: 0.9rem;
    background: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
}

.phone-btn.alt {
    background: #22C55E;
}

.phone-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
}

.phone-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.text-success-soft { color: #16A34A; }

/* ==========================================================================
   Why + Stats
   ========================================================================== */

.why-section { background: var(--bg-soft); }

.why-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.why-item {
    text-align: center;
}

.why-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    border: 1.5px solid #DCE8FF;
    background: var(--white);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    transition: all var(--transition);
}

.why-item:hover .why-circle {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(79,142,247,0.25);
}

.why-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--heading);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.color-blue .stat-icon { background: #EAF2FF; color: #4F8EF7; }
.color-orange .stat-icon { background: #FFF1E4; color: #F59E0B; }
.color-purple .stat-icon { background: #F2E9FF; color: #8B5CF6; }
.color-pink .stat-icon { background: #FFEAF1; color: #E11D68; }

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section { background: var(--white); }

.quote-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--shadow-md);
    min-height: 320px;
}

.quote-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #EEF4FF;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.quote-card blockquote {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--heading);
    margin: 0 0 1.8rem;
    border: 0;
    padding: 0;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
}

.quote-author strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--heading);
}

.quote-author span {
    font-size: 0.85rem;
    color: var(--text);
}

.testimonials-swiper { padding-bottom: 2.5rem; }

.testimonials-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #D6E0F0;
    opacity: 1;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 22px;
    border-radius: 6px;
}

.school-illustration {
    position: relative;
    height: 360px;
    background: linear-gradient(180deg, #EAF4FF 0%, #F7FAFF 100%);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.school-building {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 220px;
    height: 180px;
}

.school-body {
    position: absolute;
    inset: 50px 30px 0;
    background: #FFFFFF;
    border: 3px solid #4F8EF7;
    border-radius: 12px 12px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 16px 40px;
}

.school-window {
    background: #BFD7FF;
    border-radius: 6px;
}

.school-door {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 48px;
    background: #3A7AE8;
    border-radius: 8px 8px 0 0;
}

.school-tower {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 58px;
    height: 70px;
    background: #4F8EF7;
    border-radius: 10px 10px 0 0;
}

.school-clock {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #4F8EF7;
    font-size: 0.65rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.school-wing {
    position: absolute;
    bottom: 0;
    width: 70px;
    height: 100px;
    background: #7CC6FE;
    border-radius: 8px 8px 0 0;
}

.left-wing { left: -20px; }
.right-wing { right: -20px; }

.school-tree {
    position: absolute;
    bottom: 40px;
    width: 28px;
    height: 48px;
    background: #34D399;
    border-radius: 40% 40% 10% 10%;
}

.tree-1 { left: 18%; }
.tree-2 { right: 16%; }

.school-cloud {
    position: absolute;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    height: 18px;
}

.cloud-1 { width: 70px; top: 40px; left: 18%; }
.cloud-2 { width: 50px; top: 70px; right: 20%; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-section { background: var(--bg-soft); }

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.pricing-highlighted {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-name { font-size: 1.3rem; margin-bottom: 0.4rem; }
.pricing-desc { font-size: 0.9rem; margin-bottom: 1.3rem; }

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.pricing-price .currency { font-weight: 700; color: var(--heading); }
.pricing-price .amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1;
}
.pricing-price .period { color: var(--text); font-size: 0.9rem; }

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.pricing-features li:last-child { border-bottom: 0; }
.pricing-features i { color: var(--success); }

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

.cta-section { padding: 40px 0 20px; }

.cta-banner {
    background: linear-gradient(135deg, #3B82F6 0%, #4F8EF7 45%, #60A5FA 100%);
    border-radius: 28px;
    padding: 2.4rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.cta-3d {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: rgba(255,255,255,0.16);
    display: grid;
    place-items: center;
    position: relative;
    font-size: 2rem;
}

.cta-book, .cta-chart {
    position: absolute;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-book { right: 10px; bottom: 12px; }
.cta-chart { left: 12px; top: 12px; }

.cta-copy h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.45rem;
}

.cta-copy p {
    color: rgba(255,255,255,0.9);
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section { background: var(--white); }

.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--white);
}

.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading);
    background: var(--white);
    box-shadow: none;
    padding: 1.15rem 1.3rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: #F5F9FF;
}

.faq-accordion .accordion-body {
    padding: 0 1.3rem 1.2rem;
    color: var(--text);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section { background: var(--bg-soft); }

.contact-info-card,
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.contact-info-card > p { margin-bottom: 1.5rem; }

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.contact-info-list li {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-list li:last-child { border-bottom: 0; }

.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #EEF4FF;
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-info-list strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--heading);
    font-size: 0.9rem;
}

.contact-info-list span {
    font-size: 0.9rem;
    color: var(--text);
}

.map-placeholder {
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #F7FAFF, #EAF2FF);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text);
    gap: 0.4rem;
}

.map-placeholder i {
    font-size: 1.8rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-form .form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading);
    font-size: 0.9rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}

.form-feedback {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.form-feedback.success {
    background: #EAF9EF;
    color: #1F8A45;
    border: 1px solid #C8EED5;
}

.form-feedback.error {
    background: #FEECEC;
    color: #D32F2F;
    border: 1px solid #F7C7C7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #F8FAFC;
    border-top: 1px solid var(--border);
    padding: 72px 0 0;
}

.footer-brand img {
    height: 44px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: #6B778C;
    display: grid;
    place-items: center;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
    color: var(--text);
    font-size: 0.92rem;
}

.footer-links a:hover { color: var(--primary); }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    color: var(--text);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
}

/* ==========================================================================
   3D Depth System + Feature Detail Pages + SPA
   ========================================================================== */

.depth-card {
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    box-shadow:
        0 2px 4px rgba(23, 43, 77, 0.04),
        0 12px 28px rgba(79, 142, 247, 0.1),
        0 1px 0 rgba(255,255,255,0.8) inset;
}

.depth-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
        0 18px 40px rgba(79, 142, 247, 0.18),
        0 6px 12px rgba(23, 43, 77, 0.06);
}

.icon-3d {
    box-shadow:
        0 8px 18px rgba(79, 142, 247, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transform: translateZ(12px);
}

.feature-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.feature-card-link:hover {
    color: inherit;
}

.feature-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}

.feature-more i { transition: transform var(--transition); }
.feature-card-link:hover .feature-more i { transform: translateX(4px); }

.section-padding-sm { padding: 110px 0 40px; }

.page-hero-card {
    background: linear-gradient(145deg, #ffffff, #f4f8ff);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.2rem 2rem;
    position: relative;
    overflow: hidden;
}

.page-hero-card::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -60px;
    background: radial-gradient(circle, rgba(79,142,247,0.25), transparent 70%);
}

.page-hero-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    margin: 0.4rem 0 0.75rem;
    position: relative;
}

.page-hero-text {
    max-width: 680px;
    margin: 0;
    position: relative;
}

.feature-detail-hero {
    padding: calc(var(--header-height) + 36px) 0 40px;
    background:
        radial-gradient(circle at 85% 20%, rgba(124, 198, 254, 0.25), transparent 35%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
}

.feature-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.feature-breadcrumb a { font-weight: 600; }

.feature-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.feature-detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.feature-detail-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.feature-detail-desc {
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
    max-width: 540px;
}

.feature-highlight-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pill-3d {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--heading);
    box-shadow: 0 6px 14px rgba(79,142,247,0.12);
}

.media-placeholder {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(145deg, #eef4ff, #ffffff 45%, #f7faff);
    border: 1px solid var(--border);
    min-height: 320px;
    overflow: hidden;
}

.media-placeholder.media-sm { min-height: 260px; }

.media-placeholder-inner {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    padding: 2rem;
    color: var(--text);
}

.media-placeholder-inner i {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 10px 18px rgba(79,142,247,0.35));
}

.media-placeholder-inner strong {
    font-family: var(--font-heading);
    color: var(--heading);
    font-size: 1.05rem;
}

.media-placeholder-inner span {
    font-size: 0.88rem;
    max-width: 260px;
}

.media-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    left: 15%;
    top: 15%;
    background: radial-gradient(circle, rgba(79,142,247,0.28), transparent 70%);
    filter: blur(8px);
}

.media-3d {
    transform: perspective(900px) rotateY(-4deg) rotateX(3deg);
}

.media-3d:hover {
    transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-6px);
}

.feature-section-block {
    padding: 70px 0;
}

.feature-section-alt {
    background: var(--bg-soft);
}

.content-3d-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.8rem;
}

.feature-section-text {
    margin-bottom: 1.1rem;
}

.feature-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-points li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    color: var(--heading);
    font-weight: 500;
}

.feature-points i {
    color: var(--success);
    margin-top: 0.2rem;
}

#spa-root {
    min-height: 50vh;
    transition: opacity 0.2s ease;
}

#spa-root.spa-loading {
    opacity: 0.45;
    pointer-events: none;
}

.dashboard-mockup,
.phone,
.login-card,
.pricing-card,
.quote-card,
.stat-card,
.why-card,
.feature-card {
    transform-style: preserve-3d;
}

.hero-section .dashboard-mockup {
    transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
    animation: floatY 6s ease-in-out infinite;
}

.hero-section .dashboard-mockup:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(2deg) translateY(-6px);
}

.cta-banner {
    box-shadow: 0 24px 50px rgba(59, 130, 246, 0.35);
}

/* Shared breadcrumbs */
.page-breadcrumb-bar {
    margin-bottom: 1.5rem;
}

.page-breadcrumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.95) 45%),
        #fff;
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.breadcrumb-left {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.breadcrumb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.breadcrumb-kicker i { font-size: 0.75rem; }

.page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: var(--font-size-sm);
}

.page-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.page-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text);
    font-weight: 600;
}

.page-breadcrumb a:hover { color: var(--primary); }

.page-breadcrumb .breadcrumb-home i {
    font-size: 0.8rem;
    color: var(--primary);
}

.page-breadcrumb .breadcrumb-separator {
    margin: 0 0.55rem;
    color: #A7B1C2;
    font-size: 0.65rem;
}

.page-breadcrumb .breadcrumb-current {
    color: var(--heading);
    font-weight: 700;
}

.breadcrumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    white-space: nowrap;
}

.breadcrumb-badge i { font-size: 0.8rem; }

/* About vision pillars */
.vision-pillar-card {
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vision-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.vision-pillar-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.vision-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vision-pillar-kicker {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.vision-pillar-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--heading);
}

.vision-pillar-desc {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.vision-pillar-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.vision-pillar-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: var(--font-size-sm);
    color: var(--heading);
}

.vision-pillar-points i {
    color: var(--success);
    margin-top: 0.15rem;
    font-size: 0.85rem;
}

/* Pricing billing controls and comparison */
.billing-switcher {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.billing-option {
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    padding: 0.65rem 1rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    white-space: nowrap;
}

.billing-option span {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--success);
    font-size: var(--font-size-xs);
}

.billing-option.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(79,142,247,0.28);
}

.billing-option.active span { color: #E8F7EC; }

.pricing-capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.7rem;
    border-radius: 9px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.pricing-custom { font-size: 2.1rem !important; }
.billing-note {
    min-height: 2.4rem;
    margin-top: -1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: var(--font-size-xs);
}

.pricing-explainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.pricing-explainer > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: center;
}

.pricing-explainer i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}

.pricing-explainer strong {
    color: var(--heading);
    font-family: var(--font-heading);
}

.pricing-explainer span { font-size: var(--font-size-sm); }

.comparison-section { background: #fff; }
.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
}

.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-size: var(--font-size-sm);
}

.comparison-table th:first-child {
    text-align: left;
    color: var(--heading);
}

.comparison-table thead th {
    color: var(--heading);
    background: #F8FAFC;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
}

.comparison-table thead span {
    display: block;
    margin-top: 0.2rem;
    color: var(--primary);
    font-size: var(--font-size-xs);
}

.comparison-table .recommended-column { background: #F3F7FF; }
.comparison-yes { color: var(--success); }
.comparison-no { color: #B6BECC; }

.comparison-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.comparison-included {
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
}

.comparison-addon {
    background: rgba(245, 158, 11, 0.14);
    color: #B45309;
}

/* Mobile app add-ons */
.mobile-addons-section {
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.addon-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.addon-included {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), #fff 40%);
}

.addon-optional {
    border-color: rgba(59, 130, 246, 0.15);
}

.addon-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}

.addon-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.addon-badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.addon-included .addon-badge { color: #15803D; }

.addon-name {
    font-size: 1.2rem;
    margin: 0;
    color: var(--heading);
}

.addon-desc {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.addon-features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    flex: 1;
}

.addon-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--heading);
}

.addon-features i {
    color: var(--success);
    margin-top: 0.15rem;
    font-size: 0.8rem;
}

.addon-price-wrap {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.addon-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-family: var(--font-heading);
}

.addon-price .currency,
.addon-price .amount {
    font-weight: 800;
    color: var(--heading);
}

.addon-price .amount { font-size: 1.75rem; }
.addon-price .period {
    color: var(--text);
    font-size: var(--font-size-sm);
}

.addon-price-included {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

.addon-billing-note {
    margin: 0.35rem 0 0;
    font-size: var(--font-size-xs);
    color: var(--text);
}

/* Demo modal */
.demo-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(23,43,77,0.2);
}

.demo-modal .modal-header {
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem;
    border: 0;
    background: linear-gradient(145deg, #F4F8FF, #fff);
}

.demo-modal .modal-title {
    margin-bottom: 0.25rem;
    font-size: 1.65rem;
}

.demo-modal .modal-header p {
    color: var(--text);
    font-size: var(--font-size-sm);
}

.demo-modal .modal-body { padding: 1.25rem 1.5rem; }
.demo-modal .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border: 0;
}

.demo-modal .form-label {
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.demo-modal .form-control,
.demo-modal .form-select {
    min-height: 46px;
    border-color: var(--border);
    border-radius: 10px;
}

/* Legal pages */
.legal-updated {
    margin-top: 1rem;
    color: var(--text);
    font-size: var(--font-size-sm);
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.legal-nav strong {
    margin-bottom: 0.25rem;
    color: var(--heading);
    font-family: var(--font-heading);
}

.legal-nav a {
    color: var(--text);
    font-size: var(--font-size-sm);
}

.legal-content {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}

.legal-content > section {
    padding: 0 0 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.legal-content h2 {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.35rem;
}

.legal-number {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.legal-contact {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    color: var(--text);
    background: #F4F8FF;
}

.legal-contact > i { color: var(--primary); margin-top: 0.25rem; }
.legal-contact strong { color: var(--heading); }

/* Correct footer brand proportions */
.footer-logo-img {
    width: min(100%, 320px);
    max-width: 320px;
    max-height: none;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    border-radius: 10px;
}

.footer-brand.brand-3d {
    width: 100%;
    max-width: 340px;
    padding: 0.35rem;
    overflow: hidden;
}

.footer-bottom {
    justify-content: space-between;
    text-align: left;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links a {
    color: var(--text);
    font-size: var(--font-size-sm);
}
