/* =====================================================================
   SchoolOS — schoolstyle.css (final, mobile-merged)
   Type scale : 12/13/14/16/20/24/32 + 3 display clamps (--fs-d1/d2/d3)
   Radii      : 6/10/16/24/pill
   Text colours: tokens only (ink, text, muted, primary, text-brand, text-ok,
                 text-bad, text-warn, white + on-dark tokens)
   Buttons    : .btn (1 size + lg) · one shared tab/chip family · .mock-btn
   Breakpoints: 1080 (tablet) · 800 · 760 (phone nav) · 640 (phone) · 420 / 360
   ===================================================================== */
:root {
    --primary: #7c3aed;
    --deep: #5b21b6;
    --secondary: #9333ea;
    --soft: #f5f3ff;
    --light: #ede9fe;
    --bg: #f8f7fc;
    --bg2: #f0eeff;
    --ink: #1e1b4b;
    --text: #334155;
    --muted: #5b6477;
    --faint: var(--muted);
    --border: #e8e4f9;
    --green: #10b981;
    --blue: #3b82f6;
    --amber: #f59e0b;
    --rose: #ec4899;
    --red: #ef4444;
    --white: #fff;
    --text-strong: var(--ink);
    --text-brand: #6d28d9;
    --text-ok: #047857;
    --text-bad: #b91c1c;
    --text-warn: #92400e;
    --on-dark: #fff;
    --on-dark-muted: #b4aec4;
    --on-dark-accent: #c4b5fd;
    --on-dark-ok: #86efac;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-md: 14px;
    --fs-base: 16px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-2xl: 32px;
    --fs-d1: clamp(38px, 3.8vw, 58px);
    --fs-d2: clamp(34px, 3.6vw, 52px);
    --fs-d3: clamp(28px, 3vw, 40px);
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;
    --radius: var(--r-lg);
    --radius-md: var(--r-md);
    --radius-sm: var(--r-sm);
    --shadow: 0 24px 70px rgba(67, 45, 130, .11);
    --shadow-sm: 0 10px 30px rgba(67, 45, 130, .08);
    --container: 1320px;
    --section-y: 96px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --heading: var(--ink);
    --copy: var(--muted);
    --line: rgba(91, 33, 182, .11);
    --shadow-premium: 0 28px 90px rgba(49, 31, 108, .10);
    --shadow-card: 0 14px 42px rgba(49, 31, 108, .07)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    background: #faf9fd;
    color: var(--heading);
    font-family: var(--body);
    font-size: var(--fs-base);
    line-height: 1.6;
    overflow-x: hidden
}

img,
svg,
canvas,
video {
    max-width: 100%;
    height: auto
}

a {
    text-decoration: none;
    color: inherit
}

button,
input,
select {
    font: inherit
}

button {
    border: 0
}

[hidden] {
    display: none !important
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin: auto
}

.section-space {
    padding: var(--section-y) 0
}

/* ---------- header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
    background: transparent
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(30, 27, 75, .06)
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px
}
.nav-logo {
    /* FIX: was "height: 135px" — this is the BASE rule that applies
       at every width including desktop, so the logo was rendering
       nearly 3x taller than the 18px-padding nav bar could contain
       it. 44px is the correct resting height for an 18px-padding
       fixed nav; it scales down further on scroll and on mobile
       via the media queries below. */
    height: 44px;
    width: auto;
    /* max-width: 190px; */
    object-fit: contain;
    display: block;
    transition:
        height var(--dur-fast) var(--ease),
        filter 0.4s var(--ease);
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}

.nav-logos {
    width: auto;
    /* max-width: 190px; */
    object-fit: contain;
    display: block;
    transition:
        height var(--dur-fast) var(--ease),
        filter 0.4s var(--ease);
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.045em;
    font-size: var(--fs-lg)
}

.brand-accent {
    color: var(--primary)
}

.brand-mark {
    width: 31px;
    height: 31px;
    padding: 7px 5px;
    border-radius: var(--r-xs);
    background: var(--ink);
    display: flex;
    gap: 3px;
    align-items: flex-end
}

.brand-mark span {
    display: block;
    width: 4px;
    border-radius: var(--r-xs);
    background: #fff
}

.brand-mark span:nth-child(1) {
    height: 9px
}

.brand-mark span:nth-child(2) {
    height: 15px;
    background: #a78bfa
}

.brand-mark span:nth-child(3) {
    height: 20px;
    background: #ddd6fe
}

.desktop-nav {
    display: flex;
    gap: 30px;
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: -.01em
}

.desktop-nav a,
.login-link {
    transition: .2s
}

.desktop-nav a:hover,
.login-link:hover {
    color: var(--primary)
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px
}

.login-link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text)
}

/* ---------- buttons: one size + lg ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: var(--fs-md);
    padding: 12px 20px;
    letter-spacing: -.01em;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
    text-align: center
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-sm {
    padding: 12px 20px;
    font-size: var(--fs-md)
}

.btn-lg {
    padding: 14px 24px;
    font-size: var(--fs-base)
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    box-shadow: 0 10px 26px rgba(124, 58, 237, .22)
}

.btn-primary:hover {
    box-shadow: 0 15px 32px rgba(124, 58, 237, .3)
}

.btn-ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--border)
}

.btn-light {
    background: #fff;
    color: var(--text-brand)
}

.btn-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .28)
}

.btn-wa:hover {
    box-shadow: 0 15px 32px rgba(37, 211, 102, .38)
}

.btn.full {
    width: 100%
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border);
    padding: 9px;
    cursor: pointer
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: var(--r-xs)
}

.mobile-drawer {
    display: none
}

/* ---------- hero ---------- */
.hero {
    padding-top: 150px;
    padding-bottom: 96px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 72% 15%, rgba(167, 139, 250, .16), transparent 24%), radial-gradient(circle at 100% 62%, rgba(124, 58, 237, .06), transparent 22%), linear-gradient(180deg, #fcfbff 0%, #f8f7fc 82%)
}

.hero:before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(124, 58, 237, .08);
    border-radius: var(--r-pill);
    right: -300px;
    top: -180px
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: 56px;
    align-items: center
}

.hero-copy {
    padding-left: 0;
    min-width: 0
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--fs-sm);
    letter-spacing: .02em;
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
    text-transform: none
}

.eyebrow i {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: var(--r-pill);
    box-shadow: 0 0 0 5px rgba(124, 58, 237, .09)
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    letter-spacing: -.055em;
    margin: 0;
    font-weight: 700;
    text-wrap: balance
}

h3 {
    font-size: var(--fs-lg)
}

h4 {
    font-size: var(--fs-md)
}

h1 {
    font-size: var(--fs-d1);
    line-height: 1.03;
    letter-spacing: -.055em;
    max-width: 600px;
    margin-top: 0
}

h1 span,
h2 span {
    color: var(--primary)
}

h1 span {
    position: relative
}

h1 span::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 0;
    bottom: -7px;
    height: 7px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, rgba(124, 58, 237, .12), rgba(124, 58, 237, .34), transparent);
    transform: skewX(-12deg);
    z-index: -1
}

.hero-text {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--copy);
    max-width: 560px;
    margin: 22px 0 0
}

.hero-audience {
    margin: 14px 0 0;
    max-width: 560px;
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--text)
}

.hero-audience b {
    color: var(--primary)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

.hero-meta {
    display: flex;
    gap: 8px 22px;
    flex-wrap: wrap;
    margin-top: 20px;
    color: var(--muted);
    font-weight: 600;
    font-size: var(--fs-md)
}

.hero-meta span {
    white-space: nowrap
}

.hero-app {
    margin-top: 26px;
    max-width: 560px
}

.hero-app-title {
    margin: 0 0 12px;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px
}

.hero-new {
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 800
}

.hero-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.hero-app-grid a {
    display: block;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    transition: border-color .2s, transform .2s var(--ease)
}

.hero-app-grid a:hover {
    border-color: var(--primary);
    transform: translateY(-2px)
}

.hero-app-grid b {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-md);
    color: var(--ink)
}

.hero-app-grid b svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hero-app-grid span {
    display: block;
    margin-top: 4px;
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--muted)
}

.hero-mini-flow {
    margin-top: 22px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 700
}

.hero-mini-flow span {
    background: #fff;
    border: 1px solid var(--border);
    padding: 7px 10px;
    border-radius: var(--r-pill);
    box-shadow: 0 8px 25px rgba(67, 45, 130, .045);
    white-space: nowrap
}

.hero-mini-flow b {
    color: var(--primary)
}

/* hero visual stage (proportional to its width) */
.hero-product {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / .98;
    min-width: 0
}

.hero-orbit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    aspect-ratio: 1;
    border: 1px solid rgba(124, 58, 237, .11);
    border-radius: var(--r-pill);
    pointer-events: none
}

.hero-orbit.one {
    width: 92%;
    right: -8%
}

.hero-orbit.two {
    width: 118%;
    right: -20%;
    opacity: .5
}

.hero-laptop {
    position: absolute;
    left: 0;
    top: 2%;
    width: 100%;
    margin: 0;
    transition: transform .25s var(--ease)
}

.hero-laptop img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 40px 50px rgba(49, 31, 108, .22))
}

.hero-phones {
    position: absolute;
    z-index: 6;
    right: -2%;
    bottom: -2%;
    width: 54%;
    height: auto;
    aspect-ratio: 1 / 1.3;
    pointer-events: none
}

.hero-shot {
    position: absolute;
    bottom: 0;
    display: block;
    pointer-events: auto;
    transition: transform .35s var(--ease)
}

.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 36px rgba(49, 31, 108, .28))
}

.hs-teacher {
    left: 0;
    width: 50%;
    transform: rotate(-5deg);
    transform-origin: bottom center;
    z-index: 1
}

.hs-parent {
    right: 0;
    width: 54%;
    transform: rotate(3deg);
    transform-origin: bottom center;
    z-index: 2
}

.hs-teacher:hover {
    transform: rotate(-5deg) translateY(-8px)
}

.hs-parent:hover {
    transform: rotate(3deg) translateY(-8px)
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--border);
    box-shadow: 0 18px 44px rgba(68, 45, 130, .12);
    padding: 11px 13px;
    border-radius: var(--r-md);
    z-index: 4;
    animation: float 5s ease-in-out infinite
}

.floating-card strong {
    display: block;
    letter-spacing: -.02em;
    font-family: var(--display);
    font-weight: 800;
    font-size: var(--fs-md)
}

.floating-card small {
    color: var(--muted);
    font-size: var(--fs-xs)
}

.hero-product .f1 {
    left: -5%;
    top: 6%
}

.hero-product .f2 {
    right: -4%;
    top: 20%;
    animation-delay: -1s
}

.hero-product .f3 {
    left: -6%;
    bottom: 26%;
    animation-delay: -2s
}

.hero-product .f4 {
    left: 9%;
    bottom: 3%;
    animation-delay: -3s
}

.mini-icon {
    width: 27px;
    height: 27px;
    border-radius: var(--r-xs);
    display: grid;
    place-items: center;
    font-size: var(--fs-xs);
    font-weight: 800
}

.mini-icon.green {
    background: #ecfdf5;
    color: var(--text-ok)
}

.mini-icon.purple {
    background: var(--light);
    color: var(--primary)
}

.mini-icon.blue {
    background: #eff6ff;
    color: var(--text-brand)
}

.mini-icon.amber {
    background: #fffbeb;
    color: var(--text-warn)
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

/* ---------- browser frame (used by the feature mockups) ---------- */
.browser {
    background: #fff;
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative
}

.browser-bar {
    height: 39px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
    background: #faf9fd;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-xs);
    color: var(--muted)
}

.browser-bar.dark {
    background: #17142c;
    border-color: #2d2948;
    color: var(--on-dark-muted)
}

.traffic {
    display: flex;
    gap: 5px
}

.traffic i {
    width: 7px;
    height: 7px;
    border-radius: var(--r-pill);
    background: #d8d4e8
}

.browser-title {
    margin: auto;
    font-weight: 700;
    letter-spacing: .02em
}

.browser-status {
    display: flex;
    gap: 5px;
    align-items: center
}

.browser-status span {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: var(--r-pill);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .08)
}

/* ---------- trust strip ---------- */
.trust-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0 25px;
    overflow: hidden
}

.trust-strip p {
    text-align: center;
    font-size: var(--fs-sm);
    letter-spacing: .02em;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 16px
}

.marquee {
    overflow: hidden
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: marquee 25s linear infinite;
    color: var(--text);
    font-weight: 700
}

.marquee:hover .marquee-track {
    animation-play-state: paused
}

.marquee-track i {
    color: #c4b5fd;
    font-style: normal
}

@keyframes marquee {
    to {
        transform: translateX(-50%)
    }
}

/* ---------- statement ---------- */
.statement {
    background: #fff;
    position: relative
}

.statement-grid,
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 92px;
    align-items: center
}

.statement-grid {
    gap: 100px
}

.statement-grid>div:first-child {
    max-width: 585px
}

.statement h2,
.section-intro h2,
.feature-copy h2 {
    font-size: var(--fs-d2);
    line-height: 1.04;
    letter-spacing: -.06em;
    margin-top: 16px
}

.statement h2 em {
    font-style: normal;
    color: var(--muted)
}

.statement p,
.section-intro p,
.feature-copy p {
    color: var(--copy);
    font-size: var(--fs-base);
    line-height: 1.8;
    max-width: 610px;
    margin-top: 22px
}

.text-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 22px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--primary)
}

.command-visual {
    min-height: 530px;
    position: relative;
    display: grid;
    place-items: center
}

.command-visual:before,
.command-visual:after {
    content: "";
    position: absolute;
    border: 1px solid var(--border);
    border-radius: var(--r-pill)
}

.command-visual:before {
    width: 340px;
    height: 340px
}

.command-visual:after {
    width: 500px;
    height: 500px;
    opacity: .6
}

.command-center {
    width: 180px;
    height: 180px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(180deg, #fff, #f5f3ff);
    border: 1px solid #ddd5f6;
    box-shadow: 0 30px 60px rgba(93, 33, 182, .12);
    position: relative;
    z-index: 2
}

.center-dot {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: var(--r-pill);
    box-shadow: 0 0 0 8px rgba(124, 58, 237, .1)
}

.ring-card {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(68, 45, 130, .08);
    animation: float 4.8s ease-in-out infinite
}

.r1 {
    top: 23px;
    left: 27%;
    animation-delay: -.2s
}

.r2 {
    top: 156px;
    right: 6%;
    animation-delay: -.8s
}

.r3 {
    bottom: 135px;
    right: 7%;
    animation-delay: -1.2s
}

.r4 {
    bottom: 22px;
    left: 22%;
    animation-delay: -1.9s
}

.r5 {
    bottom: 140px;
    left: 5%;
    animation-delay: -2.4s
}

.r6 {
    top: 170px;
    left: 6%;
    animation-delay: -3s
}

.r7 {
    top: 5px;
    right: 32%;
    animation-delay: -3.6s
}

.r8 {
    bottom: 22px;
    right: 23%;
    animation-delay: -4s
}

.ring-line {
    position: absolute;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    transform-origin: left
}

.l1 {
    width: 180px;
    top: 45%;
    left: 30%;
    transform: rotate(-35deg)
}

.l2 {
    width: 160px;
    top: 43%;
    left: 57%;
    transform: rotate(28deg)
}

.l3 {
    width: 175px;
    top: 57%;
    left: 31%;
    transform: rotate(35deg)
}

.l4 {
    width: 150px;
    top: 55%;
    left: 60%;
    transform: rotate(-25deg)
}

/* ---------- feature sections ---------- */
.purple-soft {
    background: linear-gradient(180deg, #f8f6ff, #fff)
}

.feature-copy {
    max-width: 540px;
    min-width: 0
}

.feature-copy .eyebrow {
    margin-bottom: 5px
}

.feature-copy h2 {
    max-width: 590px
}

.feature-copy p {
    max-width: 545px;
    margin: 22px 0
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chip-cloud span {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-brand);
    background: #fff;
    border: 1px solid #e9e2fa;
    border-radius: var(--r-pill);
    padding: 8px 10px
}

.student-browser {
    overflow: visible
}

.student-app {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    min-height: 520px;
    background: #fff
}

.student-list {
    padding: 19px;
    min-width: 0;
    overflow-x: auto
}

.mock-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: end
}

.mock-head small,
.profile-panel p {
    color: var(--muted)
}

.mock-head h3 {
    margin-top: 2px
}

.mock-head button,
.staff-top button,
.finance-head button,
.mock-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700
}

.mock-btn.ghost,
.finance-head button {
    background: #fbfaff;
    color: var(--text);
    border: 1px solid var(--border)
}

.filter-line {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1.4fr;
    gap: 6px;
    margin: 15px 0 8px
}

.filter-line span {
    border: 1px solid #eeeaf7;
    border-radius: var(--r-xs);
    padding: 8px;
    color: var(--muted);
    background: #fff
}

.filter-line span:last-child {
    color: var(--muted);
    background: #fbfaff
}

.table-row {
    display: grid;
    grid-template-columns: 1.6fr .55fr .7fr 1.1fr .55fr;
    align-items: center;
    gap: 5px;
    padding: 10px 6px;
    border-top: 1px solid #f0eef7;
    color: var(--text)
}

.table-row.header {
    color: var(--muted);
    border-top: 0
}

.table-row.active {
    background: #faf9ff;
    border-radius: var(--r-xs);
    color: var(--ink)
}

.table-row span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700
}

.table-row strong {
    color: var(--text-ok)
}

.profile-panel {
    border-left: 1px solid #eeeaf7;
    background: #fbfaff;
    padding: 20px
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: start
}

.profile-photo {
    width: 46px;
    height: 46px;
    border-radius: var(--r-sm);
    background: #ddd6fe;
    color: var(--text-brand);
    display: grid;
    place-items: center;
    font-size: var(--fs-xs);
    font-weight: 800
}

.profile-edit {
    background: #fff;
    border: 1px solid #eeeaf7;
    padding: 6px 8px;
    border-radius: var(--r-xs)
}

.profile-panel h3 {
    margin-top: 15px
}

.profile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 9px;
    margin-top: 20px
}

.profile-meta small {
    display: block;
    color: var(--muted)
}

.profile-meta b {
    display: block;
    margin-top: 4px
}

.green-text {
    color: var(--text-ok) !important
}

.mini-tabs {
    display: flex;
    gap: 10px;
    overflow: auto;
    margin: 22px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9e4f5
}

.mini-tabs span {
    color: var(--muted);
    white-space: nowrap
}

.mini-tabs .active {
    color: var(--primary);
    font-weight: 800
}

.profile-stat {
    background: #fff;
    border: 1px solid #eeeaf7;
    padding: 11px;
    border-radius: var(--r-sm)
}

.profile-stat small {
    color: var(--muted)
}

.profile-stat>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px
}

.profile-stat span {
    color: var(--text-ok);
    font-weight: 800
}

.progress {
    height: 6px;
    background: #f1edfb;
    border-radius: var(--r-pill);
    overflow: hidden !important
}

.progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    border-radius: var(--r-pill)
}

.lifecycle {
    margin-top: 75px
}

.lifecycle-label {
    text-align: center;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .04em
}

.life-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    margin-top: 28px
}

.life-line:before {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e7e0f6
}

.life-progress {
    position: absolute;
    top: 13px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    z-index: 1
}

.life-step {
    position: relative;
    z-index: 2;
    text-align: center;
    min-width: 70px
}

.life-step b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: var(--r-pill);
    background: #fff;
    border: 2px solid #e4ddf4;
    color: var(--muted)
}

.life-step.active b {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 5px rgba(124, 58, 237, .08)
}

.life-step span {
    display: block;
    color: var(--muted);
    margin-top: 8px
}

/* ---------- parents ---------- */
.parent-section {
    background: #fff
}

.parent-visual {
    position: relative;
    min-width: 0
}

.parent-card {
    background: linear-gradient(180deg, #fff, #faf9ff);
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-card)
}

.parent-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeaf7
}

.parent-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--r-sm);
    background: #ede9fe;
    color: var(--text-brand);
    display: grid;
    place-items: center;
    font-weight: 800
}

.parent-head small,
.parent-footer,
.child-card small {
    color: var(--muted)
}

.parent-head h3 {
    margin-top: 2px
}

.linked {
    margin-left: auto;
    color: var(--text-ok);
    background: #ecfdf5;
    padding: 7px 8px;
    border-radius: var(--r-pill)
}

.child-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeaf7
}

.child-card div {
    flex: 1
}

.child-card strong {
    display: block
}

.child-card b {
    color: var(--text-ok)
}

.child-card.faded {
    opacity: .65
}

.parent-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 14px
}

.connector-pill {
    position: absolute;
    right: -20px;
    bottom: -28px;
    background: var(--ink);
    color: #fff;
    padding: 9px 12px;
    border-radius: var(--r-pill);
    letter-spacing: .02em
}

.relationship {
    display: grid;
    gap: 9px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: #fbfaff
}

.relationship span {
    height: 1px;
    background: #ded8ee;
    position: relative
}

.relationship div {
    color: var(--muted);
    padding-left: 15px;
    position: relative
}

.relationship div:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--primary);
    border-radius: var(--r-pill);
    background: #fff
}

.relationship b {
    color: var(--ink);
    margin-left: 5px
}

/* ---------- dark teachers ---------- */
.dark-section {
    background: #121021;
    color: #fff;
    position: relative;
    overflow: hidden
}

.dark-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, .13), transparent 50%, rgba(59, 130, 246, .07));
    pointer-events: none
}

.dark-section .feature-copy {
    position: relative;
    z-index: 2
}

.light .eyebrow,
.light h2 span {
    color: var(--on-dark-accent)
}

.light p {
    color: var(--on-dark-muted)
}

.dark-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: var(--on-dark-muted);
    font-size: var(--fs-md);
    font-weight: 600;
    margin-top: 22px
}

.dark-browser {
    background: #1b172d;
    border-color: #2d2948
}

.staff-app {
    padding: 20px;
    background: #18142a;
    min-height: 510px
}

.staff-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px
}

.staff-top small {
    color: var(--on-dark-muted)
}

.staff-top h3 {
    margin-top: 4px
}

.staff-top button {
    background: #7c3aed
}

.staff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 17px
}

.staff-person {
    border: 1px solid #2b2741;
    background: #201c34;
    border-radius: var(--r-sm);
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    align-items: center
}

.staff-person strong {
    display: block
}

.staff-person small {
    display: block;
    color: var(--on-dark-muted);
    margin-top: 4px
}

.staff-person>b {
    color: var(--on-dark-ok)
}

.profile-photo.p-purple {
    background: #2e2455;
    color: var(--on-dark-accent)
}

.profile-photo.p-blue {
    background: #1e3a5f;
    color: var(--on-dark-accent)
}

.profile-photo.p-green {
    background: #153f34;
    color: var(--on-dark-ok)
}

.profile-photo.p-amber {
    background: #4a3416;
    color: var(--on-dark-accent)
}

.leave-widget {
    margin-top: 10px;
    border: 1px solid #2b2741;
    background: #201c34;
    border-radius: var(--r-sm);
    padding: 13px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px
}

.leave-widget small {
    color: var(--on-dark-muted)
}

.leave-widget strong {
    display: block;
    font-size: var(--fs-xl);
    margin-top: 2px
}

.leave-bars {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.leave-bars i {
    height: 5px;
    background: #7c3aed;
    border-radius: var(--r-pill);
    opacity: .85
}

.leave-widget>span {
    grid-column: 1/-1;
    color: var(--on-dark-muted)
}

/* ---------- academics ---------- */
.academic-section {
    background: #fff
}

.section-intro {
    max-width: 760px;
    min-width: 0
}

.section-intro.centered {
    max-width: 860px;
    margin: 0 auto 58px;
    text-align: center
}

.section-intro.centered p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.academic-demo {
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    background: #fff
}

.academic-tabs {
    display: flex;
    gap: 4px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: #fbfaff;
    overflow: auto
}

.academic-content {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 410px
}

.academic-side {
    padding: 22px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fbfaff
}

.tiny-label {
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 7px
}

.academic-side span {
    padding: 10px;
    border-radius: var(--r-xs);
    color: var(--muted)
}

.academic-side span:first-of-type {
    background: var(--light);
    color: var(--primary);
    font-weight: 800
}

.academic-main {
    padding: 25px;
    min-width: 0
}

.academic-top {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.academic-top small {
    color: var(--muted)
}

.academic-top h3 {
    margin-top: 4px
}

.live-badge {
    color: var(--text-ok);
    background: #ecfdf5;
    padding: 6px 8px;
    border-radius: var(--r-pill);
    height: max-content
}

.academic-visual {
    margin-top: 20px;
    min-height: 280px
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.class-tile {
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--r-sm);
    background: linear-gradient(180deg, #fff, #faf9ff)
}

.class-tile strong {
    display: block
}

.class-tile small {
    color: var(--muted);
    display: block;
    margin-top: 5px
}

.class-tile b {
    color: var(--primary);
    display: block;
    margin-top: 16px
}

.subject-grid,
.homework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.subject-tile,
.homework-item,
.assignment-item,
.time-cell {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    background: #fbfaff
}

.subject-tile small,
.homework-item small,
.assignment-item small {
    display: block;
    color: var(--muted);
    margin-top: 5px
}

.subject-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--r-pill);
    background: var(--primary);
    display: inline-block;
    margin-right: 7px
}

.timetable {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px
}

.time-col {
    display: grid;
    gap: 7px
}

.time-col>strong {
    text-align: center
}

.time-cell {
    min-height: 75px
}

.time-cell b {
    display: block
}

.time-cell small {
    color: var(--muted)
}

/* ---------- attendance ---------- */
.data-section {
    background: #f6f3ff
}

.attendance-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 20px
}

.attendance-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 23px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    min-width: 0
}

.attendance-ring {
    position: relative;
    width: 190px;
    height: 190px
}

.attendance-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

.ring-bg,
.ring-value {
    fill: none;
    stroke-width: 10
}

.ring-bg {
    stroke: #eeeaf7
}

.ring-value {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 395.8;
    stroke-dashoffset: 20.8;
    filter: drop-shadow(0 7px 10px rgba(124, 58, 237, .16))
}

.attendance-ring>div {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    align-content: center
}

.attendance-ring strong {
    font-size: var(--fs-2xl);
    letter-spacing: -.07em
}

.attendance-ring span {
    font-size: var(--fs-xs);
    color: var(--muted);
    margin-top: 2px
}

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.attendance-stats div {
    border: 1px solid #eeeaf7;
    border-radius: var(--r-sm);
    padding: 12px
}

.attendance-stats small {
    display: block;
    color: var(--muted)
}

.attendance-stats strong {
    display: block;
    margin-top: 4px
}

.chart-panel {
    grid-column: 1/-1;
    border-top: 1px solid #eeeaf7;
    padding-top: 18px;
    min-width: 0
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.panel-head small {
    color: var(--muted)
}

.panel-head h3 {
    font-size: var(--fs-base);
    margin-top: 4px
}

.chart-panel canvas {
    width: 100% !important;
    height: 205px !important;
    margin-top: 5px
}

.workflow {
    display: flex;
    flex-direction: column;
    align-items: stretch
}

.workflow-card {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card)
}

.workflow-card span {
    width: 30px;
    height: 30px;
    border-radius: var(--r-xs);
    background: #f5f3ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800
}

.workflow-card strong {
    display: block
}

.workflow-card small {
    display: block;
    color: var(--muted);
    margin-top: 3px
}

.workflow-card.active {
    border-color: #d6c9fa;
    box-shadow: 0 12px 24px rgba(124, 58, 237, .1)
}

.workflow-line {
    height: 13px;
    width: 1px;
    background: #d8d0ea;
    margin-left: 15px
}

/* ---------- exams ---------- */
.exam-section {
    background: #fff
}

.exam-section .section-intro {
    max-width: 720px
}

.exam-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 40px
}

.exam-workflow {
    display: grid;
    gap: 8px
}

.workflow-step {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 13px;
    background: #fbfaff;
    box-shadow: var(--shadow-card)
}

.workflow-step span {
    color: var(--primary);
    font-weight: 800
}

.workflow-step strong {
    display: block;
    margin-top: 4px
}

.workflow-step small {
    display: block;
    color: var(--muted);
    margin-top: 3px
}

.workflow-step.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: 0 14px 30px rgba(30, 27, 75, .16)
}

.workflow-step.active span {
    color: var(--on-dark-accent)
}

.workflow-step.active small {
    color: var(--on-dark-muted)
}

.marks-card {
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-premium);
    padding: 20px;
    overflow: hidden;
    min-width: 0
}

.marks-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px
}

.marks-head small {
    color: var(--muted)
}

.marks-head h3 {
    margin-top: 4px
}

.marks-head>span {
    padding: 6px 8px;
    border-radius: var(--r-pill);
    background: var(--soft);
    color: var(--primary);
    white-space: nowrap
}

.marks-table {
    margin-top: 20px;
    overflow: auto;
    -webkit-overflow-scrolling: touch
}

.marks-row {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, .7fr) .8fr .5fr;
    min-width: 670px;
    gap: 5px;
    align-items: center;
    padding: 10px 7px;
    border-top: 1px solid #eeeaf7
}

.marks-row.head {
    color: var(--muted);
    border-top: 0
}

.marks-row span,
.marks-row strong {
    text-align: center
}

.marks-row em {
    font-style: normal;
    text-align: center;
    color: var(--text-ok);
    font-weight: 800
}

.result-preview {
    margin-top: 18px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #17142a, #2a2150);
    color: #fff;
    padding: 17px
}

.result-header {
    display: flex;
    align-items: center;
    gap: 9px
}

.result-header .school-logo {
    background: #6d28d9
}

.result-header div {
    flex: 1;
    min-width: 0
}

.result-header small {
    display: block;
    color: var(--on-dark-muted)
}

.result-header strong {
    display: block;
    margin-top: 3px
}

.result-header>b {
    font-size: var(--fs-lg);
    color: var(--on-dark-accent)
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px
}

.result-grid small {
    display: block;
    color: var(--on-dark-muted)
}

.result-grid strong {
    display: block;
    margin-top: 3px
}

.school-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--r-xs);
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ink);
    font-size: var(--fs-xs);
    font-weight: 800
}

/* ---------- analytics ---------- */
.analytics-section {
    background: #15122a;
    color: #fff;
    position: relative;
    overflow: hidden
}

.analytics-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(124, 58, 237, .2), transparent 30%), radial-gradient(circle at 80% 60%, rgba(59, 130, 246, .1), transparent 30%)
}

.analytics-section .container {
    position: relative;
    z-index: 1
}

.section-intro.light h2 {
    color: #fff
}

.section-intro.light p {
    color: var(--on-dark-muted)
}

.section-intro .eyebrow {
    color: var(--on-dark-accent)
}

.analytics-dash {
    border: 1px solid #302b45;
    background: #1c1830;
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22)
}

.analytics-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start
}

.analytics-top small {
    color: var(--on-dark-muted)
}

.analytics-top h3 {
    margin-top: 4px
}

.analytics-controls {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.analytics-controls span {
    color: var(--on-dark-muted);
    border: 1px solid #37314f;
    padding: 7px 9px;
    border-radius: var(--r-xs);
    background: #201b37
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 18px 0
}

.analytics-kpis>div {
    border: 1px solid #302b45;
    border-radius: var(--r-sm);
    padding: 13px;
    background: #201b37
}

.analytics-kpis small {
    display: block;
    color: var(--on-dark-muted)
}

.analytics-kpis strong {
    display: block;
    margin-top: 5px
}

.analytics-kpis b {
    color: var(--on-dark-ok)
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px
}

.analytics-card {
    border: 1px solid #302b45;
    border-radius: var(--r-md);
    background: #201b37;
    padding: 15px;
    min-height: 230px;
    min-width: 0
}

.analytics-card .card-head small {
    color: var(--on-dark-muted)
}

.analytics-card .card-head h4,
.analytics-card .card-head .mh4 {
    font-size: var(--fs-sm);
    color: #fff;
    margin-top: 3px
}

.analytics-card canvas {
    height: 165px !important;
    width: 100% !important;
    margin-top: 10px
}

.top-performer {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #302b45;
    align-items: center
}

.top-performer:first-of-type {
    margin-top: 10px
}

.top-performer span {
    color: var(--on-dark-muted)
}

.top-performer b {
    color: var(--on-dark-accent)
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px
}

.card-head small {
    color: var(--muted)
}

.card-head h4 {
    margin-top: 2px;
    letter-spacing: -.02em
}

.tag {
    border-radius: var(--r-pill);
    padding: 5px 8px;
    background: #f8fafc;
    color: var(--muted)
}

.tag.success {
    background: #ecfdf5;
    color: var(--text-ok)
}

/* ---------- fees ---------- */
.fee-section {
    background: #fff
}

.fee-highlight {
    display: inline-grid;
    gap: 5px;
    margin-top: 20px;
    padding: 15px 17px;
    background: #fbfaff;
    border: 1px solid var(--border);
    border-radius: var(--r-md)
}

.fee-highlight strong {
    font-size: var(--fs-xl);
    letter-spacing: -.06em
}

.fee-highlight span {
    font-size: var(--fs-sm);
    color: var(--muted)
}

.fee-highlight small {
    color: var(--muted)
}

.finance-card {
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    padding: 21px;
    background: #fff;
    box-shadow: var(--shadow-premium);
    min-width: 0
}

.finance-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px
}

.finance-head small {
    color: var(--muted)
}

.finance-head h3 {
    margin-top: 4px
}

.finance-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 18px
}

.finance-metrics div {
    border: 1px solid #eeeaf7;
    border-radius: var(--r-sm);
    padding: 10px
}

.finance-metrics small {
    color: var(--muted);
    display: block
}

.finance-metrics strong {
    display: block;
    margin-top: 4px
}

.finance-chart {
    height: 215px;
    position: relative;
    padding: 30px 7px 0
}

.finance-bars {
    height: 165px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-bottom: 1px solid #eeeaf7
}

.fee-bars {
    height: 128px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 14px 4px 4px
}

.fee-bars i,
.finance-bars i {
    display: block;
    flex: 1;
    border-radius: var(--r-xs);
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
    min-height: 12px
}

.fee-bars i:nth-child(2n) {
    background: #ddd6fe
}

.fee-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted)
}

.fee-footer b {
    color: var(--primary)
}

.axis {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    padding-top: 6px
}

.fee-quick {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    border-top: 1px solid #eeeaf7;
    padding-top: 14px
}

.fee-quick span {
    padding: 7px 9px;
    background: var(--soft);
    color: var(--text-brand);
    font-weight: 700;
    border-radius: var(--r-xs)
}

/* ---------- documents ---------- */
.documents-section {
    background: #f6f3ff
}

.document-grid {
    display: grid;
    grid-template-columns: .9fr .75fr 1.15fr;
    gap: 18px;
    align-items: stretch
}

.doc-device {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    min-width: 0
}

.doc-controls {
    display: flex;
    gap: 5px;
    background: #f7f5fd;
    padding: 4px;
    border-radius: var(--r-sm)
}

.doc-controls span {
    flex: 1;
    text-align: center;
    padding: 8px;
    color: var(--muted);
    border-radius: var(--r-xs)
}

.doc-controls .selected {
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(67, 45, 130, .06)
}

.doc-select {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px;
    margin-top: 10px
}

.doc-select small {
    display: block;
    color: var(--muted)
}

.doc-select strong {
    display: block;
    margin-top: 3px
}

.doc-select span {
    position: absolute;
    right: 11px;
    top: 16px;
    font-size: var(--fs-xs)
}

.full {
    width: 100%;
    margin-top: 12px
}

.generation {
    display: grid;
    gap: 6px;
    margin-top: 14px
}

.generation span {
    padding: 7px 8px;
    background: #ecfdf5;
    border-radius: var(--r-xs);
    color: var(--text-ok);
    font-weight: 700
}

.id-card {
    border-radius: var(--r-lg);
    padding: 18px;
    background: linear-gradient(150deg, #191531, #34226d);
    color: #fff;
    box-shadow: 0 30px 60px rgba(68, 45, 130, .2);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-width: 0
}

.id-card:after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, .13);
    right: -70px;
    top: -60px
}

.id-top {
    display: flex;
    justify-content: space-between;
    letter-spacing: .04em
}

.id-top b {
    color: var(--on-dark-accent)
}

.id-mid {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 30px
}

.id-photo {
    width: 74px;
    height: 90px;
    border-radius: var(--r-sm);
    background: #e9d5ff;
    color: var(--text-brand);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: var(--fs-lg);
    flex: none
}

.id-mid small,
.id-mid span {
    display: block;
    color: var(--on-dark-muted)
}

.id-mid strong {
    display: block;
    font-size: var(--fs-lg);
    margin: 4px 0 6px
}

.id-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    color: var(--on-dark-muted)
}

.id-bottom b {
    color: var(--on-dark-ok)
}

.certificate {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 13px;
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    min-width: 0
}

.cert-frame {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 1px solid #d7cbed;
    border-radius: var(--r-sm);
    padding: 30px 22px;
    text-align: center;
    background: linear-gradient(180deg, #fff, #faf8ff);
    position: relative
}

.cert-frame:before {
    content: "✦";
    position: absolute;
    top: 12px;
    left: 15px;
    color: #c4b5fd
}

.cert-frame:after {
    content: "✦";
    position: absolute;
    bottom: 12px;
    right: 15px;
    color: #c4b5fd
}

.cert-kicker {
    letter-spacing: .04em;
    font-weight: 800;
    color: var(--primary);
    font-size: var(--fs-sm)
}

.cert-frame h3 {
    font-size: var(--fs-xl);
    margin-top: 32px
}

.cert-frame p {
    color: var(--muted);
    line-height: 1.7
}

.cert-frame>strong {
    font-family: var(--display);
    font-size: var(--fs-xl);
    color: var(--ink);
    display: block;
    margin: 10px
}

.cert-line {
    height: 1px;
    background: #ddd5ef;
    width: 70%;
    margin: 22px auto 13px
}

.cert-sign {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    gap: 10px
}

/* ---------- multi-school ---------- */
.multi-section {
    background: #fff
}

.multi-visual {
    min-width: 0
}

.network-card {
    background: #fbfaff;
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    padding: 21px;
    min-height: 470px;
    position: relative;
    overflow: hidden
}

.network-head {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.network-head small {
    display: block;
    color: var(--primary);
    letter-spacing: .02em;
    font-weight: 800
}

.network-head h3 {
    margin-top: 4px
}

.network-badge {
    color: var(--text-ok);
    background: #ecfdf5;
    padding: 7px 8px;
    border-radius: var(--r-pill);
    height: max-content
}

.network-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center
}

.network-core {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: var(--r-md);
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(30, 27, 75, .18)
}

.network-center strong {
    display: block;
    margin-top: 8px
}

.network-center small {
    color: var(--muted);
    display: block;
    margin-top: 3px
}

.school-node {
    position: absolute;
    padding: 10px 11px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(68, 45, 130, .09);
    min-width: 110px
}

.school-node b {
    display: block
}

.school-node span {
    color: var(--muted)
}

.n1 {
    left: 16px;
    top: 100px
}

.n2 {
    right: 16px;
    top: 125px
}

.n3 {
    left: 30px;
    bottom: 75px
}

.n4 {
    right: 30px;
    bottom: 95px
}

.network-lines i {
    position: absolute;
    height: 1px;
    background: #dcd5ea;
    left: 50%;
    top: 50%;
    transform-origin: left;
    display: block;
    width: 145px
}

.network-lines i:nth-child(1) {
    transform: rotate(-145deg)
}

.network-lines i:nth-child(2) {
    transform: rotate(-32deg)
}

.network-lines i:nth-child(3) {
    transform: rotate(151deg)
}

.network-lines i:nth-child(4) {
    transform: rotate(34deg)
}

.crumbs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
    color: var(--muted)
}

.crumbs span {
    background: #fbfaff;
    border: 1px solid var(--border);
    padding: 7px 8px;
    border-radius: var(--r-xs)
}

.crumbs b {
    color: var(--muted)
}

.multi-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 14px
}

.multi-kpis>div {
    padding: 10px;
    background: #fbfaff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm)
}

.multi-kpis small {
    display: block;
    color: var(--muted)
}

.multi-kpis strong {
    display: block;
    margin-top: 4px
}

/* ---------- operations ---------- */
.operations-section {
    background: linear-gradient(180deg, #fff, #faf9fe)
}

.operations-section .section-intro {
    max-width: 670px
}

.operations-section .section-intro h2 {
    font-size: var(--fs-d3)
}

.operations-section .eyebrow {
    color: var(--muted)
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 34px
}

.op-card {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--r-md);
    padding: 17px;
    min-height: 112px;
    box-shadow: var(--shadow-card)
}

.op-card span {
    width: 31px;
    height: 31px;
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: var(--fs-md);
    font-weight: 800
}

.op-card strong {
    display: block;
    margin-top: 16px
}

.op-card small {
    display: block;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 5px
}

/* ---------- bento (platform) ---------- */
.feature-grid-section {
    background: #fff
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 46px
}

.bento-card {
    min-height: 245px;
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #fff, #fcfbff);
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card)
}

.bento-card.large {
    grid-column: span 2
}

.bento-card.tall {
    grid-row: span 2
}

.bento-card.highlight {
    color: var(--ink);
    border-color: #d9ccf7
}

.bento-number {
    color: var(--muted);
    font-weight: 800;
    letter-spacing: .04em
}

.bento-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: var(--fs-base);
    font-weight: 800;
    margin-top: 16px
}

.bento-card h3 {
    margin-top: 14px
}

.bento-card p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 280px;
    font-size: var(--fs-sm)
}

.mini-ui {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 44%;
    border: 1px solid #eeeaf7;
    border-radius: var(--r-sm);
    background: #fff;
    padding: 10px
}

.mini-ui span {
    display: block;
    font-size: var(--fs-sm)
}

.mini-ui b {
    color: var(--text-ok);
    float: right;
    margin-top: -14px;
    font-size: var(--fs-sm)
}

.mini-ui i {
    display: block;
    height: 5px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, #7c3aed, #c4b5fd);
    margin-top: 13px
}

.mini-family {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 25px;
    font-size: var(--fs-sm)
}

.mini-family b {
    padding: 7px;
    border-radius: var(--r-xs);
    background: var(--soft);
    color: var(--primary)
}

.mini-family i {
    height: 1px;
    width: 25px;
    background: #ddd5ef
}

.avatar-stack {
    display: flex;
    margin-top: 25px
}

.avatar-stack i {
    width: 32px;
    height: 32px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    background: #ede9fe;
    color: var(--text-brand);
    font-size: var(--fs-xs);
    font-weight: 800;
    border: 2px solid #fff;
    margin-left: -5px;
    font-style: normal
}

.avatar-stack i:last-child {
    background: #e2e8f0;
    color: var(--muted)
}

.calendar-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 25px
}

.calendar-mini>* {
    padding: 7px;
    border-radius: var(--r-xs);
    background: #faf9fd;
    border: 1px solid var(--border);
    font-size: var(--fs-sm)
}

.calendar-mini b {
    color: var(--primary)
}

.mini-percent {
    font-size: var(--fs-xl);
    display: block;
    margin-top: 26px;
    letter-spacing: -.05em
}

.mini-marks {
    display: flex;
    gap: 6px;
    margin-top: 24px
}

.mini-marks span {
    padding: 8px;
    border-radius: var(--r-xs);
    background: var(--soft);
    color: var(--text-brand);
    font-weight: 800;
    font-size: var(--fs-sm)
}

.mini-money {
    font-size: var(--fs-xl);
    display: block;
    margin-top: 24px
}

.mini-bars {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-bottom: 1px solid #eeeaf7
}

.mini-bars i {
    flex: 1;
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
    border-radius: var(--r-xs)
}

.mini-network {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 100px;
    height: 70px
}

.mini-network i {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #c4b5fd;
    border-radius: var(--r-pill);
    box-shadow: 0 0 0 7px rgba(196, 181, 253, .08)
}

.mini-network i:nth-child(1) {
    left: 44px;
    top: 28px;
    background: var(--primary)
}

.mini-network i:nth-child(2) {
    left: 8px;
    top: 8px
}

.mini-network i:nth-child(3) {
    right: 8px;
    top: 8px
}

.mini-network i:nth-child(4) {
    left: 44px;
    bottom: 0
}

.mini-network:before,
.mini-network:after {
    content: "";
    position: absolute;
    height: 1px;
    width: 40px;
    background: #c4b5fd;
    left: 18px;
    top: 30px;
    transform: rotate(27deg)
}

.mini-network:after {
    left: 43px;
    transform: rotate(-27deg)
}

/* ---------- benefits ---------- */
.benefits-section {
    background: #fff
}

.benefit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    padding: 72px 0;
    border-top: 1px solid var(--border)
}

.benefit-row.reverse {
    direction: rtl
}

.benefit-row.reverse>div {
    direction: ltr
}

.benefit-num {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: .04em
}

.benefit-row h3 {
    font-size: var(--fs-d3);
    letter-spacing: -.05em;
    margin-top: 15px
}

.benefit-row p {
    max-width: 500px;
    color: var(--muted);
    line-height: 1.85;
    font-size: var(--fs-md)
}

.benefit-visual {
    min-height: 210px;
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    background: #fbfaff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium)
}

.connection-visual {
    display: grid;
    place-items: center
}

.connection-visual:before {
    content: "";
    width: 80px;
    height: 80px;
    border: 1px solid #d7ccf5;
    border-radius: var(--r-pill);
    position: absolute
}

.connection-visual span {
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--primary)
}

.connection-visual i {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: var(--r-pill)
}

.connection-visual i:nth-child(1) {
    top: 23px;
    left: 50%
}

.connection-visual i:nth-child(2) {
    right: 50px;
    top: 52px
}

.connection-visual i:nth-child(3) {
    bottom: 35px;
    left: 80px
}

.connection-visual i:nth-child(4) {
    right: 85px;
    bottom: 35px
}

.simple-visual {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px
}

.simple-visual span {
    padding: 11px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: 700
}

.reporting-visual {
    display: flex;
    align-items: flex-end;
    padding: 24px
}

.reporting-visual b {
    font-size: var(--fs-2xl);
    letter-spacing: -.06em;
    color: var(--primary);
    margin-right: auto;
    align-self: flex-start
}

.reporting-visual div {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 120px
}

.reporting-visual i {
    display: block;
    width: 18px;
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
    border-radius: var(--r-xs)
}

.scale-visual {
    display: grid;
    place-items: center
}

.scale-visual span,
.scale-visual b {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 9px 12px;
    font-size: var(--fs-xs);
    box-shadow: 0 8px 20px rgba(67, 45, 130, .06)
}

.scale-visual span:nth-child(1) {
    left: 25px;
    top: 35px
}

.scale-visual span:nth-child(2) {
    right: 28px;
    top: 40px
}

.scale-visual span:nth-child(3) {
    left: 35px;
    bottom: 30px
}

.scale-visual b {
    right: 30px;
    bottom: 26px;
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

/* ---------- product demo ---------- */
.demo-section {
    background: #f6f3ff
}

.demo-section .section-intro.centered {
    margin-bottom: 34px
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.demo-browser {
    min-height: 520px;
    border-radius: var(--r-lg)
}

.demo-screen {
    min-height: 490px;
    background: #fff;
    padding: 25px
}

.demo-ui-grid {
    display: grid;
    grid-template-columns: 175px 1fr;
    gap: 15px;
    min-height: 420px
}

.demo-ui-side {
    background: #fbfaff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.demo-ui-side b {
    margin: 0 0 5px
}

.demo-ui-side span {
    color: var(--muted);
    padding: 8px;
    border-radius: var(--r-xs)
}

.demo-ui-side .sel {
    background: var(--soft);
    color: var(--primary);
    font-weight: 800
}

.demo-main {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px;
    min-width: 0
}

.demo-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px
}

.demo-kpi {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px
}

.demo-kpi small {
    display: block;
    color: var(--muted)
}

.demo-kpi strong {
    display: block;
    margin-top: 4px
}

.demo-panel-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 9px;
    margin-top: 9px
}

.demo-panel {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px;
    min-height: 160px
}

.demo-rows {
    display: grid;
    gap: 6px;
    margin-top: 12px
}

.demo-row {
    display: grid;
    grid-template-columns: 1fr .6fr .6fr;
    padding: 8px;
    border-radius: var(--r-xs);
    background: #fbfaff
}

.demo-status {
    color: var(--text-ok);
    font-weight: 800
}

.demo-ring {
    width: 110px;
    height: 110px;
    border-radius: var(--r-pill);
    margin: 18px auto;
    background: conic-gradient(var(--primary) 0 94%, #ede9fe 94% 100%);
    display: grid;
    place-items: center
}

.demo-ring:after {
    content: "94.8%";
    width: 78px;
    height: 78px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    background: #fff;
    font-size: var(--fs-base);
    font-weight: 800
}

.demo-finance {
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 8px;
    margin-top: 14px;
    border-bottom: 1px solid var(--border)
}

.demo-finance i {
    flex: 1;
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
    border-radius: var(--r-xs)
}

/* ---------- tour ---------- */
.tour-section {
    background: #fff
}

.tour-wrap {
    border: 1px solid rgba(91, 33, 182, .10);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden
}

.tour-nav {
    display: flex;
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    background: #fbfaff
}

.tour-stage {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 44px;
    padding: 38px 40px
}

.tour-copy {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 480px
}

.tour-copy small {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: .02em
}

.tour-copy h3 {
    font-size: var(--fs-d3);
    line-height: 1.05;
    letter-spacing: -.055em;
    margin-top: 13px
}

.tour-copy p {
    font-size: var(--fs-md);
    color: var(--muted);
    line-height: 1.8
}

.tour-copy>span {
    align-self: flex-start;
    font-size: var(--fs-xs);
    color: var(--text-brand);
    background: var(--soft);
    border-radius: var(--r-pill);
    padding: 7px 9px
}

.tour-screen {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: #fbfaff;
    min-height: 380px;
    padding: 16px;
    min-width: 0
}

.tour-ui {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 14px
}

.tour-ui-head {
    display: flex;
    justify-content: space-between
}

.tour-ui-head small {
    color: var(--muted)
}

.tour-ui-head strong,
.tour-block strong {
    font-size: var(--fs-base)
}

.tour-ui-body {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 8px;
    margin-top: 13px
}

.tour-block {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px;
    min-height: 130px
}

.tour-block small {
    display: block;
    color: var(--muted)
}

.tour-block strong {
    display: block;
    margin-top: 5px
}

.mini-line {
    height: 70px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-top: 12px
}

.mini-line i {
    flex: 1;
    border-radius: var(--r-xs);
    background: linear-gradient(180deg, #c4b5fd, #7c3aed)
}

/* ---------- CTA + final ---------- */
.cta-section {
    background: #fff
}

.cta-card {
    background: linear-gradient(135deg, var(--ink), #4c1d95);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 64px 68px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(68, 45, 130, .24)
}

.cta-card:before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--r-pill);
    right: -170px;
    top: -170px
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 30px
}

.light-plain {
    color: var(--on-dark-accent)
}

.cta-card h2 {
    font-size: var(--fs-d1);
    letter-spacing: -.06em;
    line-height: 1.04;
    margin-top: 18px
}

.cta-card p {
    color: var(--on-dark-muted);
    max-width: 600px;
    line-height: 1.8;
    font-size: var(--fs-md)
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-top: 25px;
    flex-wrap: wrap
}

.cta-text {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--on-dark-accent)
}

.cta-card>small {
    display: block;
    font-size: var(--fs-xs);
    color: var(--on-dark-muted);
    margin-top: 19px
}

.cta-pulse {
    height: 320px;
    position: relative;
    display: grid;
    place-items: center
}

.pulse-center {
    width: 88px;
    height: 88px;
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--text-brand);
    font-size: var(--fs-xl);
    font-weight: 800;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18)
}

.pulse-ring {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-pill);
    padding: 9px 12px;
    font-size: var(--fs-xs);
    background: rgba(255, 255, 255, .05);
    animation: orbit 6s linear infinite
}

.p-a {
    top: 28px;
    left: 32%
}

.p-b {
    right: 16px;
    top: 42%
}

.p-c {
    bottom: 22px;
    left: 28%
}

.p-d {
    left: 0;
    top: 40%;
    animation-delay: -3s
}

@keyframes orbit {
    50% {
        transform: translateY(-7px)
    }

    to {
        transform: translateY(0)
    }
}

.final-section {
    background: #5b21b6;
    color: #fff;
    min-height: 640px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden
}

.final-grid {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 76%)
}

.final-section:before,
.final-section:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-pill);
    width: 620px;
    height: 620px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

.final-section:after {
    width: 870px;
    height: 870px;
    opacity: .5
}

.final-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px
}

.final-inner .eyebrow {
    color: var(--on-dark-accent);
    justify-content: center
}

.final-inner h2 {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--fs-d1);
    letter-spacing: -.06em;
    line-height: 1.04;
    margin-top: 21px
}

.final-inner p {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--on-dark-accent);
    max-width: 710px;
    margin: 23px auto 28px
}

.final-inner>div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 19px;
    flex-wrap: wrap
}

.final-link {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--on-dark-accent)
}

/* ---------- footer ---------- */
.footer {
    background: #100d1e;
    color: var(--on-dark-muted);
    padding: 78px 0 22px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr .8fr .8fr;
    gap: 65px
}

.footer .brand {
    color: #fff
}

.footer-brand p {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--on-dark-muted);
    max-width: 260px
}

.footer h3,
.footer h4 {
    font-family: Inter;
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    margin: 3px 0 14px
}

.footer-grid>div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.footer-grid>div a {
    font-size: var(--fs-sm);
    color: var(--on-dark-muted)
}

.footer-grid>div a:hover {
    color: #fff
}

.footer-demo {
    margin-top: 6px !important;
    color: var(--on-dark-accent) !important
}

.footer-bottom {
    border-top: 1px solid #262133;
    margin-top: 50px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--fs-xs);
    color: var(--on-dark-muted)
}

/* ---------- cursor, reveal, focus ---------- */
.cursor-dot,
.cursor-glow {
    position: fixed;
    pointer-events: none;
    z-index: 3000;
    border-radius: var(--r-pill);
    display: none
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    transform: translate(-50%, -50%)
}

.cursor-glow {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(124, 58, 237, .25);
    background: rgba(124, 58, 237, .03);
    transform: translate(-50%, -50%);
    transition: width .15s, height .15s
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.2, .75, .2, 1), transform .9s cubic-bezier(.2, .75, .2, 1)
}

.reveal-left {
    transform: translateX(-34px)
}

.reveal-right {
    transform: translateX(34px)
}

.reveal.show {
    opacity: 1;
    transform: none
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(124, 58, 237, .28);
    outline-offset: 3px
}

@media (pointer:fine) {

    .cursor-dot,
    .cursor-glow {
        display: block
    }
}

/* ---------- static cards: no hover lift ---------- */
.bento-card:hover,
.op-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: rgba(91, 33, 182, .10)
}

/* ---------- heading-order helpers (<p class="mh3|mh4"> in markup) ---------- */
.mh3,
.mh4 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2
}

.mh3 {
    font-size: var(--fs-lg)
}

.mh4 {
    font-size: var(--fs-sm)
}

.app-topbar .mh3 {
    font-size: var(--fs-base);
    margin-top: 4px
}

.card-head .mh4 {
    margin-top: 2px
}

.card-head .mh4 span,
.card-head h4 span {
    font: 500 var(--fs-xs) Inter, sans-serif;
    letter-spacing: 0;
    color: var(--muted)
}

.demo-panel .mh4,
.demo-topline .mh4 {
    font-size: var(--fs-sm)
}

.side-link svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* ---------- font-size layer (floor 12px) ---------- */
.kpi small,
.card-head small,
.app-topbar small,
.mock-head small,
.profile-panel p,
.profile-meta small,
.profile-stat small,
.parent-head small,
.parent-footer,
.child-card small,
.staff-top small,
.staff-person small,
.leave-widget small,
.leave-widget>span,
.academic-top small,
.class-tile small,
.subject-tile small,
.homework-item small,
.assignment-item small,
.panel-head small,
.attendance-stats small,
.workflow-card small,
.workflow-step small,
.marks-head small,
.finance-head small,
.finance-metrics small,
.fee-highlight small,
.id-mid small,
.id-mid span,
.network-center small,
.demo-kpi small,
.tour-block small,
.tour-ui-head small,
.multi-kpis small,
.analytics-top small,
.analytics-kpis small,
.analytics-kpis b,
.result-header small,
.result-grid small,
.student-row small,
.app-school small,
.sidebar-section-label,
.fee-footer,
.axis,
.tag,
.more,
.signal,
.linked,
.live-badge,
.network-badge,
.kpi .up,
.fee-quick span,
.generation span,
.cert-sign,
.cert-frame p,
.id-top,
.id-bottom,
.profile-edit,
.mini-tabs span,
.filter-line span,
.table-row.header,
.marks-row.head,
.demo-row,
.school-node span,
.crumbs,
.doc-select small,
.tiny-label,
.benefit-num,
.bento-number {
    font-size: var(--fs-xs)
}

.side-link,
.app-school strong,
.student-row strong,
.student-row>b,
.table-row,
.child-card strong,
.child-card b,
.staff-person strong,
.staff-person>b,
.workflow-card span,
.workflow-step span,
.marks-row,
.top-performer strong,
.top-performer b,
.top-performer span,
.school-node b,
.doc-select strong,
.doc-controls span,
.profile-meta b,
.profile-stat span,
.academic-side span,
.class-tile b,
.time-cell b,
.time-col>strong,
.demo-ui-side span,
.demo-ui-side b,
.demo-kpi,
.demo-panel h4,
.relationship div,
.relationship strong,
.result-header strong,
.result-grid strong,
.analytics-controls span,
.life-step span,
.life-step b,
.connector-pill,
.network-center strong,
.op-card strong,
.op-card small {
    font-size: var(--fs-sm)
}

.app-topbar h3,
.card-head h4,
.workflow-card strong,
.workflow-step strong {
    font-size: var(--fs-sm)
}

.kpi strong,
.analytics-kpis strong,
.multi-kpis strong,
.finance-metrics strong,
.attendance-stats strong,
.fee-footer b {
    font-size: var(--fs-lg)
}

.mock-head h3,
.staff-top h3,
.marks-head h3,
.profile-panel h3,
.finance-head h3,
.parent-head h3,
.network-head h3,
.analytics-top h3 {
    font-size: var(--fs-lg)
}

.subject-tile b,
.homework-item strong,
.assignment-item strong,
.class-tile strong {
    font-size: var(--fs-md)
}

.ring-card,
.command-center strong {
    font-size: var(--fs-sm)
}

.hero-mini-flow,
.hero-mini-flow span,
.pulse-ring,
.scale-visual span,
.scale-visual b,
.simple-visual span,
.connection-visual span {
    font-size: var(--fs-xs)
}

.quick-grid button {
    font-size: var(--fs-sm)
}

/* ---------- sections: pain, lab, form, WhatsApp, sticky bar ---------- */
.pain-section {
    background: #fff
}

.vs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto
}

.vs>div {
    border-radius: var(--r-lg);
    padding: 34px;
    border: 1px solid var(--border)
}

.vs h3 {
    font-size: var(--fs-xl);
    margin-bottom: 20px
}

.vs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px
}

.vs li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: var(--fs-base);
    line-height: 1.5
}

.vs-old {
    background: #fbfaff;
    color: var(--muted)
}

.vs-old b {
    color: var(--text-bad)
}

.vs-new {
    background: linear-gradient(160deg, var(--primary), var(--deep));
    color: #fff;
    box-shadow: var(--shadow)
}

.vs-new h3 {
    color: #fff
}

.vs-new b {
    color: var(--on-dark-ok)
}

.lab-section {
    background: #f6f3ff
}

.lab {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.lab-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    min-width: 0
}

.lab-card:first-child {
    grid-column: 1/-1
}

.lab-card:first-child .att-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.lab-card:first-child h3::after {
    content: "Start here";
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font: 700 var(--fs-xs) Inter, sans-serif;
    letter-spacing: 0;
    vertical-align: middle
}

.lab-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 4px
}

.lab-micro {
    font-size: var(--fs-md);
    color: var(--muted);
    margin: 6px 0 0
}

.lab-out {
    font-size: var(--fs-md);
    font-weight: 700;
    margin: 12px 0 0;
    min-height: 1.4em
}

.lab-prog {
    height: 10px;
    background: var(--light);
    border-radius: var(--r-pill);
    margin-top: 16px;
    overflow: hidden
}

.lab-prog i {
    display: block;
    height: 100%;
    width: var(--w, 0);
    background: var(--primary);
    border-radius: var(--r-pill);
    transition: width .6s var(--ease)
}

.att-list {
    display: grid;
    gap: 6px;
    margin-top: 14px
}

.att-list button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--r-sm);
    font-size: var(--fs-md);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: .25s
}

.att-list button:hover {
    border-color: var(--primary)
}

.att-list .av {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-pill);
    background: var(--light);
    color: var(--text-brand);
    font-size: var(--fs-xs);
    font-weight: 800
}

.att-list em {
    margin-left: auto;
    font-style: normal;
    font-weight: 700;
    font-size: var(--fs-xs);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: #d1fae5;
    color: var(--text-ok)
}

.att-list .abs {
    opacity: .75
}

.att-list .abs em {
    background: #fee2e2;
    color: var(--text-bad)
}

/* switch signifier (use role="switch" markup) */
.att-list .sw {
    position: relative;
    flex: none;
    width: 36px;
    height: 20px;
    border-radius: var(--r-pill);
    background: var(--primary);
    transition: background .2s
}

.att-list .sw::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 18px;
    width: 16px;
    height: 16px;
    border-radius: var(--r-pill);
    background: #fff;
    transition: left .2s
}

.att-list .abs .sw {
    background: #cbd5e1
}

.att-list .abs .sw::after {
    left: 2px
}

.lab-card input,
.dform input,
.dform select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--ink);
    font-size: var(--fs-base);
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s
}

.lab-card input:focus,
.dform input:focus,
.dform select:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--light)
}

.lab-marks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0
}

.lab-marks label {
    font-size: var(--fs-sm);
    color: var(--muted)
}

.lab-marks input {
    margin-top: 6px
}

.lab-result {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--soft);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    flex-wrap: wrap
}

.lab-result b {
    font: 800 var(--fs-xl) var(--display)
}

.lab-result span {
    color: var(--muted);
    margin-right: auto
}

.lab-result em {
    font-style: normal;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: #d1fae5;
    color: var(--text-ok)
}

.lab-pay {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.lab-seg {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0
}

.lab-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.lab-kpis p {
    margin: 0;
    background: var(--soft);
    border-radius: var(--r-sm);
    padding: 14px;
    font-size: var(--fs-sm);
    color: var(--muted)
}

.lab-kpis b {
    display: block;
    font: 800 var(--fs-xl) var(--display);
    color: var(--ink);
    transition: opacity .2s
}

.book-section {
    background: #fff;
    padding-top: 40px
}

.dform {
    max-width: 780px;
    margin: 0 auto;
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-premium)
}

.dform h3 {
    font-size: var(--fs-xl);
    margin-bottom: 20px
}

.dform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    margin-bottom: 28px
}

.dform-grid label:nth-child(5) {
    grid-column: 1/-1
}

.dform label {
    display: block;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--muted)
}

.dform label input,
.dform label select {
    margin-top: 6px
}

.dform select {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-weight: 500;
    padding-right: 44px;
    cursor: pointer;
    background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/16px
}

.dform .err {
    display: block;
    font-style: normal;
    color: var(--text-bad);
    font-size: var(--fs-sm);
    min-height: 1.2em;
    margin-top: 4px
}

.dform input.bad {
    border-color: var(--red)
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    opacity: 0
}

.dform-out {
    margin: 14px 0 0;
    text-align: center;
    font-weight: 700;
    color: var(--text-ok);
    min-height: 1.4em;
    font-size: var(--fs-md)
}

.dform-out.bad {
    color: var(--text-bad)
}

.wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
    width: 56px;
    height: 56px;
    border-radius: var(--r-pill);
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: var(--fs-xl);
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7);
    transition: transform .3s var(--ease)
}

.wa:hover {
    transform: scale(1.08)
}

.sticky-bar {
    display: none
}

.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1100
}

/* ---------- connected app section ---------- */
.app-section {
    background: linear-gradient(180deg, #f8f6ff, #fff);
    overflow: hidden
}

.app-roles {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 48px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm)
}

.app-stage {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: center
}

.app-kicker {
    display: block;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: .02em
}

.app-copy {
    min-width: 0
}

.app-copy h3 {
    font-size: var(--fs-d3);
    line-height: 1.05;
    letter-spacing: -.055em;
    margin-top: 12px
}

.app-copy>p {
    color: var(--copy);
    font-size: var(--fs-base);
    line-height: 1.8;
    max-width: 540px;
    margin: 16px 0 0
}

.app-pts {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    max-width: 540px
}

.app-pts li {
    display: flex;
    gap: 10px;
    font-size: var(--fs-md);
    color: var(--text);
    line-height: 1.5
}

.app-pts li:before,
.app-role-card li:before,
.price-card li:before {
    content: "✓";
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: var(--r-pill);
    background: #ecfdf5;
    color: var(--text-ok);
    display: grid;
    place-items: center;
    font-size: var(--fs-xs);
    font-weight: 800;
    margin-top: 1px
}

.app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border)
}

.app-device {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    min-height: 680px;
    min-width: 0
}

.app-device:before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: var(--r-pill);
    background: radial-gradient(circle, rgba(167, 139, 250, .28), transparent 68%)
}

.phone {
    position: relative;
    z-index: 2;
    width: 310px;
    height: 640px;
    padding: 10px;
    border-radius: var(--r-lg);
    background: var(--ink);
    box-shadow: 0 40px 80px rgba(49, 31, 108, .28), inset 0 0 0 2px #3b3678
}

.phone-screen {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #faf9fd;
    border-radius: var(--r-md);
    overflow: hidden
}

.phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 22px;
    border-radius: var(--r-pill);
    background: var(--ink);
    z-index: 4
}

.ph-status {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px 4px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--ink)
}

.ph-head {
    padding: 10px 16px
}

.ph-head small {
    display: block;
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 800
}

.ph-head .mh3 {
    margin-top: 2px;
    font-size: var(--fs-lg);
    color: var(--ink)
}

.ph-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 0 14px 14px;
    display: grid;
    gap: 10px;
    align-content: start;
    transition: opacity .25s;
    min-height: 0
}

.ph-body::-webkit-scrollbar {
    display: none
}

.ph-body.swap {
    opacity: 0
}

.ph-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px 14px;
    background: #fff;
    border-top: 1px solid var(--border)
}

.ph-tabs span {
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--muted);
    padding: 4px 0;
    border-radius: var(--r-xs)
}

.ph-tabs span.on {
    color: var(--primary)
}

.ph-tabs span b {
    display: block;
    font-size: var(--fs-base);
    line-height: 1.2
}

.app-float {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 11px 13px;
    box-shadow: 0 18px 44px rgba(68, 45, 130, .14);
    animation: float 5s ease-in-out infinite
}

.app-float strong {
    display: block;
    font-size: var(--fs-sm)
}

.app-float small {
    color: var(--muted);
    font-size: var(--fs-xs)
}

.af1 {
    left: -20px;
    top: 120px
}

.af2 {
    right: -24px;
    bottom: 130px;
    animation-delay: -2s
}

.ph-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 12px
}

.ph-h {
    margin: 0 0 6px;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--muted)
}

.ph-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: var(--fs-sm)
}

.ph-row+.ph-row {
    border-top: 1px solid #f0eef7
}

.ph-row>div {
    flex: 1;
    min-width: 0
}

.ph-row strong {
    display: block;
    color: var(--ink)
}

.ph-row small {
    display: block;
    color: var(--muted);
    font-size: var(--fs-xs)
}

.ph-av {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--r-xs);
    display: grid;
    place-items: center;
    font: 800 var(--fs-xs) Inter, sans-serif;
    font-style: normal;
    background: #ede9fe;
    color: var(--text-brand)
}

.ph-av.a2 {
    background: #dbeafe;
    color: var(--text-brand)
}

.ph-av.a3 {
    background: #dcfce7;
    color: var(--text-ok)
}

.ph-av.a4 {
    background: #fef3c7;
    color: var(--text-warn)
}

.a1 {
    background: #ede9fe;
    color: var(--text-brand)
}

.a2 {
    background: #dbeafe;
    color: var(--text-brand)
}

.a3 {
    background: #dcfce7;
    color: var(--text-ok)
}

.ph-tag {
    flex: none;
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: #f1f5f9;
    color: var(--muted)
}

.ph-tag.ok {
    background: #d1fae5;
    color: var(--text-ok)
}

.ph-tag.bad {
    background: #fee2e2;
    color: var(--text-bad)
}

.ph-tag.warn {
    background: #fef3c7;
    color: var(--text-warn)
}

.ph-tag.brand {
    background: var(--light);
    color: var(--text-brand)
}

.ph-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(124, 58, 237, .22)
}

.ph-btn.ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--border);
    box-shadow: none
}

.ph-btn.out {
    background: var(--ink);
    box-shadow: none
}

.ph-btn2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.ph-mini {
    min-height: 36px;
    padding: 8px;
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    cursor: pointer;
    background: var(--soft);
    color: var(--text-brand)
}

.ph-mini.yes {
    background: #d1fae5;
    color: var(--text-ok)
}

.ph-mini.no {
    background: #fee2e2;
    color: var(--text-bad)
}

.ph-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.ph-stats p {
    margin: 0;
    padding: 9px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border);
    font-size: var(--fs-xs);
    color: var(--muted)
}

.ph-stats b {
    display: block;
    font: 800 var(--fs-lg) var(--display);
    color: var(--ink)
}

.ph-bar {
    height: 6px;
    background: #f1edfb;
    border-radius: var(--r-pill);
    overflow: hidden;
    margin-top: 6px
}

.ph-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a78bfa)
}

.ph-chips {
    display: flex;
    gap: 6px;
    overflow: auto;
    scrollbar-width: none
}

.ph-chips span {
    flex: none;
    padding: 6px 11px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--muted)
}

.ph-chips span.on {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff
}

.ph-hero {
    border-radius: var(--r-md);
    padding: 14px;
    color: #fff;
    background: linear-gradient(135deg, #1e1b4b, #5b21b6)
}

.ph-hero small {
    display: block;
    color: var(--on-dark-muted);
    font-size: var(--fs-xs)
}

.ph-hero strong {
    display: block;
    font: 800 var(--fs-lg) var(--display);
    margin-top: 2px
}

.ph-hero .ph-stats p {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
    color: var(--on-dark-muted)
}

.ph-hero .ph-stats b {
    color: #fff;
    font-size: var(--fs-base)
}

.ph-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.ph-tiles div {
    padding: 11px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ink)
}

.ph-tiles span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: var(--r-xs);
    background: var(--soft);
    color: var(--primary)
}

.ph-radar {
    position: relative;
    height: 200px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: radial-gradient(circle, #f5f3ff, #fff);
    overflow: hidden
}

.ph-radar:after {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, rgba(124, 58, 237, .26), transparent 22%);
    animation: phspin 4s linear infinite
}

@keyframes phspin {
    to {
        transform: rotate(360deg)
    }
}

.ph-radar>b {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(124, 58, 237, .22);
    border-radius: var(--r-pill);
    transform: translate(-50%, -50%)
}

.ph-radar>b:nth-child(1) {
    width: 70px;
    height: 70px
}

.ph-radar>b:nth-child(2) {
    width: 140px;
    height: 140px
}

.ph-radar>b:nth-child(3) {
    width: 210px;
    height: 210px
}

.ph-radar .me,
.ph-radar .dot {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 800
}

.ph-radar .me {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 7px rgba(124, 58, 237, .16)
}

.ph-radar .dot {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid var(--green);
    color: var(--text-ok)
}

.ph-radar .dot.off {
    border-color: #cbd5e1;
    color: var(--muted)
}

.ph-radar .d1 {
    left: 22%;
    top: 24%
}

.ph-radar .d2 {
    right: 18%;
    top: 62%
}

.ph-radar .d3 {
    right: 28%;
    top: 14%
}

.ph-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center
}

.ph-cal b {
    font-size: var(--fs-xs);
    color: var(--muted)
}

.ph-cal span {
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: var(--r-xs);
    font-size: var(--fs-xs);
    font-weight: 700
}

.ph-cal .p {
    background: #d1fae5;
    color: var(--text-ok)
}

.ph-cal .a {
    background: #fee2e2;
    color: var(--text-bad)
}

.ph-cal .l {
    background: #fef3c7;
    color: var(--text-warn)
}

.ph-cal .w {
    background: #f1f5f9;
    color: var(--muted)
}

.ph-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 74px;
    margin-top: 6px
}

.ph-bars i {
    flex: 1;
    border-radius: var(--r-xs);
    background: linear-gradient(180deg, #c4b5fd, #7c3aed)
}

.ph-axis {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: var(--muted);
    margin-top: 4px
}

.ph-ring {
    width: 84px;
    height: 84px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    flex: none;
    background: conic-gradient(var(--primary) 0 96%, #ede9fe 96% 100%)
}

.ph-ring:after {
    content: attr(data-v);
    width: 62px;
    height: 62px;
    border-radius: var(--r-pill);
    background: #fff;
    display: grid;
    place-items: center;
    font: 800 var(--fs-md) var(--display);
    color: var(--ink)
}

.ph-flex {
    display: flex;
    align-items: center;
    gap: 12px
}

.ph-gal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.ph-gal div {
    position: relative;
    height: 92px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: flex-end;
    padding: 8px;
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
    overflow: hidden
}

.ph-gal .g1 {
    background: linear-gradient(135deg, #7c3aed, #ec4899)
}

.ph-gal .g2 {
    background: linear-gradient(135deg, #0ea5e9, #6366f1)
}

.ph-gal .g3 {
    background: linear-gradient(135deg, #10b981, #0ea5e9)
}

.ph-gal .g4 {
    background: linear-gradient(135deg, #f59e0b, #ef4444)
}

.ph-gal .vid:before {
    content: "▶";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 26px;
    height: 26px;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, .35);
    display: grid;
    place-items: center;
    font-size: var(--fs-xs)
}

.ph-map {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f3f0ff
}

.ph-map svg {
    display: block;
    width: 100%;
    height: 150px
}

.ph-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.ph-times p {
    margin: 0;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--border);
    font-size: var(--fs-xs);
    color: var(--muted)
}

.ph-times b {
    display: block;
    font-size: var(--fs-sm);
    color: var(--ink)
}

.ph-date {
    flex: none;
    width: 40px;
    padding: 5px 0;
    text-align: center;
    border-radius: var(--r-xs);
    background: var(--soft);
    color: var(--text-brand);
    font-size: var(--fs-xs);
    font-weight: 800;
    line-height: 1.2
}

.ph-date b {
    display: block;
    font-size: var(--fs-md)
}

.ph-time {
    flex: none;
    width: 50px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--muted)
}

.ph-live {
    background: #ecfdf5;
    border-color: #a7f3d0
}

.app-ctrl {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 310px;
    max-width: 100%
}

.app-ctrl button {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: var(--fs-base);
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: .2s
}

.app-ctrl button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.app-ctrl-mid {
    flex: 1;
    text-align: center
}

.app-ctrl-mid span {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ink)
}

.app-ctrl-bar {
    height: 4px;
    margin-top: 6px;
    background: var(--light);
    border-radius: var(--r-pill);
    overflow: hidden
}

.app-ctrl-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: var(--r-pill);
    transition: width .4s var(--ease)
}

.app-hint {
    position: relative;
    z-index: 3;
    margin: 0;
    max-width: 310px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--muted)
}

.app-sync {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
    margin-top: 72px
}

.app-sync>div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    min-width: 0
}

.app-sync b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-sm);
    margin-bottom: 12px
}

.app-sync strong {
    display: block;
    font-size: var(--fs-base);
    color: var(--ink)
}

.app-sync small {
    display: block;
    margin-top: 4px;
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.5
}

.app-sync>i {
    align-self: center;
    font-style: normal;
    color: var(--primary);
    font-weight: 800
}

.app-roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 72px
}

.app-role-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    min-width: 0
}

.app-role-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--primary);
    font-size: var(--fs-lg)
}

.app-role-card .mh3 {
    margin-top: 16px
}

.app-role-card>p {
    margin: 8px 0 0;
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--muted)
}

.app-role-card ul {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px
}

.app-role-card li {
    display: flex;
    gap: 10px;
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--text)
}

.app-day {
    margin-top: 72px
}

.app-day-head {
    text-align: center;
    margin-bottom: 24px
}

.app-day-head .mh3 {
    font-size: var(--fs-xl)
}

.app-day-head p {
    margin: 6px 0 0;
    font-size: var(--fs-md);
    color: var(--muted)
}

.app-day-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden
}

.app-day table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

.app-day th,
.app-day td {
    padding: 16px 22px;
    font-size: var(--fs-md);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    vertical-align: top
}

.app-day thead th {
    border-top: 0;
    background: #fbfaff;
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--muted);
    text-transform: none
}

.app-day tbody th {
    width: 110px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap
}

.app-day td {
    color: var(--text)
}

/* FAQ: comfortable line length */
.app-faq {
    max-width: 680px;
    margin: 72px auto 0
}

.app-faq .mh3 {
    font-size: var(--fs-xl);
    text-align: center;
    margin-bottom: 20px
}

.app-faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-top: 10px
}

.app-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 20px;
    position: relative;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--ink)
}

.app-faq summary::-webkit-details-marker {
    display: none
}

.app-faq summary:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-lg);
    color: var(--primary);
    transition: transform .25s
}

.app-faq details[open] summary:after {
    transform: translateY(-50%) rotate(45deg)
}

.app-faq details[open] {
    border-color: #d6c9fa
}

.app-faq details p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--muted);
    max-width: 62ch
}

.app-get {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding: 28px 32px;
    background: var(--ink);
    border-radius: var(--r-lg)
}

.app-get strong {
    display: block;
    font-size: var(--fs-lg);
    color: #fff
}

.app-get span {
    display: block;
    margin-top: 4px;
    font-size: var(--fs-md);
    color: var(--on-dark-muted)
}

.app-get .btn {
    flex: none
}

/* ---------- conversion pack ---------- */
.how-section,
.price-section {
    background: #fff
}

.trust-section,
.proof-section {
    background: #f6f3ff
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.proof-card {
    margin: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 22px
}

.proof-card blockquote {
    margin: 0;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--ink)
}

.proof-card figcaption b {
    display: block;
    font-size: var(--fs-md);
    color: var(--ink)
}

.proof-card figcaption span {
    font-size: var(--fs-sm);
    color: var(--muted)
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative
}

.how-steps:before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #ddd6fe)
}

.how-steps li {
    position: relative;
    text-align: center;
    padding: 0 6px
}

.how-steps li>b {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font: 800 var(--fs-base) var(--display);
    box-shadow: 0 0 0 8px #fff
}

.how-steps .mh3 {
    font-size: var(--fs-lg);
    color: var(--ink)
}

.how-steps p {
    margin: 8px auto 0;
    max-width: 250px;
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--muted)
}

.how-cta {
    text-align: center;
    margin-top: 48px
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.trust-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card)
}

.trust-card>span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--primary);
    font-size: var(--fs-base);
    font-weight: 800
}

.trust-card .mh3 {
    margin-top: 16px;
    font-size: var(--fs-base);
    color: var(--ink)
}

.trust-card p {
    margin: 8px 0 0;
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--muted)
}

.trust-card a {
    color: var(--text-brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card)
}

.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-premium)
}

.price-badge {
    position: absolute;
    top: -13px;
    left: 32px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 800
}

.price-card .mh3 {
    font-size: var(--fs-xl);
    color: var(--ink)
}

.price-for {
    margin: 6px 0 0;
    font-size: var(--fs-md);
    color: var(--muted)
}

.price-val {
    margin: 20px 0 0;
    font: 800 var(--fs-xl) var(--display);
    letter-spacing: -.03em;
    color: var(--ink)
}

.price-card ul {
    list-style: none;
    margin: 20px 0 26px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 10px;
    flex: 1;
    align-content: start
}

.price-card li {
    display: flex;
    gap: 10px;
    font-size: var(--fs-md);
    color: var(--text);
    line-height: 1.5
}

.price-card .btn.full {
    margin-top: 0
}

.price-calc {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 22px 28px;
    background: #fbfaff;
    border: 1px solid var(--border);
    border-radius: var(--r-md)
}

.price-calc strong {
    display: block;
    font-size: var(--fs-base);
    color: var(--ink)
}

.price-calc span {
    font-size: var(--fs-md);
    color: var(--muted)
}

/* labelled input + steppers */
.calc-in {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--muted)
}

.calc-in label {
    font-weight: 700;
    color: var(--ink)
}

.calc-in .btn {
    min-width: 44px;
    padding: 12px
}

.calc-in input {
    width: 96px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    font-size: var(--fs-base);
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield
}

.calc-in input::-webkit-outer-spin-button,
.calc-in input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.calc-in input:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--light)
}

.calc-out {
    flex: 1;
    min-width: 240px;
    margin: 0;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--ink)
}

.calc-out a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px
}

.price-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--muted)
}

.dsk-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 999;
    transform: translate(-50%, 24px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 22px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 18px 50px rgba(49, 31, 108, .2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    max-width: calc(100% - 32px)
}

.dsk-bar.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto
}

.dsk-bar span {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--ink)
}

@media (min-width:801px) {
    .wa {
        bottom: 24px
    }
}

/* ---------- ONE shared tab / chip / segment family ---------- */
.academic-tabs button,
.demo-tabs button,
.tour-nav button,
.app-roles button,
.app-chips button,
.lab-seg button,
.ph-chips button {
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    transition: .2s
}

.academic-tabs button:hover,
.demo-tabs button:hover,
.tour-nav button:hover,
.app-roles button:hover,
.app-chips button:hover,
.lab-seg button:hover,
.ph-chips button:hover {
    color: var(--primary);
    border-color: var(--border)
}

.academic-tabs button.active,
.demo-tabs button.active,
.tour-nav button.active,
.app-roles button.on,
.app-chips button.on,
.lab-seg button.on,
.ph-chips button.on {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff
}

.app-roles button {
    padding: 10px 22px;
    min-height: 44px
}

.lab-seg button,
.app-chips button,
.ph-chips button {
    border-color: var(--border);
    background: #fff
}

.ph-chips button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: var(--fs-xs)
}

.lab-seg button.on,
.app-chips button.on,
.ph-chips button.on {
    background: var(--ink);
    border-color: var(--ink)
}

/* =====================================================================
   RESPONSIVE: TABLET (≤1080px)
   ===================================================================== */
@media (max-width:1080px) {
    :root {
        --section-y: 80px
    }

    .container {
        width: min(var(--container), calc(100% - 48px))
    }

    .desktop-nav,
    .login-link {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 80px
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px
    }

    .hero-copy {
        text-align: center
    }

    .hero-copy .eyebrow {
        justify-content: center
    }

    .hero h1 {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto
    }

    .hero-text,
    .hero-audience,
    .hero-app {
        margin-left: auto;
        margin-right: auto
    }

    .hero-app {
        text-align: left
    }

    .hero-meta,
    .hero-actions,
    .hero-mini-flow {
        justify-content: center
    }

    .hero-product {
        max-width: 680px;
        margin: 0 auto
    }

    .statement-grid {
        grid-template-columns: 1fr;
        gap: 60px
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 55px
    }

    .statement-grid .command-visual {
        max-width: 700px;
        width: 100%;
        margin: auto
    }

    .attendance-grid {
        grid-template-columns: 1fr
    }

    .workflow {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px
    }

    .workflow-line {
        display: none
    }

    .document-grid {
        grid-template-columns: 1fr 1fr
    }

    .doc-device {
        grid-column: span 2
    }

    .operation-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .bento-card.tall {
        grid-row: span 1
    }

    .benefit-row {
        gap: 50px
    }

    .cta-grid {
        grid-template-columns: 1fr
    }

    .cta-pulse {
        display: none
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 28px
    }

    .app-stage {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .app-copy {
        max-width: 640px;
        margin: 0 auto
    }

    .app-sync {
        grid-template-columns: 1fr 1fr
    }

    .app-sync>i {
        display: none
    }

    .how-steps,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .how-steps:before {
        display: none
    }

    .how-steps li {
        padding: 22px;
        background: #fbfaff;
        border: 1px solid var(--border);
        border-radius: var(--r-md)
    }

    .how-steps li>b {
        box-shadow: none
    }

    .price-grid,
    .proof-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto
    }

    .academic-content {
        grid-template-columns: 1fr
    }

    .academic-side {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 14px
    }

    .academic-side .tiny-label {
        width: 100%
    }

    .academic-tabs,
    .demo-tabs,
    .tour-nav,
    .app-roles,
    .app-chips,
    .ph-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .academic-tabs::-webkit-scrollbar,
    .demo-tabs::-webkit-scrollbar,
    .tour-nav::-webkit-scrollbar,
    .app-roles::-webkit-scrollbar {
        display: none
    }

    .academic-tabs button,
    .demo-tabs button,
    .tour-nav button,
    .app-roles button,
    .app-chips button,
    .ph-chips button {
        flex: 0 0 auto
    }
}

/* =====================================================================
   RESPONSIVE: SMALL TABLET / LARGE PHONE (≤800px)
   ===================================================================== */
@media (max-width:800px) {

    .vs,
    .lab,
    .dform-grid {
        grid-template-columns: 1fr
    }

    .dform {
        padding: 24px
    }

    .sticky-bar {
        display: flex;
        gap: 10px;
        position: fixed;
        inset: auto 0 0;
        z-index: 1000;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom))
    }

    .sticky-bar .btn {
        flex: 1;
        padding: 13px
    }

    .wa {
        bottom: 80px;
        right: 14px
    }

    body {
        padding-bottom: 68px
    }

    .dsk-bar {
        display: none
    }
}

/* =====================================================================
   RESPONSIVE: PHONE NAV + LAYOUT (≤760px)
   ===================================================================== */
@media (max-width:760px) {
    :root {
        --section-y: 64px
    }

    .container {
        width: min(var(--container), calc(100% - 30px))
    }

    .nav-wrap {
        height: 70px
    }

    .brand {
        font-size: var(--fs-lg)
    }

    .nav-actions .btn {
        display: none
    }

    .mobile-drawer {
        display: flex;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 66px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        box-shadow: var(--shadow);
        padding: 9px;
        flex-direction: column;
        gap: 2px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: .25s
    }

    .mobile-drawer.open {
        opacity: 1;
        pointer-events: auto;
        transform: none
    }

    .mobile-drawer a {
        padding: 12px;
        border-radius: var(--r-sm);
        font-size: var(--fs-sm);
        font-weight: 700
    }

    .mobile-drawer a:hover {
        background: var(--soft);
        color: var(--primary)
    }

    .hero {
        padding-top: 108px;
        padding-bottom: 64px
    }

    h1 span::after {
        height: 5px;
        bottom: -4px
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch
    }

    .hero-actions .btn {
        width: 100%
    }

    .hero-meta {
        gap: 10px 15px
    }

    .hero-mini-flow {
        display: none
    }

    .hero-app-grid,
    .app-roles-grid {
        grid-template-columns: 1fr
    }

    .hero-orbit {
        display: none
    }

    .hero-product {
        aspect-ratio: 1 / 1.02
    }

    .hero-phones {
        width: 62%
    }

    .hero-product .f1 {
        left: -2%;
        top: 2%
    }

    .hero-product .f2 {
        right: -2%;
        top: 20%
    }

    .hero-product .f3,
    .hero-product .f4 {
        display: none
    }

    .student-app {
        grid-template-columns: 1fr
    }

    .section-intro.centered {
        margin-bottom: 42px
    }

    .section-intro p,
    .statement p,
    .feature-copy p {
        line-height: 1.75
    }

    .command-visual {
        min-height: 420px
    }

    .command-visual:after {
        width: 400px;
        height: 400px
    }

    .command-visual:before {
        width: 270px;
        height: 270px
    }

    .ring-card {
        padding: 8px 9px
    }

    .r1 {
        top: 25px
    }

    .r2 {
        top: 85px
    }

    .r3 {
        right: 2%;
        bottom: 60px
    }

    .r4 {
        bottom: 2px
    }

    .r5 {
        left: 0;
        bottom: 105px
    }

    .r6 {
        left: 0;
        top: 155px
    }

    .r7 {
        right: 18%;
        top: 12px
    }

    .r8 {
        right: 25%;
        bottom: 12px
    }

    .profile-panel {
        border-left: 0;
        border-top: 1px solid var(--border)
    }

    .table-row {
        grid-template-columns: 1.5fr .5fr .6fr .6fr
    }

    .table-row>*:nth-child(4) {
        display: none
    }

    .filter-line {
        grid-template-columns: 1fr 1fr
    }

    .filter-line span:nth-child(n+3) {
        display: none
    }

    .lifecycle {
        overflow: hidden
    }

    .life-line {
        min-width: 780px;
        justify-content: flex-start;
        gap: 24px;
        padding-bottom: 8px;
        overflow: auto
    }

    .life-progress {
        width: 42%
    }

    .workflow {
        grid-template-columns: 1fr 1fr
    }

    .attendance-main {
        grid-template-columns: 1fr;
        text-align: center
    }

    .attendance-ring {
        margin: auto
    }

    .attendance-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .chart-panel {
        text-align: left
    }

    .exam-layout {
        grid-template-columns: 1fr
    }

    .result-grid,
    .analytics-kpis,
    .finance-metrics,
    .multi-kpis {
        grid-template-columns: 1fr 1fr
    }

    .analytics-grid {
        grid-template-columns: 1fr
    }

    .analytics-card.wide {
        min-height: 260px
    }

    .document-grid {
        grid-template-columns: 1fr
    }

    .doc-device {
        grid-column: 1
    }

    .operation-grid {
        grid-template-columns: 1fr 1fr
    }

    .bento-grid {
        grid-template-columns: 1fr
    }

    .bento-card.large {
        grid-column: span 1
    }

    .bento-card {
        min-height: 225px;
        padding: 19px
    }

    .benefit-row,
    .benefit-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 52px 0;
        gap: 28px
    }

    .benefit-visual {
        min-height: 155px
    }

    .demo-tabs {
        justify-content: flex-start
    }

    .demo-screen {
        padding: 10px
    }

    .demo-ui-grid,
    .demo-panel-grid {
        grid-template-columns: 1fr
    }

    .demo-ui-side {
        display: none
    }

    .tour-stage {
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 24px
    }

    .tour-copy {
        max-width: none
    }

    .tour-screen {
        min-height: 270px
    }

    .cta-card {
        padding: 40px 24px
    }

    .final-section {
        min-height: 545px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-brand {
        grid-column: span 2
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
        text-align: center
    }

    .student-list {
        padding: 13px
    }

    .marks-row {
        min-width: 620px
    }

    .network-card {
        min-height: 410px
    }

    .school-node {
        min-width: 95px
    }

    .how-steps,
    .trust-grid {
        grid-template-columns: 1fr
    }

    .price-card {
        padding: 26px
    }

    .price-calc {
        padding: 20px
    }

    .calc-in {
        width: 100%;
        flex-wrap: wrap
    }

    .calc-in label {
        width: 100%
    }

    .calc-in input {
        flex: 1;
        width: auto
    }

    .hero-actions .btn-wa {
        width: 100%
    }

    .app-roles {
        width: 100%
    }

    .app-roles button {
        flex: 1;
        padding: 10px
    }

    .app-device {
        min-height: 650px
    }

    .app-device:before {
        width: 340px;
        height: 340px
    }

    .af1 {
        left: -6px;
        top: 70px
    }

    .af2 {
        right: -6px;
        bottom: 80px
    }

    .app-sync {
        grid-template-columns: 1fr;
        margin-top: 48px
    }

    .app-ctrl,
    .app-hint {
        width: 100%;
        max-width: 310px
    }

    .app-role-card {
        padding: 24px
    }

    .app-day-wrap {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible
    }

    .app-day table,
    .app-day tbody,
    .app-day tr,
    .app-day th,
    .app-day td {
        display: block
    }

    .app-day thead {
        position: absolute;
        left: -9999px
    }

    .app-day tr {
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        overflow: hidden
    }

    .app-day th,
    .app-day td {
        border: 0;
        padding: 10px 16px
    }

    .app-day tbody th {
        width: auto;
        padding-bottom: 0
    }

    .app-day td:before {
        display: block;
        font-size: var(--fs-xs);
        font-weight: 800;
        color: var(--muted);
        margin-bottom: 2px
    }

    .app-day td:nth-of-type(1):before {
        content: "Teacher"
    }

    .app-day td:nth-of-type(2):before {
        content: "Parent"
    }

    .app-get {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 24px
    }
}

/* =====================================================================
   RESPONSIVE: PHONE (≤640px)
   Hero stacks, type scales down, CTAs go full width, mockups scale.
   ===================================================================== */
@media (max-width:640px) {
    :root {
        --section-y: 48px
    }

    /* Type scale */
    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.12
    }

    .statement h2,
    .section-intro h2,
    .feature-copy h2,
    .cta-card h2,
    .final-inner h2 {
        font-size: 1.85rem;
        line-height: 1.1
    }

    .app-copy h3,
    .tour-copy h3,
    .benefit-row h3 {
        font-size: 1.6rem
    }

    /* Hero: stack screenshots under the copy instead of overlapping */
    .hero-product {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        gap: 14px
    }

    .hero-laptop {
        position: static;
        width: 100%
    }

    .hero-phones {
        position: static;
        width: 100%;
        aspect-ratio: auto;
        display: flex;
        align-items: flex-end;
        gap: 10px
    }

    .hero-shot {
        position: relative;
        flex: 1 1 0;
        width: auto;
        min-width: 0
    }

    .hero-shot img {
        width: 100%;
        height: auto
    }

    .hs-teacher,
    .hs-parent,
    .hs-teacher:hover,
    .hs-parent:hover {
        transform: none
    }

    /* Section and card rhythm */
    .section-intro.centered {
        margin-bottom: 32px
    }

    .lab-card,
    .price-card,
    .dform,
    .cta-card {
        padding: 20px
    }

    .cta-card {
        padding: 32px 20px
    }

    /* CTA rows stack and go full width */
    .cta-actions,
    .final-inner>div:last-child {
        flex-direction: column;
        align-items: stretch;
        gap: 14px
    }

    .cta-actions .btn,
    .final-inner .btn {
        width: 100%
    }

    /* Teacher staff cards: one column */
    .staff-grid {
        grid-template-columns: 1fr
    }

    /* Try-it-live lab */
    .lab-pay {
        flex-direction: column
    }

    .lab-pay input,
    .lab-pay .btn {
        width: 100%
    }

    .lab-kpis p {
        padding: 10px
    }

    /* Mobile app mockup scales to the screen */
    .phone {
        width: min(310px, 100%);
        height: auto;
        aspect-ratio: 310 / 640;
        margin: 0 auto
    }

    .app-ctrl {
        width: min(310px, 100%)
    }

    .app-device {
        min-height: 0
    }

    .app-device:before {
        width: 300px;
        height: 300px
    }

    .app-float {
        display: none
    }

    .app-get {
        gap: 14px
    }

    .app-get .btn {
        width: 100%
    }

    /* Command visual: smaller hub */
    .command-visual {
        min-height: 380px
    }

    .command-center {
        width: 130px;
        height: 130px
    }

    /* Booking form: 16px prevents iOS zoom on focus */
    .dform input,
    .dform select {
        font-size: 16px;
        min-height: 48px
    }

    .dform .btn {
        width: 100%
    }

    /* Pricing */
    .price-calc {
        flex-direction: column;
        align-items: stretch;
        gap: 14px
    }

    .calc-in input {
        width: 100%;
        min-height: 48px;
        font-size: 16px
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column
    }
}

/* =====================================================================
   RESPONSIVE: SMALL PHONE (≤360px)
   ===================================================================== */
@media (max-width:360px) {
    .hero h1 {
        font-size: 1.85rem
    }

    .statement h2,
    .section-intro h2,
    .feature-copy h2,
    .cta-card h2,
    .final-inner h2 {
        font-size: 1.65rem
    }

    .lab-marks {
        grid-template-columns: 1fr
    }

    .lab-kpis {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-brand {
        grid-column: auto
    }
}

/* =====================================================================
   RESPONSIVE: VERY SMALL (≤420px)
   ===================================================================== */
@media (max-width:420px) {

    .operation-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-brand {
        grid-column: auto
    }
}

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .floating-card,
    .marquee-track,
    .pulse-ring,
    .app-float,
    .ph-radar:after {
        animation: none
    }

    .hero-shot,
    .ph-body {
        transition: none
    }

    .life-progress {
        transition: none
    }

    .cursor-dot,
    .cursor-glow {
        display: none !important
    }
}  

/* =====================================================================
   SchoolOS — performance.css
   Append this entire block to the END of assets/css/schoolstyle.css
   (or load it after schoolstyle.css). Design rules are unchanged.
   ===================================================================== */

/* 1. Pause animations in regions that are offscreen (set by schoolscript.js section 8) */
.paused,
.paused * {
    animation-play-state: paused !important;
}

/* 2. Skip layout and paint for sections below the fold.
      The hero is excluded so it renders immediately. */
main>section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

/* 3. Hint the browser about the hero tilt so it composites instead of repainting */
[data-tilt] {
    will-change: transform;
}

/* 4. Hero images: reserve their space so the layout doesn't shift while loading (CLS) */
.hero-laptop img,
.hero-shot img {
    height: auto;
}

/* 5. Avoid expensive scroll-time repaints from the sticky header blur on low-end devices */
@media (max-width:760px) {
    .site-header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }
}

/* 6. Respect reduced motion for the content-visibility change too (no visual difference, but keeps scroll smooth) */
@media (prefers-reduced-motion:reduce) {

    .paused,
    .paused * {
        animation-play-state: running !important;
    }
}