:root {
    --primary: #1D4ED8;
    --primary-dark: #1E3A8A;
    --secondary: #10B981;
    --accent: #9333EA;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-page: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --border: #F1F5F9;
    --shadow-soft: 0 20px 40px -10px rgba(0,0,0,0.05);
    --shadow-card: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; }

/* Navigation (shared across every page) */
nav {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--text-main);
    color: white !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s;
}

.nav-cta:hover { transform: translateY(-1px); }

/* Hero (shared across every page) */
.hero {
    padding: 72px 0 64px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 28px;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    font-weight: 500;
}

.hero.hero-compact {
    padding: 56px 0 24px;
}

.hero.hero-compact h1 {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 16px;
}

.hero.hero-compact p {
    margin: 0 auto;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.store-buttons img {
    height: 48px;
    transition: transform 0.2s;
}

.store-buttons img:hover {
    transform: scale(1.05);
}

.trust-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-chip {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
}

/* Marquee Strip */
.global-strip {
    padding: 36px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 60px;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    gap: 60px;
    align-items: center;
    animation: scroll 60s linear infinite;
}

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

.country-tag {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Shared section headers */
section { scroll-margin-top: 90px; }

.section-tag {
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 64px;
    font-weight: 500;
}

/* The Advantage Section */
.advantage {
    padding: 120px 0 80px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.advantage-card {
    background: white;
    padding: 44px;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.advantage-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 17px;
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 28px;
}

/* App Showcase */
.showcase {
    padding: 80px 0;
    background: var(--bg-subtle);
    border-radius: 64px;
    margin: 0 auto 100px;
    max-width: 1200px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.app-frame {
    background: #0F172A;
    border-radius: 32px;
    aspect-ratio: 9/19;
    border: 6px solid #1E293B;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

.app-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Bento Grid Core Mechanics */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 120px;
}

.bento-box {
    padding: 40px;
    border-radius: 32px;
    background: white;
    border: 1px solid var(--border);
}

.bento-box.primary {
    background: var(--primary);
    color: white;
}

.bento-box.primary p { color: rgba(255,255,255,0.8); }

/* Parents section */
.parents {
    padding: 100px 0;
    background: var(--bg-subtle);
    border-radius: 64px;
    margin: 0 auto 100px;
    max-width: 1200px;
}

.parents-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: center;
}

.parents-intro h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.parents-intro p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 16px;
}

.parents-phone {
    max-width: 240px;
    margin: 0 auto;
}

/* Schools section */
.schools {
    padding: 100px 0;
    background: var(--bg-subtle);
    border-radius: 64px;
    margin: 0 auto 100px;
    max-width: 1200px;
}

.schools-intro {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}

.schools-intro h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.schools-intro p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.check-dot {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
}

/* Pricing */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.plan-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 36px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
}

.plan-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-card .plan-sub {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    min-height: 40px;
}

.plan-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.plan-card li {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.plan-card li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 800;
    flex-shrink: 0;
}

.payg-strip {
    background: white;
    border: 1px dashed #CBD5E1;
    border-radius: 24px;
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.payg-strip h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.payg-strip p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1.5px solid var(--border);
    padding: 13px 26px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Contact section */
.contact {
    padding: 40px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    transition: all 0.3s;
}

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

.contact-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.contact-card a.email-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* Legal pages (Terms / Privacy) */
.legal-wrapper { padding-bottom: 60px; }

.terms-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.term-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 380px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s;
}

.term-card:hover {
    border-color: #CBD5E1;
}

.legal-content {
    padding: 48px;
}

.legal-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.plain-explanation {
    background: var(--bg-subtle);
    padding: 48px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plain-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plain-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.plain-explanation p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
}

.update-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

/* Footer (shared across every page) */
footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
}

@media (max-width: 1000px) {
    .term-card { grid-template-columns: 1fr; }
    .plain-explanation { border-left: none; border-top: 1px solid var(--border); padding: 32px 48px; }
}

@media (max-width: 900px) {
    .advantage-grid, .bento-grid, .gallery-grid, .plans-grid, .contact-grid { grid-template-columns: 1fr; }
    .schools-intro, .parents-intro { grid-template-columns: 1fr; }
    .hero h1 { font-size: 40px; }
    .nav-links { display: none; }
    .showcase, .schools, .parents { border-radius: 32px; }
}

@media (max-width: 600px) {
    .legal-content, .plain-explanation { padding: 32px 24px; }
}
