/* css/site.css — CampusNXT public website design system.
   Sections: tokens · base · layout · buttons · top bar · header & menus ·
   drawer · heroes · mockups · cards · sections · pricing · FAQ · forms ·
   footer · floating actions · motion · utilities · responsive. */

/* ===== Tokens ===== */
:root {
    /* Brand palette */
    --blue: #2855D9;          /* primary */
    --blue-600: #1F45BE;
    --sky: #5C82F2;           /* light blue for gradients and dark-section accents */
    --blue-50: #F4F7FF;       /* light section background */
    --blue-100: #E9EFFF;
    --blue-200: #CCD9FF;
    --navy: #14264E;          /* deep navy */
    --navy-2: #1E3770;
    --navy-3: #0E1A38;
    --purple: #7545D6;
    --purple-600: #6236BE;
    --purple-100: #F1EBFF;
    --purple-200: #DCCDFB;
    --teal: #0EAA9B;          /* accents, icons, borders */
    --teal-600: #0B8478;      /* teal text and buttons (AA contrast with white) */
    --teal-700: #08695F;
    --teal-100: #E1F6F3;
    --orange: #F59E0B;
    --orange-700: #B45309;    /* orange text on light backgrounds */
    --orange-100: #FFF4DC;
    --rose: #D92D20;          /* required markers and errors */

    /* Text */
    --ink: #172554;           /* main headings */
    --body: #52627A;          /* paragraphs */
    --muted: #718096;         /* large or decorative secondary text, icons, illustration labels */
    --muted-strong: #5F6F8C;  /* small secondary text (4.98:1 on white) */
    --line: #E3E8F4;
    --surface: #FFFFFF;
    --surface-2: #F4F7FF;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #2855D9 0%, #7545D6 100%);
    --grad-primary-hover: linear-gradient(135deg, #1F45BE 0%, #6236BE 100%);
    --grad-text: linear-gradient(90deg, #2855D9 0%, #7545D6 100%);
    --grad-text-light: linear-gradient(90deg, #9DB4FF 0%, #CDB6FF 100%);
    --grad-dark: linear-gradient(135deg, #14264E 0%, #1C2F68 55%, #35277A 100%);

    /* Semantic names used across the stylesheet */
    --green: var(--teal-600);
    --green-600: var(--teal-700);
    --wa: var(--teal-600);
    --wa-dark: var(--teal-600);
    --amber: var(--orange);
    --amber-100: var(--orange-100);
    --violet: var(--purple);
    --violet-100: var(--purple-100);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 29, 51, .06), 0 2px 8px rgba(15, 29, 51, .05);
    --shadow: 0 10px 30px -12px rgba(20, 38, 78, .22), 0 4px 10px -6px rgba(20, 38, 78, .10);
    --shadow-lg: 0 30px 60px -24px rgba(20, 38, 78, .35), 0 12px 24px -12px rgba(20, 38, 78, .18);
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
    --container: 1200px;
    --header-h: 72px;

    /* Theme settings. The admin panel (admin/website_colors.php, website_fonts.php)
       overrides these and the palette tokens above via an inline :root block that
       header.php prints after this file (inc/theme-cache.php). */
    --c-card-bg: #FFFFFF;
    --c-card-title: var(--navy);
    --c-card-text: var(--body);
    --c-link: var(--blue);
    --c-link-hover: var(--purple-600);
    --c-icon: var(--blue);
    --c-icon-bg: var(--blue-100);
    --c-badge-bg: var(--purple-100);
    --c-badge-text: var(--purple);
    --c-label: var(--ink);
    --c-input-border: #CBD5E6;
    --c-focus: var(--blue);
    --c-focus-ring: rgba(40, 85, 217, .16);
    --c-success-bg: var(--teal-100);
    --c-success-text: var(--teal-700);
    --c-success-border: #A8E3DB;
    --c-error-bg: #FDECEC;
    --c-error-text: #A12A2A;
    --c-error-border: #F6C3C3;
    --c-topbar-bg: var(--navy);
    --c-topbar-text: #DCDEE4;
    --c-parent-login: var(--blue);
    --c-parent-login-hover: var(--blue-600);
    --c-school-login: #15803D;
    --c-school-login-hover: #126D34;
    --c-register: #DC2626;
    --c-register-hover: #BB2020;
    --c-header-bg: #FFFFFF;
    --c-nav-text: var(--ink);
    --c-nav-hover: var(--purple);
    --c-nav-hover-bg: var(--purple-100);
    --c-nav-active: var(--blue);
    --c-nav-underline: var(--grad-primary);
    --c-footer-bg: var(--navy-3);
    --c-footer-text: #C0C3CB;
    --c-btn-primary-bg: var(--grad-primary);
    --c-btn-primary-hover: var(--grad-primary-hover);
    --c-btn-primary-text: #FFFFFF;
    --c-btn-primary-shadow: rgba(117, 69, 214, .6);
    --c-btn2-bg: #FFFFFF;
    --c-btn2-text: var(--blue);
    --c-btn2-border: var(--blue);
    --c-demo-bg: var(--grad-primary);
    --c-demo-hover: var(--grad-primary-hover);
    --c-whatsapp: var(--teal-600);
    --c-whatsapp-hover: var(--teal-700);
    --fs-h1: 3.25rem;
    --fs-h2: 2.35rem;
    --fs-card: 1.15rem;
    --fs-body: 16px;
    --fs-nav: .96rem;
    --fs-btn: .98rem;
    --fw-head: 700;
    --fw-body: 400;
    --lh-body: 1.65;

    /* Aliases kept for older utility pages that still use inline var() styles */
    --primary: var(--blue);
    --primary-dark: var(--blue-600);
    --secondary: var(--green);
    --accent: var(--amber);
    --dark: var(--navy-3);
    --light: var(--blue-50);
    --text: var(--ink);
    --text-dark: var(--ink);
    --text-light: var(--body);
    --border: var(--line);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    line-height: var(--lh-body);
    color: var(--body);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-link-hover); }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.015em; font-weight: var(--fw-head); text-wrap: balance; }
h1 { font-size: clamp(calc(var(--fs-h1) * .62), 4.2vw, var(--fs-h1)); }
h2 { font-size: clamp(calc(var(--fs-h2) * .68), 3vw, var(--fs-h2)); color: var(--ink); }
h3 { font-size: var(--fs-card); }
p { margin: 0; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid rgba(40, 85, 217, .45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--purple-200); color: var(--ink); }

/* Coloured headings — use sparingly, on a key word or short phrase */
.text-gradient {
    color: var(--blue);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-dark .text-gradient, .cta-band .text-gradient { color: #CDB6FF; background-image: var(--grad-text-light); }
.text-purple { color: var(--purple); }
.text-teal { color: var(--teal-600); }
.text-blue { color: var(--blue); }
.section-dark .text-purple { color: #CDB6FF; }
.section-dark .text-teal { color: #7FE3D8; }
.text-strong { color: var(--navy); font-weight: 700; }
.text-strong-blue { color: var(--blue); font-weight: 700; }

.ic {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 2000;
    background: var(--navy);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 860px; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--surface-2); }
.section-tint { background: linear-gradient(180deg, var(--blue-50), #fff); }
.section-dark {
    background: radial-gradient(900px 420px at 88% -10%, rgba(117, 69, 214, .45), transparent 65%),
                radial-gradient(700px 380px at 0% 110%, rgba(14, 170, 155, .18), transparent 65%),
                var(--grad-dark);
    color: rgba(255, 255, 255, .84);
}
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section-head p:not(.eyebrow) { margin-top: .85rem; font-size: 1.075rem; color: var(--body); }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .8); }
.section-head-left { margin-inline: 0; text-align: left; }

/* Small labels above headings: purple by default, teal variant for secondary groups */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-badge-text);
    background: var(--c-badge-bg);
    padding: .38rem .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.eyebrow .ic { width: 1em; height: 1em; }
.eyebrow-light { background: rgba(255, 255, 255, .8); border: 1px solid var(--purple-200); }
.eyebrow-teal { color: var(--teal-600); background: var(--teal-100); }
.section-dark .eyebrow { background: rgba(255, 255, 255, .1); color: #D6C7FF; border: 1px solid rgba(205, 182, 255, .25); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.split-reverse .split-media { order: 2; }
.split-text h2 { margin-bottom: 1rem; }
.split-text > p:not(.eyebrow) { font-size: 1.05rem; color: var(--body); }
.section-dark .split-text > p:not(.eyebrow) { color: rgba(255, 255, 255, .82); }

.lead { font-size: 1.125rem; color: var(--body); }
.note { font-size: .92rem; color: var(--muted-strong); }
.label-optional { font-weight: 500; color: var(--muted-strong); }
.split-top { align-items: start; }
.container-md { max-width: 900px; }
.card-tint { background: var(--blue-50); border-color: var(--blue-100); }
.card-lg { padding: 2rem; }
.card-title { font-size: 1.35rem; margin-bottom: .5rem; color: var(--navy); }
.card-title-sm { font-size: 1.2rem; margin-bottom: .35rem; color: var(--navy); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.25rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.4rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: var(--fs-btn);
    line-height: 1.2;
    text-align: center;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--c-focus); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: .6rem 1rem; font-size: calc(var(--fs-btn) * .92); }
.btn-lg { padding: 1rem 1.7rem; font-size: calc(var(--fs-btn) * 1.07); }
.btn-block { width: 100%; }
/* Primary: blue-to-purple gradient */
.btn-primary { background: var(--c-btn-primary-bg); color: var(--c-btn-primary-text); box-shadow: 0 10px 22px -10px var(--c-btn-primary-shadow); }
.btn-primary:hover, .btn-primary.is-active { background: var(--c-btn-primary-hover); color: var(--c-btn-primary-text); box-shadow: 0 14px 26px -12px var(--c-btn-primary-shadow); }
/* Get Demo actions */
.btn-demo { background: var(--c-demo-bg); color: #fff; box-shadow: 0 10px 22px -10px var(--c-btn-primary-shadow); }
.btn-demo:hover, .btn-demo.is-active { background: var(--c-demo-hover); color: #fff; }
/* Login actions (same colours as the top-bar buttons) */
.btn-parent { background: var(--c-parent-login); color: #fff; }
.btn-parent:hover { background: var(--c-parent-login-hover); color: #fff; }
.btn-school { background: var(--c-school-login); color: #fff; }
.btn-school:hover { background: var(--c-school-login-hover); color: #fff; }
/* Success / WhatsApp actions: teal */
.btn-success { background: var(--c-register); color: #fff; }
.btn-success:hover { background: var(--c-register-hover); color: #fff; }
.btn-whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--c-whatsapp-hover); color: #fff; }
/* Secondary: white with blue border and text */
.btn-outline { background: var(--c-btn2-bg); color: var(--c-btn2-text); border-color: var(--c-btn2-border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-100); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--purple-100); color: var(--purple-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row-center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--c-link); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover { color: var(--c-link-hover); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* Legacy utility-page buttons and forms (sms.php, razorpay.php, …) */
.btn-primary:not(.btn) { display: inline-block; background: var(--c-btn-primary-bg); color: var(--c-btn-primary-text); padding: .9rem 2rem; border-radius: 10px; border: 0; font-weight: 700; }
.btn-secondary:not(.btn) { display: inline-block; background: #fff; color: var(--blue); padding: .85rem 2rem; border-radius: 10px; border: 2px solid var(--blue); font-weight: 700; }

/* ===== Top bar ===== */
.topbar { background: var(--c-topbar-bg); color: var(--c-topbar-text); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; }
.topbar ul { display: flex; align-items: center; gap: 1.25rem; }
.topbar li, .topbar-contact a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact li, .topbar-contact a { white-space: nowrap; }
.topbar .ic { width: 1em; height: 1em; opacity: .8; }
/* Parent Login / School Login / Register School: one shape, one solid colour each */
.topbar-actions { gap: .45rem !important; }
.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 36px;
    padding: 0 1.05rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #fff;
    box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .6);
    transition: background-color .2s, box-shadow .2s, transform .2s;
}
.topbar .tb-btn .ic { width: 16px; height: 16px; opacity: 1; }
.tb-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .7); }
.tb-btn:active { transform: translateY(0) scale(.97); }
.tb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tb-parent { background: var(--c-parent-login); }
.tb-parent:hover { background: var(--c-parent-login-hover); }
.tb-school { background: var(--c-school-login); }
.tb-school:hover { background: var(--c-school-login-hover); }
.tb-register { background: var(--c-register); }
.tb-register:hover { background: var(--c-register-hover); }
.tb-short { display: none; }

/* ===== Header & navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--c-header-bg);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 38, 78, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 46px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
    display: block;
    padding: .55rem .62rem;
    white-space: nowrap;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--fs-nav);
    color: var(--c-nav-text);
    position: relative;
}
.nav-link:hover { color: var(--c-nav-hover); background: var(--c-nav-hover-bg); }
.nav-link.is-active { color: var(--c-nav-active); }
.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: .62rem; right: .62rem; bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: var(--c-nav-underline);
}
.has-menu .nav-link { padding-right: .35rem; }
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border: 0; background: none;
    border-radius: 6px;
    color: var(--muted);
}
.menu-toggle:hover { color: var(--purple); background: var(--purple-100); }
.menu-toggle .ic { width: 16px; height: 16px; transition: transform .2s; }
.has-menu.is-open .menu-toggle .ic { transform: rotate(180deg); }

.mega, .dropdown {
    position: absolute;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 950;
}
.mega::before, .dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-menu:hover > .mega, .has-menu:hover > .dropdown,
.has-menu:focus-within > .mega, .has-menu:focus-within > .dropdown,
.has-menu.is-open > .mega, .has-menu.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-menu.is-closed > .mega, .has-menu.is-closed > .dropdown { opacity: 0; visibility: hidden; }

/* The mega menu is positioned against the whole header row, not its <li>,
   so it can be centred and never runs off-screen. */
.header-inner { position: relative; }
.nav-list > li.has-mega { position: static; }
.mega { top: 100%; left: 50%; width: min(980px, 94vw); padding: 1.5rem; transform: translate(-50%, 8px); }
.mega::before { top: -22px; height: 22px; }
.has-menu:hover > .mega, .has-menu:focus-within > .mega, .has-menu.is-open > .mega { transform: translate(-50%, 0); }
.mega-features { width: min(1180px, 96vw); padding: 1.4rem 1.6rem 1.1rem; }
.mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.6rem; }
.mega-group + .mega-group { margin-top: 1.15rem; }
.mega-count { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .68rem; letter-spacing: 0; color: var(--muted-strong); }
.mega-links li { border-bottom: 1px solid var(--line); }
.mega-links li:last-child { border-bottom: 0; }
.mega-links a { display: flex; align-items: center; gap: .6rem; padding: .38rem .4rem; margin-inline: -.4rem; border-radius: 8px; color: var(--ink); font-size: .87rem; font-weight: 500; line-height: 1.3; }
.mega-links a:hover { background: var(--purple-100); color: var(--purple-600); }
.mega-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-100); color: var(--blue); transition: background .2s, color .2s; }
.mega-ic .ic { width: 15px; height: 15px; }
.g-attendance .mega-ic { background: var(--purple-100); color: var(--purple); }
.g-finance .mega-ic { background: var(--orange-100); color: var(--orange-700); }
.g-communication .mega-ic { background: var(--teal-100); color: var(--teal-600); }
.g-operations .mega-ic { background: #E6EAF4; color: var(--navy); }
.g-platform .mega-ic { background: #ECE6FF; color: var(--purple-600); }
.mega-links a:hover .mega-ic { background: var(--grad-primary); color: #fff; }
.mega-foot-links { display: inline-flex; align-items: center; gap: 1.1rem; }
.mega-title, .legend-title { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--purple); margin-bottom: .45rem; }
.mega-title .ic, .legend-title .ic { color: var(--purple); }
.legend-title { margin-bottom: .8rem; padding: 0; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted-strong); }
.mega-foot span { display: inline-flex; align-items: center; gap: .4rem; }
.mega-foot > span:first-child .ic { color: var(--orange); }

.dropdown { left: -1rem; width: 320px; padding: .5rem; }
.dropdown-item { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem; border-radius: 10px; color: var(--ink); }
.dropdown-item:hover { background: var(--blue-50); color: var(--ink); }
.dropdown-item:hover strong { color: var(--blue); }
.dropdown-item strong { display: block; font-size: .95rem; }
.dropdown-item small { display: block; color: var(--muted-strong); font-size: .82rem; }
.dropdown-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-100); color: var(--blue); flex: none; }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.hamburger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0 11px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }

/* ===== Mobile drawer ===== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 40, .5); z-index: 1100; }
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    background: #fff;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -20px 0 40px rgba(8, 20, 40, .25);
    animation: drawerIn .25s ease-out;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-logo { height: 38px; width: auto; }
.drawer-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.drawer-nav { padding: .75rem; }
.drawer-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .75rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}
.faq summary:hover { color: var(--blue); }
.drawer-link::-webkit-details-marker { display: none; }
.drawer-link .ic { color: var(--c-icon); }
.drawer-link:hover { background: var(--purple-100); color: var(--purple-600); }
.drawer-link.is-active { background: var(--blue-50); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.drawer-caret { margin-left: auto; color: var(--muted) !important; transition: transform .2s; }
details[open] > .drawer-link .drawer-caret { transform: rotate(180deg); }
.drawer-sub { padding: .25rem 0 .5rem 2.6rem; display: grid; }
.drawer-sub a { padding: .45rem .5rem; border-radius: 8px; color: var(--body); font-size: .93rem; }
.drawer-sub a:hover { background: var(--blue-50); color: var(--blue); }
.drawer-sub-title { margin-top: .6rem; padding-left: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--purple); }
.drawer-actions { margin-top: auto; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.drawer-logins { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.drawer-logins .btn { padding-inline: .5rem; font-size: .88rem; }
.drawer-phone { display: flex; align-items: center; justify-content: center; gap: .5rem; padding-top: .4rem; font-weight: 700; color: var(--navy); }
body.drawer-open { overflow: hidden; }

/* ===== Home hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(700px 380px at 90% 10%, rgba(117, 69, 214, .16), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(40, 85, 217, .08), transparent 70%),
        linear-gradient(180deg, #F4F7FF 0%, #ffffff 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(20, 38, 78, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
/* Hero keyword: blue-to-purple gradient text */
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--body); max-width: 560px; }
.hero .btn-row { margin-top: 1.75rem; }
.hero-logins { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: var(--body); }
.hero-logins a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.hero-points { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.hero-points .ic { color: var(--teal); }
.hero-visual { position: relative; min-height: 420px; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    background:
        radial-gradient(520px 260px at 10% 0%, rgba(40, 85, 217, .16), transparent 70%),
        radial-gradient(560px 280px at 92% 100%, rgba(117, 69, 214, .16), transparent 70%),
        linear-gradient(180deg, #F4F7FF, #FBFCFF);
    border-bottom: 1px solid var(--line);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero-intro { margin: 1rem auto 0; max-width: 680px; font-size: 1.1rem; color: var(--body); }
.page-hero .btn-row { margin-top: 1.75rem; }
/* Breadcrumbs: muted blue-grey, current page in navy */
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; font-size: .86rem; color: #5F6F8C; margin-bottom: 1rem; }
.breadcrumb li + li::before { content: '/'; margin-right: .35rem; color: #A3B0C8; }
.breadcrumb a { color: #5F6F8C; font-weight: 600; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 700; }
.page-hero-deco .deco { position: absolute; pointer-events: none; }
.deco-ring { width: 120px; height: 120px; border-radius: 50%; border: 14px solid rgba(40, 85, 217, .07); top: -30px; left: 6%; }
.deco-dots {
    width: 140px; height: 90px;
    right: 7%; top: 18%;
    background-image: radial-gradient(rgba(117, 69, 214, .25) 2px, transparent 2px);
    background-size: 14px 14px;
}
.deco-pencil {
    width: 120px; height: 14px;
    left: 9%; bottom: 22%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange) 0 78%, #F3D9B1 78% 92%, #3b3b3b 92%);
    transform: rotate(-28deg);
    opacity: .7;
}

/* ===== Mockups (illustrative product screens) ===== */
.browser {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #dbe4f2;
    overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: #f1f5fb; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-url { margin-left: .6rem; flex: 1; max-width: 260px; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .15rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.dash-side { background: var(--navy); padding: .9rem 0; display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.dash-side span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.dash-side span.on { background: var(--grad-primary); color: #fff; }
.dash-side .ic { width: 14px; height: 14px; }
.dash-main { padding: 1rem; background: #f7f9fd; }
.dash-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-size: .8rem; font-weight: 700; color: var(--ink); }
.dash-title small { font-weight: 600; color: var(--muted); font-size: .7rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .6rem; }
.kpi small { display: block; font-size: .6rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.kpi b { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); margin-top: .15rem; }
.kpi i { display: block; height: 3px; border-radius: 3px; margin-top: .4rem; background: var(--blue); width: 70%; }
.kpi:nth-child(2) i { background: var(--orange); width: 45%; }
.kpi:nth-child(3) i { background: var(--teal); width: 88%; }
.kpi:nth-child(4) i { background: var(--purple); width: 20%; }
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .55rem; margin-top: .55rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem; }
.panel-title { font-size: .64rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.bars { display: flex; align-items: flex-end; gap: 6%; height: 92px; padding-top: .25rem; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--purple), var(--blue)); }
.bars span:nth-child(even) { background: linear-gradient(180deg, #D7CBFA, #B3C5FB); }
.list-rows { display: grid; gap: .45rem; }
.list-row { display: grid; grid-template-columns: 18px 1fr auto; gap: .45rem; align-items: center; }
.list-row .av { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-200); }
.list-row:nth-child(2) .av { background: #ffd8a8; }
.list-row:nth-child(3) .av { background: #bbf0d1; }
.list-row:nth-child(4) .av { background: #e3d7ff; }
.sk { display: block; height: 6px; border-radius: 4px; background: #e5ebf5; }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; }
.pill { font-size: .55rem; font-weight: 700; padding: .12rem .4rem; border-radius: 999px; background: #dcfce7; color: #166534; }
.pill.due { background: #fee2e2; color: #b91c1c; }
.pill.wait { background: #fef3c7; color: #92400e; }

.phone {
    width: 210px;
    border-radius: 34px;
    background: #0f1d33;
    padding: 9px;
    box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 26px; overflow: hidden; background: #f4f7fc; min-height: 400px; position: relative; }
.phone-notch { position: absolute; top: 7px; left: 50%; width: 70px; height: 16px; margin-left: -35px; border-radius: 10px; background: #0f1d33; z-index: 2; }
.phone-head { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--purple) 100%); color: #fff; padding: 2rem .9rem .9rem; }
.phone-head small { display: block; font-size: .62rem; opacity: .8; }
.phone-head b { font-family: var(--font-head); font-size: .85rem; color: #fff; }
.phone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .6rem; }
.phone-tile { min-width: 0; overflow: hidden; background: #fff; border-radius: 12px; padding: .5rem .1rem; text-align: center; font-size: .47rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 29, 51, .06); }
.phone-tile span { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto .3rem; border-radius: 9px; background: var(--blue-100); color: var(--blue); }
.phone-tile span .ic { width: 15px; height: 15px; }
.phone-tile:nth-child(3n+2) span { background: var(--purple-100); color: var(--purple); }
.phone-tile:nth-child(3n) span { background: var(--teal-100); color: var(--teal-600); }
.phone-note { margin: 0 .7rem; background: #fff; border-radius: 12px; padding: .55rem .6rem; display: flex; gap: .5rem; align-items: center; box-shadow: 0 1px 2px rgba(15, 29, 51, .06); }
.phone-note span { width: 26px; height: 26px; border-radius: 8px; background: var(--wa); color: #fff; display: grid; place-items: center; flex: none; }
.phone-note .ic { width: 14px; height: 14px; }
.phone-note b { display: block; font-size: .6rem; color: var(--ink); }
.phone-note small { display: block; font-size: .55rem; color: var(--muted); line-height: 1.3; }

.notif {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .6rem .8rem;
    box-shadow: var(--shadow);
    font-size: .78rem;
    max-width: 240px;
    animation: floaty 6s ease-in-out infinite;
}
.notif b { display: block; color: var(--ink); font-size: .8rem; line-height: 1.25; }
.notif small { display: block; color: var(--muted-strong); font-size: .72rem; line-height: 1.3; }
.notif-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: var(--blue); }
.notif-icon.wa { background: var(--wa); }
.notif-icon.ok { background: var(--green); }
.notif-icon.amber { background: var(--amber); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-visual .browser { position: relative; z-index: 1; margin-right: 60px; }
.hero-visual .phone { position: absolute; right: 0; bottom: -40px; z-index: 2; width: 200px; }
.hero-visual .phone-screen { min-height: 340px; }
.hero-visual .notif-1 { left: -24px; bottom: 26px; z-index: 3; }
.hero-visual .notif-2 { right: 150px; top: -22px; z-index: 3; animation-delay: -3s; }

/* Laptop frame used on module pages */
.laptop { position: relative; max-width: min(560px, 87%); margin-inline: auto; }  /* the base is 14% wider than the screen */
.laptop-screen { border: 10px solid #1d2638; border-bottom-width: 14px; border-radius: 16px 16px 0 0; background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.laptop-base { height: 14px; margin-inline: -7%; background: linear-gradient(180deg, #cfd6e2, #a9b3c4); border-radius: 0 0 14px 14px; position: relative; }
.laptop-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 90px; height: 5px; margin-left: -45px; background: #8e99ac; border-radius: 0 0 6px 6px; }
.laptop .dash { min-height: 260px; }

.module-visual { position: relative; padding: 2.5rem 1rem; }
.module-visual::before {
    content: '';
    position: absolute;
    inset: 0 6%;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--blue-100), #fff 70%);
    z-index: -1;
}
.callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border-radius: 12px;
    padding: .55rem .8rem .55rem .55rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    max-width: 190px;
    line-height: 1.3;
    z-index: 2;
}
.callout b { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-head); font-size: .9rem; }
.callout-1 { top: 4%; left: 0; }
.callout-2 { top: 16%; right: 0; }
.callout-3 { bottom: 22%; left: -2%; }
.callout-4 { bottom: 6%; right: 2%; }
.callout:nth-of-type(2) b { background: var(--green); }
.callout:nth-of-type(3) b { background: var(--amber); }
.callout:nth-of-type(4) b { background: var(--violet); }

/* Screen variants (inc/mockups.php) */
.scr { padding: .9rem; background: #f7f9fd; min-height: 260px; }
.scr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.scr-head b { font-size: .78rem; color: var(--ink); }
.scr-head span { font-size: .6rem; font-weight: 700; color: #fff; background: var(--grad-primary); border-radius: 6px; padding: .2rem .5rem; }
.scr-table { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.scr-tr { display: grid; grid-template-columns: 20px 1.3fr 1fr .8fr; gap: .6rem; align-items: center; padding: .5rem .65rem; border-top: 1px solid #eef2f8; }
.scr-tr:first-child { border-top: 0; background: #f1f5fb; }
.scr-tr:first-child .sk { background: #d6dfec; height: 5px; }
.scr-tr .av { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-200); }
.scr-tr:nth-child(3) .av { background: #ffd8a8; } .scr-tr:nth-child(4) .av { background: #bbf0d1; } .scr-tr:nth-child(5) .av { background: #e3d7ff; }
.scr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem; }
.scr-cal i { aspect-ratio: 1; border-radius: 5px; background: #dcfce7; }
.scr-cal i.a { background: #fee2e2; } .scr-cal i.l { background: #fef3c7; } .scr-cal i.h { background: #e2e8f0; } .scr-cal i.t { background: var(--blue); }
.scr-legend { display: flex; gap: .8rem; margin-top: .6rem; font-size: .6rem; font-weight: 600; color: var(--muted); }
.scr-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .3rem; background: #dcfce7; vertical-align: middle; }
.scr-legend span:nth-child(2)::before { background: #fee2e2; } .scr-legend span:nth-child(3)::before { background: #fef3c7; }
.scr-fees { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; position: relative; }
.receipt::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 12px; background: radial-gradient(circle at 6px -2px, transparent 6px, #fff 6px) repeat-x; background-size: 12px 12px; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--line); font-size: .65rem; font-weight: 700; color: var(--ink); }
.receipt-total b { color: var(--green); font-size: .8rem; }
.chat { background: var(--teal-100); border-radius: 10px; padding: .7rem; display: grid; gap: .5rem; min-height: 220px; align-content: start; }
.bubble { max-width: 82%; background: #fff; border-radius: 10px 10px 10px 2px; padding: .5rem .6rem; font-size: .64rem; line-height: 1.4; color: var(--ink); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bubble.me { justify-self: end; background: #CBEFEA; border-radius: 10px 10px 2px 10px; }
.bubble small { display: block; text-align: right; font-size: .5rem; color: #6b8a7a; margin-top: .15rem; }
.idcards { display: flex; gap: .8rem; justify-content: center; padding: .6rem 0; }
.idcard { width: 120px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; text-align: center; padding-bottom: .6rem; }
.idcard-top { height: 34px; background: linear-gradient(135deg, var(--navy), var(--blue) 60%, var(--purple)); }
.idcard-photo { width: 46px; height: 46px; margin: -22px auto .45rem; border-radius: 50%; border: 3px solid #fff; background: var(--blue-200); }
.idcard .sk { margin: .3rem auto 0; }
.idcard-bar { margin: .5rem auto 0; width: 70%; height: 14px; background: repeating-linear-gradient(90deg, #1d2638 0 2px, transparent 2px 4px, #1d2638 4px 5px, transparent 5px 8px); }
.idcard:nth-child(2) .idcard-top { background: linear-gradient(135deg, var(--teal-700), var(--teal)); }
.report { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.report-head { display: flex; gap: .6rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .55rem; }
.report-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-100); }
.report-head-text { flex: 1; }
.report-head-text .sk + .sk { margin-top: .35rem; }
.sk.sk-amount { width: 30px; }
.scr-phone { display: flex; justify-content: center; background: linear-gradient(135deg, var(--blue-100), #fff); }
.report-row { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: .6rem; padding: .3rem 0; align-items: center; }
.grade { font-size: .6rem; font-weight: 800; color: var(--green); text-align: right; }
.map { position: relative; height: 230px; border-radius: 10px; overflow: hidden; background:
    linear-gradient(90deg, rgba(255, 255, 255, .7) 2px, transparent 2px) 0 0 / 46px 46px,
    linear-gradient(0deg, rgba(255, 255, 255, .7) 2px, transparent 2px) 0 0 / 46px 46px,
    #E3F4F1; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 38%; top: 42%; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(245, 158, 11, .25); }
.map-pin .ic { width: 15px; height: 15px; }
.map-school { position: absolute; right: 12%; top: 16%; width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.map-school .ic { width: 14px; height: 14px; }

/* ===== Cards ===== */
.card {
    background: var(--c-card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card, .card-hover { color: inherit; }
a.card:hover, .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-200); color: inherit; }
.card h3 { margin-bottom: .5rem; color: var(--c-card-title); transition: color .2s; }
/* Feature / module titles pick up the brand accent on hover */
a.card:hover h3, a.card:hover h2 { color: var(--c-link); }
.card p { color: var(--c-card-text); font-size: .96rem; }

.icon-tile {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--c-icon-bg);
    color: var(--c-icon);
    margin-bottom: 1.1rem;
}
.icon-tile .ic { width: 26px; height: 26px; }
/* One palette colour per module group: blue (default), purple, orange, teal, navy, gradient */
.icon-tile.t-attendance { background: var(--purple-100); color: var(--purple); }
.icon-tile.t-finance { background: var(--orange-100); color: var(--orange-700); }
.icon-tile.t-communication { background: var(--teal-100); color: var(--teal-600); }
.icon-tile.t-operations { background: #E6EAF4; color: var(--navy); }
.icon-tile.t-platform { background: var(--grad-primary); color: #fff; }
/* Explicit colour variants for tiles that aren't tied to a module group */
.icon-tile.tile-purple { background: var(--purple-100); color: var(--purple); }
.icon-tile.tile-teal { background: var(--teal-100); color: var(--teal-600); }
.icon-tile.tile-orange { background: var(--orange-100); color: var(--orange-700); }
.icon-tile.tile-navy { background: #E6EAF4; color: var(--navy); }
.icon-tile.tile-gradient { background: var(--grad-primary); color: #fff; }
.icon-tile.sm { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 0; }
.icon-tile.sm .ic { width: 21px; height: 21px; }

.module-card { display: flex; flex-direction: column; height: 100%; }
.module-card p { flex: 1; }
.module-card .link-arrow { margin-top: 1rem; font-size: .92rem; }
.module-card .tag { align-self: flex-start; margin-bottom: .8rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .2rem .6rem; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); }

.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.benefit h3 { color: var(--c-card-title); }
.benefit p { font-size: .95rem; color: var(--c-card-text); }

.checklist { display: grid; gap: .7rem; margin-top: 1.25rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: var(--body); }
.checklist li .ic { color: var(--green); margin-top: .2rem; }
.checklist.two-col { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.checklist li.na { color: #9aa6b8; }
.checklist li.na .ic { color: #cbd3df; }
.section-dark .checklist li { color: rgba(255, 255, 255, .88); }
.section-dark .checklist li .ic { color: #7FE3D8; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
}
.chip .ic { color: var(--c-icon); }
.section-dark .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.section-dark .chip .ic { color: #B9C8FF; }
button.chip { cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
button.chip:hover { border-color: var(--purple); color: var(--purple); }
button.chip[aria-pressed="true"] { background: var(--grad-primary); color: #fff; border-color: transparent; }
button.chip[aria-pressed="true"] .ic { color: #fff; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; text-align: center; padding: 2rem 1.4rem 1.6rem; }
.step-num {
    width: 54px; height: 54px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: #fff;
    background: var(--grad-primary);
    box-shadow: 0 10px 20px -10px rgba(117, 69, 214, .7);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--body); font-size: .95rem; }
.step-mini { width: 28px; height: 28px; margin: 0; border-radius: 8px; font-size: .85rem; flex: none; box-shadow: none; }

/* Photo + licence credit */
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--blue-50); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo.wide img { aspect-ratio: 16 / 10; }
.photo-credit {
    position: absolute;
    right: .5rem; bottom: .5rem;
    font-size: .66rem;
    line-height: 1.3;
    color: #fff;
    background: rgba(8, 20, 40, .55);
    padding: .2rem .45rem;
    border-radius: 6px;
    max-width: calc(100% - 1rem);
}
.photo-credit a { color: #fff; text-decoration: underline; }
.photo-stack { position: relative; padding: 0 0 2.5rem 2.5rem; }
.photo-stack .photo + .photo { position: absolute; left: 0; bottom: 0; width: 52%; border: 6px solid #fff; }
.media-badge {
    position: absolute;
    right: -10px; top: 22px;
    display: flex; align-items: center; gap: .6rem;
    background: #fff;
    padding: .7rem .9rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: .85rem;
    z-index: 2;
}
.media-badge b { display: block; color: var(--ink); line-height: 1.2; }
.media-badge small { color: var(--muted-strong); }

/* Illustrative school-website mockup (school-website.php) */
.swm-nav { display: flex; align-items: center; justify-content: space-between; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.swm-brand, .swm-links { display: flex; align-items: center; gap: .5rem; }
.swm-brand .sk { width: 90px; }
.swm-links .sk { width: 34px; }
.swm-cta { background: var(--grad-primary); color: #fff; }
.swm-hero { position: relative; }
.swm-hero img { width: 100%; height: 190px; object-fit: cover; }
.swm-hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: 1.2rem; background: linear-gradient(90deg, rgba(20, 38, 78, .88), rgba(117, 69, 214, .25)); }
.swm-line-1 { width: 55%; height: 10px; background: #fff; }
.swm-line-2 { width: 40%; background: rgba(255, 255, 255, .6); }
.swm-apply { align-self: flex-start; margin-top: .4rem; background: var(--orange); color: #3B2400; }
.swm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: .9rem; background: #F7F9FD; }
.swm-tiles .panel { text-align: center; }
.swm-tiles .icon-tile { margin: 0 auto .5rem; }
.swm-tiles .sk { margin: 0 auto; }
.swm-credit { margin-top: .4rem; font-size: .7rem; color: var(--muted-strong); }

/* School website showcase (cx_website_card) */
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.site-card { display: flex; flex-direction: column; background: var(--c-card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.site-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.site-shot { position: relative; display: block; background: #f1f5fb; border-bottom: 1px solid var(--line); overflow: hidden; }
.site-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s ease; }
.site-card:hover .site-shot img { transform: scale(1.03); }
.site-shot-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: 1.4rem .7rem .8rem;
    background: linear-gradient(0deg, rgba(8, 20, 40, .78), transparent);
    color: #fff; font-weight: 700; font-size: .88rem;
    opacity: 0; transition: opacity .25s;
}
.site-shot:hover .site-shot-overlay, .site-shot:focus-visible .site-shot-overlay { opacity: 1; }
.site-card-body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem 1.35rem 1.4rem; }
.site-card-body .tag { align-self: flex-start; }
.site-card-body h3 { font-size: 1.2rem; }
.site-place { display: flex; align-items: center; gap: .35rem; color: var(--body); font-size: .9rem; }
.site-place .ic { color: var(--purple) !important; }
.site-place .ic { width: 1em; height: 1em; color: var(--blue); }
.site-features { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .7rem; }
.site-features li { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink); }
.site-features .ic { width: .95em; height: .95em; color: var(--green); }
.site-card-body .btn-row { margin-top: auto; }
.site-card-compact .site-card-body { padding: 1rem 1.15rem 1.15rem; }
.site-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px dashed var(--purple-200); }
.site-cta p { color: var(--body); max-width: 640px; }
.site-cta strong { color: var(--navy); }
.site-cta strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }

/* 404 page */
.notfound-path { display: inline-block; max-width: 100%; margin-top: .9rem; padding: .3rem .7rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: .9rem; color: var(--rose); overflow-wrap: anywhere; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin: 0 auto 2.5rem; padding: 1.1rem 1.4rem; max-width: 720px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-200); font-weight: 600; color: var(--ink); }

/* Stats / facts band */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.fact b { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: #fff; background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fact span { display: block; margin-top: .4rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.fact-link { display: block; text-align: left; transition: background .2s, border-color .2s; }
.fact-link:hover { background: rgba(255, 255, 255, .1); border-color: rgba(205, 182, 255, .4); }
.fact .fact-icon { color: #B9C8FF; margin-top: 0; }
.fact .fact-title { font-size: 1.2rem; margin-top: .6rem; }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: 1rem; }
.quote-card .ic { color: var(--purple-200); width: 34px; height: 34px; }
.quote-card blockquote { color: var(--ink); font-size: 1.02rem; }
.quote-card figcaption { margin-top: auto; font-size: .9rem; color: var(--muted-strong); }
.quote-card figcaption strong { display: block; }

/* App section */
.app-band .split { align-items: center; }
.app-visual { display: flex; justify-content: center; gap: 1.25rem; align-items: flex-end; }
.app-visual .phone:nth-child(2) { transform: translateY(-30px); }
.platforms { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.platform { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: .92rem; }

/* WhatsApp alerts list */
.alert-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.alert-item { display: flex; align-items: center; gap: .65rem; background: var(--c-card-bg); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; font-weight: 600; color: var(--ink); font-size: .94rem; }
.alert-item .ic { color: var(--teal-600); }
.quote-bubble { max-width: none; margin-top: .75rem; font-size: .86rem; background: var(--teal-100); }

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    background: radial-gradient(520px 260px at 100% 0%, rgba(117, 69, 214, .55), transparent 70%), linear-gradient(120deg, var(--navy) 0%, var(--blue) 70%, var(--purple) 130%);
    color: rgba(255, 255, 255, .88);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: .6rem; }
.cta-band .btn-row { justify-content: flex-end; }

/* Feature filter (features page) */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.25rem; }
.group-block + .group-block { margin-top: 3rem; }
.group-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.group-title h2 { font-size: 1.45rem; }
.group-title .count { font-size: .82rem; font-weight: 700; color: var(--purple); background: var(--purple-100); border-radius: 999px; padding: .15rem .65rem; }
.module-grid-empty { display: none; text-align: center; color: var(--muted-strong); }

/* Module detail page */
.module-hero { padding-block: clamp(2.5rem, 5vw, 4rem); background: radial-gradient(520px 280px at 95% 10%, rgba(117, 69, 214, .12), transparent 70%), linear-gradient(180deg, #F4F7FF, #fff); border-bottom: 1px solid var(--line); }
.module-hero .breadcrumb ol { justify-content: flex-start; }
.module-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: .35rem 0 1rem; }
.module-hero .lead { max-width: 560px; }
.module-hero .btn-row { margin-top: 1.75rem; }
.callout-list { display: none; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Google Play button ===== */
.play-badge {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 52px;
    padding: .45rem 1.2rem .45rem .95rem;
    border-radius: 12px;
    background: #0B0F19;
    border: 1px solid #3A4152;
    color: #fff;
    line-height: 1.1;
    text-align: left;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55);
    transition: transform .2s, box-shadow .2s, background-color .2s;
}
.play-badge:hover { color: #fff; background: #000; transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .6); }
.play-badge:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 3px; }
.play-badge .ic { width: 26px; height: 26px; color: #fff; }
.play-badge small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .06em; opacity: .9; }
.play-badge strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.play-badge-light { background: #fff; border-color: #fff; color: #0B0F19; }
.play-badge-light:hover { background: #F1F3F8; color: #0B0F19; }
.play-badge-light .ic, .play-badge-light strong { color: #0B0F19; }

/* ===== Mobile app page ===== */
.app-phone {
    position: relative;
    width: 230px;
    padding: 10px;
    border-radius: 36px;
    background: #0F1A33;
    box-shadow: var(--shadow-lg);
    flex: none;
}
.app-phone::before { content: ''; position: absolute; top: 16px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: #26324F; z-index: 1; }
.app-phone img { display: block; width: 100%; height: auto; aspect-ratio: 338 / 887; object-fit: cover; object-position: top; border-radius: 27px; background: #fff; }
.app-identity { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.app-identity img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow-sm); background: #fff; }
.app-identity strong { display: block; color: var(--ink); font-family: var(--font-head); }
.app-identity span { display: block; color: var(--muted-strong); font-size: .9rem; }
.app-hero .btn-row { align-items: center; }
.breadcrumb-left ol { justify-content: flex-start; }
.app-hero-visual { display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.app-hero-visual .app-phone-back { position: absolute; left: 12%; top: 40px; width: 210px; transform: rotate(-6deg); opacity: .96; }
.app-hero-visual .app-phone-front { position: relative; z-index: 2; margin-left: 140px; width: 240px; }
.app-hero-visual .notif-1 { left: 0; bottom: 70px; z-index: 3; }
.app-hero-visual .notif-2 { right: 0; top: 30px; z-index: 3; animation-delay: -3s; }
.app-feature-chips { justify-content: center; max-width: 900px; margin-inline: auto; }
.app-shots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    justify-items: center;
}
.app-shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.app-shot .app-phone { width: 100%; max-width: 240px; }
.app-shot figcaption { text-align: center; }
.app-shot figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.app-shot figcaption span { display: block; color: var(--body); font-size: .9rem; }
.app-visual .app-phone + .app-phone { transform: translateY(-30px); }

/* ===== Clients ===== */
.client-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.client-grid > .client-card { flex: 0 1 260px; }
.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    padding: 1.5rem 1.25rem 1.35rem;
    background: var(--c-card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-200); }
.client-logo { width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: .6rem; border-radius: 18px; background: #fff; }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
.client-initials { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.8rem; color: #fff; background: var(--grad-primary); }
.client-card h3 { color: var(--c-card-title); font-size: 1.05rem; }
.client-place { display: flex; align-items: center; gap: .3rem; color: var(--body); font-size: .88rem; }
.client-place .ic { width: 1em; height: 1em; color: var(--purple); }
.client-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-weight: 700; font-size: .88rem; }
.client-link .ic { width: .95em; height: .95em; }
.clients-strip { border-bottom: 1px solid var(--line); }
.clients-strip-title { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); margin-bottom: 1.25rem; }
.clients-strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin-bottom: 1.25rem; }
.clients-strip-list li { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink); }
.clients-strip-list img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s, transform .2s; }
.footer-social a:hover { background: var(--grad-primary); color: #fff; transform: translateY(-2px); }
.footer-social .ic { width: 18px; height: 18px; }
.footer-app { margin-top: 1.4rem; }
.footer-app p { font-size: .85rem; margin-bottom: .55rem; color: var(--c-footer-text); }
.drawer-app { display: flex; justify-content: center; padding-top: .3rem; }
/* ===== Pricing ===== */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--c-card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
/* Featured plan: gradient border */
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--c-card-bg), var(--c-card-bg)) padding-box, var(--grad-primary) border-box; box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-primary); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: var(--fs-card); color: var(--c-card-title); }
.plan-price { margin-top: .8rem; font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1; }
.plan-price span { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted-strong); }
.plan-setup { margin-top: .5rem; font-size: .88rem; color: var(--body); }
.plan-meta { margin-top: 1rem; padding: .6rem .75rem; border-radius: 10px; background: var(--surface-2); font-size: .84rem; font-weight: 600; color: var(--ink); }
.plan .checklist { flex: 1; align-content: start; margin-bottom: 1.5rem; font-size: .92rem; gap: .55rem; }
.plan-compact .checklist { flex: none; margin-bottom: 1rem; }
.plan-compact .link-arrow { margin-top: auto; }
.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.addon { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem; }
.addon h3 { font-size: .98rem; margin-bottom: .25rem; }
.addon p { font-size: .88rem; }
.addon-price { margin-left: auto; flex: none; font-weight: 800; color: var(--purple); font-size: .92rem; white-space: nowrap; }
.plans.plans-narrow { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 960px; margin-inline: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--c-card-bg); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .94rem; }
.compare th, .compare td { padding: .9rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.compare thead th:first-child { text-align: left; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.compare tbody tr:nth-child(even) { background: var(--surface-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); }
.compare .no { color: #b8c1cf; }
.compare .ic { margin-inline: auto; width: 20px; height: 20px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--c-card-bg); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--purple-200); box-shadow: var(--shadow-sm); }
.faq details[open] summary { color: var(--blue); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--purple); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--body); }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: .6rem; }
.faq .answer ul { list-style: disc; padding-left: 1.2rem; }

/* ===== Forms ===== */
.form-card { background: var(--c-card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; margin-bottom: .35rem; color: var(--navy); }
.form-card > p { color: var(--body); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--c-label); margin-bottom: .4rem; }
/* Required-field marker: clearly visible red asterisk */
.req { color: var(--rose); font-weight: 800; margin-left: .1rem; }
.field input, .field select, .field textarea,
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: .78rem .9rem;
    border: 1.5px solid var(--c-input-border);
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9B8D6; }
.field textarea, .form-group textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 4px var(--c-focus-ring); }
.field-hint { font-size: .8rem; color: var(--muted-strong); margin-top: .3rem; }
.form-group { margin-bottom: 1.25rem; }
.check-field { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--body); }
.check-field input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--purple); flex: none; }
.fieldset-clean { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset-clean + .fieldset-clean { margin-top: 1.75rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1rem; font-size: .84rem; color: var(--muted-strong); display: flex; gap: .45rem; align-items: center; }
.form-note .ic { color: var(--green); }

.alert, .success-message, .error-message { display: flex; gap: .7rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; font-weight: 600; font-size: .95rem; }
.alert-success, .success-message { background: var(--c-success-bg); color: var(--c-success-text); border: 1px solid var(--c-success-border); }
.alert-error, .error-message { background: var(--c-error-bg); color: var(--c-error-text); border: 1px solid var(--c-error-border); }
.alert .ic { margin-top: .15rem; }

/* Contact cards: navy titles with a coloured accent bar (blue = phone/email, teal = WhatsApp, purple = location/hours) */
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; border-left: 4px solid var(--blue); }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; color: var(--navy); }
.contact-card p, .contact-card a, .contact-card address { font-size: .95rem; color: var(--body); }
.contact-card a strong { color: var(--blue); }
.contact-card.accent-teal { border-left-color: var(--teal); }
.contact-card.accent-teal a strong { color: var(--teal-600); }
.contact-card.accent-purple { border-left-color: var(--purple); }
.contact-card .contact-card-body { flex: 1; }
.map-card { padding: 0; overflow: hidden; }
.map-card iframe { display: block; width: 100%; height: 260px; border: 0; }
.hours-table { width: 100%; font-size: .92rem; color: var(--body); }
.hours-table td { padding: .2rem 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

.login-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.login-card { text-align: center; padding: 2.25rem 1.5rem; }
.login-card .icon-tile { margin-inline: auto; }
.login-card .btn { margin-top: 1.25rem; }

/* Prose (privacy / terms) */
.prose { color: var(--body); }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.5rem 0 .5rem; }
.prose p + p, .prose ul + p { margin-top: .9rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: .6rem 0; display: grid; gap: .35rem; }
.prose a { text-decoration: underline; }
.prose-meta { font-size: .9rem; color: var(--muted-strong); margin-bottom: 2rem; }
.prose-card { padding: clamp(1.5rem, 4vw, 2.75rem); }

/* Team */
.team-card { text-align: center; }
.team-avatar { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.4rem; color: #fff; background: var(--grad-primary); }
.team-card .role { font-weight: 700; color: var(--purple); font-size: .9rem; margin-bottom: .5rem; }

/* ===== Footer ===== */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); margin-top: 0; }
.footer-cta { background: var(--grad-primary); color: rgba(255, 255, 255, .92); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; }
.footer-cta h2 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.footer-cta p { margin-top: .3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.25fr 1fr 1fr; gap: 2rem; padding-block: 3.25rem 2.5rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: .5rem .8rem; margin-bottom: 1.1rem; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-contact { margin-top: 1.25rem; display: grid; gap: .55rem; font-size: .92rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: center; }
.footer-contact .ic { color: #9DB4FF; }
.footer-contact li:nth-child(2) .ic { color: #7FE3D8; }
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: #fff; }
.footer-col h3 { position: relative; font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; padding-bottom: .6rem; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-text-light); }
.footer-col ul { display: grid; gap: .55rem; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ===== Floating actions ===== */
.fab-stack { position: fixed; right: 20px; bottom: 22px; display: grid; gap: .7rem; z-index: 800; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: var(--shadow); transition: transform .2s; }
.fab:hover { transform: scale(1.07); }
.fab .ic { width: 26px; height: 26px; }
.fab-whatsapp { background: var(--c-whatsapp); color: #fff; }
.fab-whatsapp:hover { color: #fff; }
.fab-top { background: var(--grad-primary); color: #fff; }
.fab[hidden] { display: none; }
.mobile-bar { display: none; }

/* Older utility pages pushed content down to clear the previous fixed header. */
main > section[style*="margin-top: 130px"] { margin-top: 0 !important; }

/* ===== Motion ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* ===== Blog ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--c-card-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-200); }
.post-card-media { display: block; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, var(--blue-50), var(--purple-100)); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--c-icon); }
.post-card-placeholder .ic { width: 52px; height: 52px; opacity: .55; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.post-card-body > p:not(.post-meta) { color: var(--c-card-text); font-size: .95rem; flex: 1; }
.post-card-body .link-arrow { margin-top: 1rem; font-size: .92rem; }
.post-card-title { font-size: 1.15rem; line-height: 1.35; margin: .55rem 0 .5rem; }
.post-card-title a { color: var(--c-card-title); }
.post-card-title a:hover { color: var(--c-link); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .84rem; color: var(--muted-strong); }
.blog-cats { margin-bottom: 2rem; }
.chips-center { justify-content: center; }
.chip.is-active { background: var(--c-link); border-color: var(--c-link); color: #fff; }
.chip small { font-weight: 500; opacity: .75; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; font-weight: 600; color: var(--muted-strong); }
.empty-state { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.75rem; }
.empty-state .icon-tile { margin: 0 auto 1rem; }
.article .post-meta { margin-bottom: 1.5rem; }
.article-cover { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); margin-bottom: 1.75rem; }
.article-toc { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.article-toc p { font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.article-toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: .25rem; }
.article-toc a { text-decoration: none; }
.prose ol { list-style: decimal; padding-left: 1.4rem; margin: .6rem 0; display: grid; gap: .35rem; }
.prose ol + p, .prose blockquote + p, .prose h2 + p, .prose h3 + p { margin-top: .5rem; }
.prose p + ul, .prose p + ol { margin-top: .6rem; }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1.1rem; border-left: 4px solid var(--purple-200); background: var(--purple-100); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { font-size: .9em; background: var(--blue-50); padding: .1rem .35rem; border-radius: 5px; }
.prose strong { color: var(--ink); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--muted-strong); }
.article-share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--c-icon); text-decoration: none; }
.article-share a:hover { border-color: var(--c-link); color: var(--c-link); }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.75rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.article-cta h2 { color: #fff; font-size: 1.3rem; }
.article-cta p { color: rgba(255, 255, 255, .85); margin-top: .3rem; max-width: 460px; }
.quote-card figcaption { display: flex; align-items: center; gap: .8rem; }
.quote-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--purple-100); }
.area-card .icon-tile { margin-bottom: .9rem; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .article-cta { padding: 1.25rem; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ===== Feature page hero animation (module.php): entrance, then gentle motion ===== */
.module-visual::before { animation: mvGlow 9s ease-in-out infinite alternate; }
.module-visual .laptop { animation: mvRise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.module-visual .callout { animation: mvPop .55s cubic-bezier(.2, .9, .3, 1.3) backwards, floaty 6s ease-in-out infinite; }
.module-visual .callout-1 { --pulse: 40, 85, 217; animation-delay: .6s, 1.3s; }
.module-visual .callout-2 { --pulse: 11, 132, 120; animation-delay: .8s, 2.8s; }
.module-visual .callout-3 { --pulse: 245, 158, 11; animation-delay: 1s, 2s; }
.module-visual .callout-4 { --pulse: 117, 69, 214; animation-delay: 1.2s, 3.5s; }
.module-visual .callout b { animation: mvPulse 2.8s ease-out 1.8s infinite; }
.module-visual .callout-2 b { animation-delay: 2.5s; }
.module-visual .callout-3 b { animation-delay: 3.2s; }
.module-visual .callout-4 b { animation-delay: 3.9s; }
/* Screen contents arrive in order */
.module-visual .scr > :not(.scr-head),
.module-visual :is(.list-row, .scr-tr, .report-row, .kpi, .bubble, .idcard, .phone-tile, .phone-note, .scr-cal > *, .receipt, .map-school) { animation: mvFadeUp .5s ease-out backwards; animation-delay: .55s; }
.module-visual :is(.list-row, .scr-tr, .report-row, .kpi, .bubble, .idcard, .phone-tile):nth-child(2) { animation-delay: .7s; }
.module-visual :is(.list-row, .scr-tr, .report-row, .kpi, .bubble, .idcard, .phone-tile):nth-child(3) { animation-delay: .85s; }
.module-visual :is(.list-row, .scr-tr, .report-row, .kpi, .bubble, .idcard, .phone-tile):nth-child(4) { animation-delay: 1s; }
.module-visual :is(.list-row, .scr-tr, .report-row, .kpi, .phone-tile):nth-child(5) { animation-delay: 1.15s; }
.module-visual :is(.list-row, .scr-tr, .report-row, .kpi, .phone-tile):nth-child(n+6) { animation-delay: 1.3s; }
.module-visual .phone-note { animation-delay: 1.6s; }
.module-visual .pill { animation: mvPop .4s cubic-bezier(.2, .9, .3, 1.4) 1.3s backwards; }
.module-visual .bars span { transform-origin: bottom; animation: mvBar .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.module-visual .bars span:nth-child(1) { animation-delay: .7s; }
.module-visual .bars span:nth-child(2) { animation-delay: .78s; }
.module-visual .bars span:nth-child(3) { animation-delay: .86s; }
.module-visual .bars span:nth-child(4) { animation-delay: .94s; }
.module-visual .bars span:nth-child(5) { animation-delay: 1.02s; }
.module-visual .bars span:nth-child(n+6) { animation-delay: 1.1s; }
.module-visual .kpi i { transform-origin: left; animation: mvGrowX 1s cubic-bezier(.2, .8, .2, 1) 1.1s backwards; }
.module-visual .scr-phone .phone { animation: mvFadeUp .6s ease-out .5s backwards, floaty 7s ease-in-out 1.6s infinite; }
@media (max-width: 1024px) {
    .callout-list li { animation: mvFadeUp .45s ease-out backwards; }
    .callout-list li:nth-child(2) { animation-delay: .1s; }
    .callout-list li:nth-child(3) { animation-delay: .2s; }
    .callout-list li:nth-child(4) { animation-delay: .3s; }
}
@keyframes mvRise { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes mvPop { from { opacity: 0; transform: translateY(12px) scale(.85); } }
@keyframes mvFadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes mvBar { from { transform: scaleY(0); } }
@keyframes mvGrowX { from { transform: scaleX(0); } }
@keyframes mvGlow { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.04) rotate(-1.2deg); } }
@keyframes mvPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--pulse, 117, 69, 214), .5); }
    70% { box-shadow: 0 0 0 10px rgba(var(--pulse, 117, 69, 214), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--pulse, 117, 69, 214), 0); }
}
@media (prefers-reduced-motion: reduce) {
    .module-visual::before, .module-visual *, .callout-list li { animation: none !important; }
}

/* ===== Motion effects (entrance, typing, depth, counters, hover) — js/site.js adds the classes ===== */
/* Home hero: copy slides in line by line, the dashboard zooms in, cards pop */
.js .hero-copy > *, .js .page-hero-inner > *, .js .module-hero .split-text > * { animation: fxUp .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.js :is(.hero-copy, .page-hero-inner, .module-hero .split-text) > :nth-child(2) { animation-delay: .12s; }
.js :is(.hero-copy, .page-hero-inner, .module-hero .split-text) > :nth-child(3) { animation-delay: .24s; }
.js :is(.hero-copy, .page-hero-inner, .module-hero .split-text) > :nth-child(4) { animation-delay: .36s; }
.js :is(.hero-copy, .page-hero-inner, .module-hero .split-text) > :nth-child(5) { animation-delay: .48s; }
.js :is(.hero-copy, .page-hero-inner, .module-hero .split-text) > :nth-child(n+6) { animation-delay: .6s; }
.js .hero-visual .browser { animation: fxZoom .9s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
.js .hero-visual .phone { animation: fxUp .8s cubic-bezier(.2, .7, .2, 1) .5s backwards; }
.js .hero-visual .notif-1 { animation: mvPop .55s cubic-bezier(.2, .9, .3, 1.3) .9s backwards, floaty 6s ease-in-out 1.5s infinite; }
.js .hero-visual .notif-2 { animation: mvPop .55s cubic-bezier(.2, .9, .3, 1.3) 1.1s backwards, floaty 6s ease-in-out 3.2s infinite; }
.js .hero-visual .kpi { animation: mvFadeUp .5s ease-out .6s backwards; }
.js .hero-visual .kpi:nth-child(2) { animation-delay: .72s; }
.js .hero-visual .kpi:nth-child(3) { animation-delay: .84s; }
.js .hero-visual .kpi:nth-child(4) { animation-delay: .96s; }
.js .hero-visual .kpi i { transform-origin: left; animation: mvGrowX 1s cubic-bezier(.2, .8, .2, 1) 1.1s backwards; }
.js .hero-visual .bars span { transform-origin: bottom; animation: mvBar .8s cubic-bezier(.2, .8, .2, 1) .8s backwards; }
.js .hero-visual .bars span:nth-child(2) { animation-delay: .88s; }
.js .hero-visual .bars span:nth-child(3) { animation-delay: .96s; }
.js .hero-visual .bars span:nth-child(4) { animation-delay: 1.04s; }
.js .hero-visual .bars span:nth-child(5) { animation-delay: 1.12s; }
.js .hero-visual .bars span:nth-child(n+6) { animation-delay: 1.2s; }
.js .hero-visual :is(.list-row, .phone-tile) { animation: mvFadeUp .45s ease-out 1s backwards; }
.js .hero-visual :is(.list-row, .phone-tile):nth-child(2) { animation-delay: 1.08s; }
.js .hero-visual :is(.list-row, .phone-tile):nth-child(3) { animation-delay: 1.16s; }
.js .hero-visual :is(.list-row, .phone-tile):nth-child(n+4) { animation-delay: 1.24s; }
.js .hero-visual .phone-note { animation: mvFadeUp .5s ease-out 1.4s backwards; }
/* Typing effect on the highlighted hero words */
.type-rest { opacity: 0; }
.type-caret { display: inline-block; width: 3px; height: .82em; margin-right: -3px; vertical-align: -.06em; border-radius: 2px; background: var(--purple); animation: fxCaret 1s steps(1) infinite; }
/* Scroll-in variants (js/site.js picks them; cards in a grid arrive one after another) */
.js .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.fx-left:not(.is-visible) { transform: translateX(-40px); }
.js .reveal.fx-right:not(.is-visible) { transform: translateX(40px); }
.js .reveal.fx-zoom:not(.is-visible) { transform: scale(.92); }
/* Mouse-follow depth and 3D tilt (desktop) */
.has-depth { transform: perspective(1400px) rotateX(calc(var(--my, 0) * -3deg)) rotateY(calc(var(--mx, 0) * 4deg)); transition: transform .45s ease-out; }
.has-depth :is(.browser, .laptop, .phone, .notif, .callout) { transition: translate .45s ease-out; }
.has-depth :is(.browser, .laptop) { translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -5px); }
.has-depth .phone { translate: calc(var(--mx, 0) * 12px) calc(var(--my, 0) * 10px); }
.has-depth :is(.notif, .callout) { translate: calc(var(--mx, 0) * 20px) calc(var(--my, 0) * 16px); }
.has-depth :is(.notif-2, .callout-2, .callout-4) { translate: calc(var(--mx, 0) * 28px) calc(var(--my, 0) * 22px); }
/* Counters */
.fact b { font-variant-numeric: tabular-nums; }
/* Hover: shine across main buttons, icon tiles pop on cards */
.btn-primary, .btn-demo { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-demo::after { content: ''; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn-primary:hover::after, .btn-demo:hover::after { animation: fxShine .75s ease; }
.icon-tile { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
:is(.card, .benefit, .plan):hover .icon-tile { transform: translateY(-3px) rotate(-6deg) scale(1.07); }
/* Header gets slimmer once you scroll (desktop) */
@media (min-width: 1025px) {
    .header-inner { transition: min-height .25s ease; }
    .brand-logo { transition: height .25s ease; }
    .site-header.is-scrolled .header-inner { min-height: calc(var(--header-h) - 10px); }
    .site-header.is-scrolled .brand-logo { height: 40px; }
}
/* Banner decorations drift slowly */
.page-hero-deco .deco-ring { animation: fxDrift 10s ease-in-out infinite alternate; }
.page-hero-deco .deco-dots { animation: fxDrift 13s ease-in-out -5s infinite alternate-reverse; }
.page-hero-deco .deco-pencil { animation: fxWiggle 7s ease-in-out infinite; }
@keyframes fxUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes fxZoom { from { opacity: 0; transform: scale(.9) translateY(16px); } }
@keyframes fxCaret { 50% { opacity: 0; } }
@keyframes fxShine { to { left: 130%; } }
@keyframes fxDrift { from { translate: 0 0; } to { translate: 16px 12px; } }
@keyframes fxWiggle { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: 6deg; } }
@media (prefers-reduced-motion: reduce) {
    .js :is(.hero-copy, .page-hero-inner, .module-hero .split-text) > *, .js .hero-visual *, .page-hero-deco .deco, .btn-primary::after, .btn-demo::after { animation: none !important; }
    .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* ===== Header tools: search, language, light/dark ===== */
.header-tools { display: flex; align-items: center; gap: .35rem; }
.tool-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    height: 40px; min-width: 40px; padding: 0 .6rem;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--c-card-bg); color: var(--c-nav-text);
    font-weight: 700; font-size: .8rem; letter-spacing: .02em;
    transition: border-color .2s, color .2s, background .2s;
}
.tool-btn:hover, .tool-btn[aria-expanded="true"] { border-color: var(--purple-200); color: var(--c-nav-hover); background: var(--c-nav-hover-bg); }
.tool-btn .ic { width: 18px; height: 18px; }
.theme-moon, .theme-sun { display: inline-flex; }
.theme-sun, html[data-theme="dark"] .theme-moon { display: none; }
html[data-theme="dark"] .theme-sun { display: inline-flex; color: #FFC857; }

.lang { position: relative; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 960; width: 280px; padding: .6rem; background: var(--c-card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lang-menu[hidden] { display: none; }
.lang-search { display: flex; align-items: center; gap: .45rem; padding: 0 .7rem; border: 1.5px solid var(--c-input-border); border-radius: 10px; color: var(--muted); }
.lang-search:focus-within { border-color: var(--c-focus); box-shadow: 0 0 0 3px var(--c-focus-ring); }
.lang-search .ic { width: 16px; height: 16px; flex: none; }
.lang-search input { flex: 1; min-width: 0; padding: .55rem 0; border: 0; outline: 0; background: transparent; font-size: .92rem; color: var(--ink); }
.lang-list { max-height: 300px; overflow-y: auto; margin-top: .5rem; display: grid; gap: 2px; overscroll-behavior: contain; }
.lang-list li[hidden] { display: none; }
.lang-list button { width: 100%; display: flex; align-items: baseline; gap: .55rem; padding: .5rem .65rem; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--ink); }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--blue-50); outline: none; }
.lang-list button.is-current { background: var(--blue-100); color: var(--c-link); }
.lang-native { font-weight: 600; }
.lang-en { font-size: .8rem; color: var(--muted-strong); }
.lang-tick { margin-left: auto; align-self: center; width: 16px; height: 16px; visibility: hidden; }
.is-current .lang-tick { visibility: visible; }
.lang-note { margin-top: .5rem; padding: .45rem .3rem 0; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted-strong); }

/* Google Translate (language menu): hide Google's own bar and hover pop-ups */
body { top: 0 !important; }
iframe.skiptranslate, .skiptranslate > iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
/* Translated text is longer: drop the opening hours from the top bar so the login buttons fit */
:is(.translated-ltr, .translated-rtl) .topbar .hide-md { display: none; }
:is(.translated-ltr, .translated-rtl) .topbar-contact .hide-sm span { display: none; }

/* ===== About menu ===== */
.mega-about { width: min(960px, 94vw); padding: 1.6rem 1.75rem; }
.about-grid { display: grid; grid-template-columns: 1.15fr .8fr 1.25fr; gap: 1.75rem; }
.about-grid > div + div { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.about-intro p:not(.mega-title) { margin-bottom: .75rem; font-size: .92rem; color: var(--body); }
.about-intro .link-arrow { font-size: .9rem; }
.about-links a { display: block; padding: .5rem; margin-inline: -.5rem; border-radius: 8px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .93rem; }
.about-links li:last-child a { border-bottom: 0; }
.about-links a:hover { background: var(--purple-100); color: var(--purple-600); }
.feature-card { display: flex; align-items: center; gap: .9rem; padding: .55rem; margin-inline: -.55rem; border-radius: 12px; color: var(--ink); }
.feature-card + .feature-card { margin-top: .35rem; }
.feature-card:hover { background: var(--blue-50); color: var(--ink); }
.feature-card:hover strong { color: var(--c-link); }
.feature-thumb { flex: none; display: grid; place-items: center; width: 88px; height: 62px; border-radius: 12px; color: #fff; }
.feature-thumb .ic { width: 28px; height: 28px; }
.ft-app { background: linear-gradient(135deg, #0EAA9B, #2855D9); }
.ft-demo { background: linear-gradient(135deg, #7545D6, #2855D9); }
.feature-card strong { display: block; font-size: .94rem; transition: color .2s; }
.feature-card small { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.45; color: var(--muted-strong); }

/* ===== Site search ===== */
.search-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 11vh 1rem 1rem; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 36, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog { position: relative; width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; background: var(--c-card-bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: searchIn .16s ease-out; }
@keyframes searchIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-head > .ic { width: 20px; height: 20px; flex: none; }
.search-head input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.02rem; color: var(--ink); }
.search-esc { padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: .74rem; font-weight: 700; color: var(--muted-strong); }
.search-results { overflow-y: auto; padding: .5rem; overscroll-behavior: contain; }
.search-group { padding: .75rem .7rem .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); }
.search-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 10px; color: var(--ink); }
.search-item:hover { color: var(--ink); }
.search-item.is-active { background: var(--blue-50); }
.search-item > .ic { width: 16px; height: 16px; flex: none; color: var(--muted); opacity: 0; }
.search-item.is-active > .ic { opacity: 1; }
.search-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c-icon-bg); color: var(--c-icon); }
.search-icon .ic { width: 17px; height: 17px; }
.search-text { flex: 1; min-width: 0; }
.search-text strong { display: block; font-size: .95rem; font-weight: 600; }
.search-text small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8rem; color: var(--muted-strong); }
.search-tag { flex: none; padding: .15rem .5rem; border-radius: 999px; background: var(--c-badge-bg); color: var(--c-badge-text); font-style: normal; font-size: .72rem; font-weight: 700; }
.search-empty { padding: 1.6rem 1rem; text-align: center; color: var(--muted-strong); }
.search-foot { display: flex; gap: 1.1rem; padding: .6rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .78rem; color: var(--muted-strong); }
.search-foot kbd { display: inline-block; min-width: 1.4rem; margin-right: .2rem; padding: 0 .3rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--c-card-bg); font: 600 .72rem/1.5 var(--font-body); text-align: center; }
body.search-open { overflow: hidden; }

/* ===== Dark mode (header moon/sun button; the choice is stored in this browser) ===== */
html[data-theme="dark"] {
    color-scheme: dark;
    --navy: #E9EEFB;              /* headings; dark panels below use fixed navy colours */
    --ink: #E9EEFB;
    --body: #B4C0D8;
    --muted: #8C9AB5;
    --muted-strong: #A4B0C8;
    --line: #253456;
    --surface: #0B1530;
    --surface-2: #101C3A;
    --blue-50: #111D3B;
    --blue-100: #1A2850;
    --blue-200: #2D3F74;
    --purple-100: #231C47;
    --purple-200: #4A3A86;
    --purple-600: #CDB6FF;
    --teal-100: #0E302E;
    --teal-700: #6FD9CB;
    --orange-100: #3B2B12;
    --orange-700: #F5B544;
    --grad-text: linear-gradient(90deg, #8FA9FF 0%, #C9B2FF 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 4px 10px -6px rgba(0, 0, 0, .4);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 12px 24px -12px rgba(0, 0, 0, .5);
    --c-card-bg: #111D3B;
    --c-card-title: #EEF2FF;
    --c-card-text: #B4C0D8;
    --c-link: #8FA9FF;
    --c-link-hover: #C9B2FF;
    --c-icon: #8FA9FF;
    --c-icon-bg: #1A2850;
    --c-badge-bg: #2A2150;
    --c-badge-text: #D6C7FF;
    --c-label: #E9EEFB;
    --c-input-border: #34466F;
    --c-focus: #8FA9FF;
    --c-focus-ring: rgba(143, 169, 255, .25);
    --c-success-bg: #0E302E;
    --c-success-text: #7FE0D3;
    --c-success-border: #1C5B54;
    --c-error-bg: #3A1618;
    --c-error-text: #FFB4B4;
    --c-error-border: #6B2A2D;
    --c-topbar-bg: #0A1229;
    --c-header-bg: #0D1833;
    --c-nav-text: #DCE3F5;
    --c-nav-hover: #D6C7FF;
    --c-nav-hover-bg: #211B45;
    --c-nav-active: #8FA9FF;
    --c-footer-bg: #070E22;
    --c-btn2-bg: transparent;
    --c-btn2-text: #9DB4FF;
    --c-btn2-border: #5C82F2;
}
html[data-theme="dark"] .site-header { border-bottom-color: var(--line); }
html[data-theme="dark"] .hero { background: radial-gradient(700px 380px at 90% 10%, rgba(117, 69, 214, .28), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(40, 85, 217, .18), transparent 70%), linear-gradient(180deg, #0F1B3B 0%, #0B1530 100%); }
html[data-theme="dark"] .page-hero { background: radial-gradient(520px 260px at 10% 0%, rgba(40, 85, 217, .3), transparent 70%), radial-gradient(560px 280px at 92% 100%, rgba(117, 69, 214, .28), transparent 70%), linear-gradient(180deg, #0F1B3B, #0B1530); }
html[data-theme="dark"] .module-hero { background: radial-gradient(520px 280px at 95% 10%, rgba(117, 69, 214, .25), transparent 70%), linear-gradient(180deg, #0F1B3B, #0B1530); }
html[data-theme="dark"] .section-tint { background: linear-gradient(180deg, var(--blue-50), var(--surface)); }
html[data-theme="dark"] :is(.mega, .dropdown, .drawer, .drawer-close, .hamburger, .hero-points li, .chip, .media-badge, .site-cta, .notfound-path, .btn-ghost, .btn-secondary:not(.btn), .mobile-bar, .callout-list li) { background: var(--c-card-bg); }
html[data-theme="dark"] :is(.field input, .field select, .field textarea, input.form-control, select, textarea) { background: #0E1936; color: var(--ink); }
html[data-theme="dark"] :is(.text-blue, .text-strong-blue) { color: #8FA9FF; }
html[data-theme="dark"] .text-purple { color: #C9B2FF; }
html[data-theme="dark"] .text-teal { color: #6FD9CB; }
html[data-theme="dark"] .eyebrow { color: #D6C7FF; }
html[data-theme="dark"] .eyebrow-light { background: rgba(255, 255, 255, .06); border-color: var(--purple-200); }
html[data-theme="dark"] .eyebrow-teal { color: #6FD9CB; }
html[data-theme="dark"] :is(.icon-tile.t-operations, .icon-tile.tile-navy) { background: #1E2A4A; color: #C7D2EE; }
html[data-theme="dark"] :is(.icon-tile.t-attendance, .icon-tile.tile-purple, .mega-title, .mega-title .ic, .legend-title, .faq summary .ic) { color: #C9B2FF; }
html[data-theme="dark"] :is(.icon-tile.t-communication, .icon-tile.tile-teal) { color: #6FD9CB; }
html[data-theme="dark"] .dropdown-icon { background: var(--blue-100); color: #8FA9FF; }
html[data-theme="dark"] .mega-ic { color: #8FA9FF; }
html[data-theme="dark"] .g-attendance .mega-ic { color: #C9B2FF; }
html[data-theme="dark"] .g-communication .mega-ic { color: #6FD9CB; }
html[data-theme="dark"] .g-operations .mega-ic { background: #1E2A4A; color: #C7D2EE; }
html[data-theme="dark"] .g-platform .mega-ic { background: #2A2150; color: #D6C7FF; }
html[data-theme="dark"] .mega-links a:hover .mega-ic { color: #fff; }
html[data-theme="dark"] .dropdown-item:hover strong, html[data-theme="dark"] .faq details[open] summary, html[data-theme="dark"] .faq summary:hover { color: #8FA9FF; }
html[data-theme="dark"] .contact-card a strong { color: #8FA9FF; }
html[data-theme="dark"] .contact-card.accent-teal a strong { color: #6FD9CB; }
html[data-theme="dark"] .compare thead th { background: #1E3770; }
html[data-theme="dark"] .compare .no { color: #4B5878; }
html[data-theme="dark"] .cta-band { background: radial-gradient(520px 260px at 100% 0%, rgba(117, 69, 214, .55), transparent 70%), linear-gradient(120deg, #14264E 0%, #2855D9 70%, #7545D6 130%); }
html[data-theme="dark"] .article-cta { background: linear-gradient(135deg, #1A2B5C, #23205A); }
html[data-theme="dark"] .skip-link { background: #14264E; }
html[data-theme="dark"] .btn-light { color: #14264E; }
html[data-theme="dark"] .hamburger span { background: var(--ink); }
html[data-theme="dark"] .post-card-media { background: linear-gradient(135deg, #16244A, #2A1F55); }
html[data-theme="dark"] .prose blockquote { color: var(--ink); }
html[data-theme="dark"] .lang-list button.is-current { color: #B9C8FF; }
html[data-theme="dark"] img.brand-logo, html[data-theme="dark"] .drawer-logo { background: #fff; border-radius: 10px; padding: 4px 8px; }
/* App screens and illustrations stay light, like real screenshots */
html[data-theme="dark"] :is(.browser, .laptop, .phone, .scr, .app-phone, .receipt, .idcard, .report, .bubble, .callout, .notif, .swm-hero, .site-shot) {
    --navy: #14264E; --ink: #172554; --body: #52627A; --muted: #718096; --muted-strong: #5F6F8C; --line: #E3E8F4;
    --surface: #FFFFFF; --surface-2: #F4F7FF; --blue-50: #F4F7FF; --blue-100: #E9EFFF; --blue-200: #CCD9FF;
    --purple-100: #F1EBFF; --purple-200: #DCCDFB; --purple-600: #6236BE; --teal-100: #E1F6F3; --teal-700: #08695F;
    --orange-100: #FFF4DC; --orange-700: #B45309;
    --c-card-bg: #FFFFFF; --c-card-title: #14264E; --c-card-text: #52627A; --c-link: #2855D9; --c-icon: #2855D9; --c-icon-bg: #E9EFFF;
    --c-badge-bg: #F1EBFF; --c-badge-text: #7545D6;
    color: #52627A;
}
html[data-theme="dark"] .callout { background: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
    /* The menu items no longer fit on one line: use the mobile menu, keep the demo button */
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .topbar .hide-md { display: none; }
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
    .main-nav, .header-cta .btn { display: none; }
    .hamburger { display: flex; }
    .hero-inner, .split { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: 0; }
    .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band .btn-row { justify-content: flex-start; }
}
@media (max-width: 860px) {
    .topbar .hide-md, .topbar .hide-sm { display: none; }
    .grid-3, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cta-inner { flex-direction: column; align-items: flex-start; }
    .module-visual .callout { display: none; }
    .callout-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
    .callout-list li { display: flex; gap: .55rem; align-items: center; font-weight: 700; color: var(--ink); font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; }
    .callout-list b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; }
}
@media (max-width: 720px) {
    body { padding-bottom: 64px; }
    .topbar-contact .hide-sm { display: none; }
    /* Banner decorations would overlap the heading and intro on narrow screens */
    .deco-pencil, .deco-dots { display: none; }
    .topbar-contact li:first-child span { display: none; }
    .topbar-inner { min-height: 52px; gap: .5rem; }
    /* Compact labels on phones; the full name stays in aria-label */
    .tb-full { display: none; }
    .tb-short { display: inline; }
    .tb-btn { min-height: 36px; padding: 0 .8rem; font-size: .78rem; }
    .brand-logo { height: 38px; }
    :root { --header-h: 62px; }
    .grid-2, .grid-3, .grid-4, .related-grid, .addons, .plans, .login-choice, .site-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .checklist.two-col, .alert-list { grid-template-columns: 1fr; }
    .hero-visual { min-height: 0; padding-bottom: 1rem; }
    .hero-visual .browser { margin-right: 0; }
    .hero-visual .phone { display: none; }
    .hero-visual .notif-1 { left: 8px; bottom: -18px; }
    .hero-visual .notif-2 { right: 8px; top: -18px; }
    /* Compact, icon-left module cards keep long module lists short on phones */
    .module-card { display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; align-items: start; padding: 1.1rem; }
    .module-card .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 3; }
    .module-card .icon-tile .ic { width: 22px; height: 22px; }
    .module-card h3, .module-card h2 { margin-bottom: .25rem; font-size: 1.02rem !important; }
    .module-card p { font-size: .9rem; }
    .module-card .link-arrow { display: none; }
    .module-card .checklist { grid-column: 2; margin-top: .6rem !important; font-size: .9rem; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .dash { grid-template-columns: 40px 1fr; }
    .dash-row { grid-template-columns: 1fr; }
    .dash-row .panel:last-child { display: none; }
    .app-visual .phone:nth-child(2) { display: none; }
    .photo-stack { padding: 0; }
    .photo-stack .photo + .photo { display: none; }
    .media-badge { right: 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
    .fab-stack { bottom: 78px; right: 14px; }
    .fab-whatsapp { display: none; }
    .fab { width: 46px; height: 46px; }
    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1.2fr 1fr;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 850;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px -12px rgba(20, 38, 78, .3);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; font-size: .74rem; font-weight: 700; color: var(--ink); }
    .mobile-bar a .ic { width: 22px; height: 22px; color: var(--blue); }
    .mobile-bar a:last-child .ic { color: var(--c-whatsapp); }
    .mobile-bar .mobile-bar-main { background: var(--c-demo-bg); color: #fff; }
    .mobile-bar .mobile-bar-main .ic { color: #fff; }
    .cta-band .btn, .page-hero .btn, .hero .btn-row .btn { flex: 1 1 100%; }
    .section-head { text-align: left; }
    .section-head.text-center, .page-hero .section-head { text-align: center; }
}
@media (max-width: 1100px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-featured { display: none; }
}
@media (max-width: 720px) {
    .header-cta { gap: .45rem; }
    .lang-code { display: none; }
    .tool-btn { padding: 0; }
    .lang-menu { position: fixed; top: 120px; right: 12px; left: 12px; width: auto; }
}
@media (max-width: 480px) {
    .header-inner { gap: .6rem; }
    .brand-logo { height: 32px; }
    .header-tools { gap: .25rem; }
    .tool-btn { height: 36px; min-width: 36px; }
    .tool-btn .ic { width: 17px; height: 17px; }
    .hamburger { width: 40px; height: 40px; padding: 0 10px; }
    .search-modal { padding-top: .75rem; }
    .search-foot { display: none; }
    .search-head input { font-size: 16px; }   /* stops iOS zooming in */
}
@media (max-width: 420px) {
    .container { padding-inline: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .tb-btn { padding: 0 .65rem; }
    .drawer-logins { grid-template-columns: 1fr; }
    .callout-list { grid-template-columns: 1fr; }
    .phone { width: 190px; }
}
/* Mobile App / Clients pages on smaller screens */
@media (max-width: 1024px) {
    .app-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
    .app-hero-visual { min-height: 0; padding-block: 1rem 2rem; }
}
@media (max-width: 720px) {
    .app-hero-visual { justify-content: center; }
    .app-hero-visual .app-phone-back { display: none; }
    .app-hero-visual .app-phone-front { margin-left: 0; width: 220px; }
    .app-hero-visual .notif-1 { left: 0; bottom: 8px; }
    .app-hero-visual .notif-2 { right: 0; top: 0; }
    .app-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: .5rem 0 1rem; margin-inline: -16px; padding-inline: 16px; }
    .app-shot { scroll-snap-align: center; flex: 0 0 72%; }
    .app-visual .app-phone + .app-phone { display: none; }
    .app-hero .btn-row .btn, .app-hero .play-badge { flex: 1 1 100%; justify-content: center; }
    .cta-band .play-badge { flex: 1 1 100%; justify-content: center; }
    .client-grid { gap: .8rem; }
    .client-grid > .client-card { flex-basis: calc(50% - .4rem); }
    .client-card { padding: 1.1rem .8rem; }
    .client-logo { width: 96px; height: 96px; }
    .clients-strip-list { gap: .8rem 1.4rem; }
    .clients-strip-list img { width: 44px; height: 44px; }
    .clients-strip-list li { font-size: .9rem; }
}
@media (max-width: 360px) {
    .topbar .tb-btn .ic { display: none; }
}
@media print {
    .topbar, .site-header, .drawer, .fab-stack, .mobile-bar, .footer-cta { display: none !important; }
}
