:root {
    --primary: #0f9fa8;
    --primary-dark: #087782;
    --accent: #29d39f;
    --ink: #07172f;
    --muted: #667085;
    --line: #e5edf0;
    --soft: #f4fbfc;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(7, 23, 47, .12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


.mb-1 {
    margin-bottom: 2px;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.section-pad {
    padding: 92px 0;
}

.soft-bg {
    background: linear-gradient(180deg, #f6fcfd 0%, #fff 100%);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 159, 168, .12);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    height: 48px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #203047;
}

.site-nav a {
    transition: .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
}

.nav-cta {
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(15, 159, 168, .22);
}

.nav-secondary {
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--primary-dark) !important;
    border: 1.5px solid rgba(15, 159, 168, .35);
    background: transparent;
    font-weight: 700;
    transition: .2s ease;
}

.nav-secondary:hover {
    background: rgba(15, 159, 168, .07);
    border-color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    margin: 6px 0;
    border-radius: 20px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: visible;
    padding-top: 60px;
    padding-bottom: 140px;
    background:
        radial-gradient(circle at 88% 18%, rgba(41, 211, 159, .18), transparent 34%),
        radial-gradient(circle at 8% 10%, rgba(15, 159, 168, .13), transparent 32%),
        linear-gradient(180deg, #f9ffff 0%, #fff 72%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.eyebrow,
.section-kicker,
.section-title span {
    display: inline-flex;
    width: fit-content;
    color: var(--primary-dark);
    background: rgba(15, 159, 168, .08);
    border: 1px solid rgba(15, 159, 168, .18);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 16px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(40px, 5.6vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 18px;
    color: #344054;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 640px;
}

.hero-phone-wrap {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 80%;
}

.hero-phone {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 36px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, .18),
        0 10px 30px rgba(15, 159, 168, .18);
    transform: rotate(-3deg);
}

.hero-visual img {
    max-width: 100%;
    width: 100%;
    border-radius: 30px;
}

/* ── Floating cards ──────────────────────────────────────── */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 159, 168, .12);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 20px 50px rgba(7, 23, 47, .12);
    z-index: 3;
    width: 150px;
    transition: transform .3s ease;
}

.floating-card:hover {
    transform: translateY(-4px);
}

.floating-card span {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.floating-card p {
    margin: 0;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    line-height: 1.3;
}

.card-1 {
    top: 12%;
    left: -6%;
}

.card-2 {
    top: 8%;
    right: -6%;
}

.card-3 {
    bottom: 18%;
    left: -10%;
}

.card-4 {
    bottom: 8%;
    right: -6%;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 900;
    transition: .22s ease;
    cursor: pointer;
    border: 0;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    box-shadow: 0 18px 38px rgba(15, 159, 168, .24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(15, 159, 168, .28);
}

.btn-outline {
    border: 1px solid rgba(7, 23, 47, .18);
    background: #fff;
}

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

.btn-light {
    color: var(--primary-dark);
    background: #fff;
}

/* ── Trust row ────────────────────────────────────────────── */
.trust-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-row div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(7, 23, 47, .06);
}

.trust-row strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.trust-row span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* ── Stat strip ───────────────────────────────────────────── */
.stat-strip {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 159, 168, .13);
    border-radius: 26px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.stat-card span {
    display: block;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--primary-dark);
}

.stat-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 700;
}

/* ── Section titles ───────────────────────────────────────── */
.section-title {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-title h2,
.split-copy h2,
.faq-intro h2,
.cta-card h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.section-title p,
.split-copy p,
.faq-intro p,
.cta-card p {
    color: var(--muted);
    font-size: 18px;
}

/* ── Feature grid ─────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 18px 50px rgba(7, 23, 47, .07);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: rgba(15, 159, 168, .1);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}

/* ── Split sections (students / teachers / notes) ─────────── */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.reverse {
    grid-template-columns: 1fr 1fr;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 14px;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    font-weight: 800;
    color: #203047;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
    font-size: 14px;
}

.phone-stack {
    position: relative;
    min-height: 640px;
}

.phone-stack img,
.single-phone img {
    border-radius: 34px;
    box-shadow: var(--shadow);
    border: 8px solid #fff;
    background: #fff;
}

.phone-stack img:first-child {
    width: 52%;
    position: absolute;
    left: 4%;
    top: 38px;
    transform: rotate(-6deg);
}

.phone-stack img:last-child {
    width: 52%;
    position: absolute;
    right: 4%;
    bottom: 20px;
    transform: rotate(5deg);
}

.teacher-stack img:first-child {
    top: 20px;
    width: 54%;
}

.teacher-stack img:last-child {
    width: 54%;
    bottom: 8px;
}

.single-phone {
    max-width: 390px;
    margin: 0 auto;
}

.notes-section {
    background: linear-gradient(135deg, #ffffff 0%, #effafb 100%);
}

/* ── How it works (steps) ─────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(7, 23, 47, .06);
}

.step-card span {
    display: inline-block;
    font-size: 42px;
    font-weight: 900;
    color: rgba(15, 159, 168, .22);
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--muted);
    margin: 0;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
    background: #f8fbfc;
}

.faq-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 12px 35px rgba(7, 23, 47, .05);
}

summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    float: right;
    font-size: 22px;
    color: var(--muted);
    transition: transform .2s;
}

details[open] summary::after {
    content: '−';
}

details p {
    margin: 14px 0 0;
    color: var(--muted);
}

/* ── Final CTA ────────────────────────────────────────────── */
.final-cta {
    padding: 40px 0 80px;
    background: #f8fbfc;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-radius: 34px;
    padding: 48px;
    color: #fff;
    background: radial-gradient(circle at 80% 10%, rgba(41, 211, 159, .38), transparent 34%),
        linear-gradient(135deg, #064b55, #0f9fa8);
    box-shadow: var(--shadow);
}

.cta-card .section-kicker {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.cta-card p {
    color: rgba(255, 255, 255, .8);
    margin-bottom: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: #061926;
    color: #cbd5df;
    padding: 64px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 38px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: .95;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 16px;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: #cbd5df;
}

.site-footer a:hover {
    color: #fff;
}

.footer-download {
    color: #fff !important;
    font-weight: 900;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 40px;
    padding-top: 22px;
}

.footer-bottom p {
    margin: 0;
}

/* ── Mobile sticky CTA ────────────────────────────────────── */
.mobile-sticky-cta {
    display: none;
}

/* ── Reveal animations ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: .7s ease;
}

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

/* ══════════════════════════════════════════════════════════
   PWA INSTALL BANNER (matches dashboard pattern)
   ══════════════════════════════════════════════════════════ */
.pwa-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    width: calc(100% - 24px);
    max-width: 460px;
    animation: pwa-slide-up .28s ease;
}

@keyframes pwa-slide-up {
    from {
        transform: translate(-50%, 30px);
        opacity: 0;
    }
}

.pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 14px 40px rgba(7, 23, 47, .18);
    position: relative;
}

.pwa-banner-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: contain;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 4px;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.pwa-banner-text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 2px;
}

.pwa-banner-text span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.pwa-banner-cta {
    border: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .15s;
}

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

.pwa-banner-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.pwa-banner-close:hover {
    background: var(--soft);
    color: var(--ink);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        min-height: 540px;
        margin-top: 20px;
    }

    .hero-phone-wrap {
        width: 260px;
    }

    .floating-card {
        width: 130px;
        padding: 12px 14px;
    }

    .floating-card span {
        font-size: 13px;
    }

    .floating-card p {
        font-size: 12px;
    }

    .card-1 {
        top: 6%;
        left: 0;
    }

    .card-2 {
        top: 6%;
        right: 0;
    }

    .card-3 {
        bottom: 12%;
        left: 0;
    }

    .card-4 {
        bottom: 12%;
        right: 0;
    }
}

@media (max-width: 980px) {
    .section-pad {
        padding: 72px 0;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open,
    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        padding: 14px 12px;
    }

    .split-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .trust-row {
        justify-content: center;
    }

    .stat-grid,
    .feature-grid,
    .steps-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-stack {
        min-height: 600px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .nav-wrap {
        min-height: 72px;
    }

    .brand img {
        height: 42px;
    }

    .site-nav {
        top: 72px;
    }

    .hero {
        padding-top: 30px;
        padding-bottom: 100px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-lead,
    .section-title p,
    .split-copy p,
    .faq-intro p {
        font-size: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-row div {
        flex: 1 1 30%;
    }

    .hero-visual {
        min-height: 460px;
    }

    .hero-phone-wrap {
        width: 220px;
    }

    .floating-card {
        width: 110px;
        padding: 10px 12px;
    }

    .floating-card span {
        font-size: 12px;
    }

    .floating-card p {
        font-size: 11px;
    }

    .stat-strip {
        margin-top: 0;
        padding-top: 20px;
    }

    .stat-grid,
    .feature-grid,
    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .split-grid {
        gap: 36px;
    }

    .phone-stack {
        min-height: 540px;
    }

    .phone-stack img:first-child {
        width: 64%;
        left: 0;
    }

    .phone-stack img:last-child {
        width: 64%;
        right: 0;
    }

    .cta-card {
        padding: 32px 22px;
    }

    .site-footer {
        padding-bottom: 88px;
    }

    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        z-index: 120;
        left: 14px;
        right: 14px;
        bottom: 14px;
        justify-content: center;
        align-items: center;
        min-height: 54px;
        border-radius: 16px;
        color: #fff;
        font-weight: 900;
        background: linear-gradient(135deg, var(--primary-dark), var(--accent));
        box-shadow: 0 18px 40px rgba(7, 23, 47, .28);
    }

    /* Move PWA banner up so it doesn't sit on top of the sticky CTA */
    .pwa-banner {
        bottom: 80px;
    }
}


/* ── Role tab switcher ─────────────────────────────────── */
.hero-role-tabs {
    margin-top: 2rem;
}

.role-tab-switcher {
    display: inline-flex;
    background: rgba(13, 148, 136, .08);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.25rem;
    border: 1.5px solid rgba(13, 148, 136, .2);
}

.role-tab {
    background: transparent;
    border: none;
    color: #0d9488;
    /* teal — readable on light hero bg */
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
    opacity: .55;
    /* dim the inactive tab */
}

.role-tab.active {
    background: #0d9488;
    color: #fff;
    /* white text on teal active tab */
    opacity: 1;
}

.role-tab:hover:not(.active) {
    opacity: .85;
    background: rgba(13, 148, 136, .08);
}

.role-hint {
    font-size: .78rem;
    color: var(--muted, #667085);
    margin-top: .5rem;
}

/* ── Check list ────────────────────────────────────────── */
.check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.check-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: #344054;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent, #29d39f);
    font-weight: 900;
    font-size: 15px;
}