/*
 * Warmer, more human look for the PUBLIC website only (company site and school portal pages).
 * Loaded by siteHumanHead() (php/includes/site-images.php) and active under <body class="site-human">,
 * so the logged-in app, which shares assets/css/style.css, is never affected.
 * Design language: soft lilac-to-peach backgrounds, real photos in rounded frames with floating badges,
 * Jost headings with DM Sans text, navy ink, a coral accent beside the brand colour, small hand-drawn doodles.
 */

.site-human {
    --ink: #0b104a;
    --ink-soft: #4a5072;
    --accent: #f26b65;
    --accent-soft: #ffe9e7;
    --soft-1: #eef0ff;
    --soft-2: #fff1ea;
    --line: #ececf6;
    --radius-lg: 24px;
    --shadow-soft: 0 18px 50px -24px rgba(11, 16, 74, .25);
    --font-head: 'Jost', 'DM Sans', system-ui, sans-serif;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink-soft);
    background: #fff;
}
.site-human h1, .site-human h2, .site-human h3, .site-human h4,
.site-human .pub-title, .site-human .pub-h2 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.01em; }

/* ---------- Menu ---------- */
.site-human .landing-navbar .brand-text,
.site-human .landing-navbar .nav-link,
.site-human .landing-navbar .pn-signin,
.site-human .landing-navbar .btn-primary { font-family: var(--font-head); }
.site-human .landing-navbar .brand-text { font-weight: 700; color: var(--ink); }
.site-human .landing-navbar .nav-link { font-weight: 500; letter-spacing: .01em; }
@media (min-width: 992px) {
    .site-human .landing-navbar { background: rgba(255, 255, 255, .8); }
    .site-human .landing-navbar .navbar-nav { background: transparent; border-color: transparent; }
    .site-human .landing-navbar .nav-link { color: var(--ink); }
    .site-human .landing-navbar .nav-link.active { color: var(--primary, #4F46E5); background: color-mix(in srgb, var(--primary, #4F46E5) 9%, #fff); box-shadow: none; }
    .site-human .landing-navbar .pn-signin { color: var(--ink); padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); }
    .site-human .landing-navbar .pn-signin:hover { border-color: var(--primary, #4F46E5); }
}

/* ---------- Buttons, labels, headings ---------- */
.site-human .pub-btn { font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; border-radius: 12px; padding: .8rem 1.4rem; }
.site-human .pub-btn-light { border-color: var(--line); color: var(--ink); }
.site-human .pub-btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.site-human .pub-btn-accent:hover { color: #fff; filter: brightness(.96); }
.site-human .pub-pill,
.site-human .pub-eyebrow,
.site-human .hx-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px;
    background: var(--accent-soft); border: 0; box-shadow: none; color: var(--accent);
    font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.site-human .pub-pill i { color: var(--accent); }
.site-human .pub-title { font-weight: 700; line-height: 1.08; }
.site-human .pub-accent { /* brand colour with a hand-drawn underline that also follows the text onto a second line */
    -webkit-background-clip: border-box; background-clip: border-box; color: var(--primary, #4F46E5);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11C50 3 120 2 197 8' fill='none' stroke='%23f26b65' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .3em;
    padding-bottom: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.site-human .pub-h2 { font-weight: 700; }
.site-human .pub-sub, .site-human .pub-lead { color: var(--ink-soft); }

/* ---------- Sections ---------- */
.site-human .pub-hero,
.site-human .co-hero {
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--primary, #4F46E5) 16%, transparent), transparent 70%),
        radial-gradient(50% 60% at 10% 90%, var(--soft-2), transparent 70%),
        linear-gradient(160deg, #fbfaff 0%, var(--soft-1) 45%, var(--soft-2) 100%);
    border-bottom: 0;
}
.site-human .pub-hero-bg { display: none; }
.site-human .pub-section.alt,
.site-human .co-section.alt { background: linear-gradient(180deg, #fafaff, #fff7f3); border: 0; }

/* ---------- Cards ---------- */
.site-human .pub-card,
.site-human .co-card,
.site-human .co-product,
.site-human .co-folio { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(11, 16, 74, .18); }
.site-human .pub-card:hover,
.site-human .co-card:hover,
.site-human .co-product:hover,
.site-human .co-folio:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.site-human .pub-card h3, .site-human .co-card h3, .site-human .co-product h3 { font-family: var(--font-head); font-weight: 600; }
.site-human .pub-icon, .site-human .co-card .ic { border-radius: 50%; }
.site-human .co-card:nth-child(n) .ic { transition: transform .25s; }
.site-human .co-card:hover .ic, .site-human .pub-card:hover .pub-icon { transform: rotate(-8deg) scale(1.06); }

/* Photo-topped card (like a course card): .hx-photo-card > .hx-photo + .hx-photo-card-body */
.hx-photo-card { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(11, 16, 74, .18); transition: transform .25s, box-shadow .25s; }
.hx-photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.hx-photo-card > .hx-photo { border-radius: 0; }
.hx-photo-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.hx-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .3rem .75rem; border-radius: 8px; background: var(--primary, #4F46E5); color: #fff; font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .03em; }

/* ---------- Photo slots (siteImage) ---------- */
.hx-photo { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--soft-1), var(--soft-2)); }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-photo.is-empty { display: grid; place-items: center; color: color-mix(in srgb, var(--primary, #4F46E5) 45%, #fff); }
.hx-photo.is-empty > i { font-size: clamp(2.5rem, 7vw, 4.5rem); opacity: .85; }
.hx-photo.is-empty::before { /* soft shapes so an empty slot still looks designed */
    content: ''; position: absolute; width: 55%; aspect-ratio: 1; right: -12%; top: -10%; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.hx-photo.is-empty::after { content: ''; position: absolute; width: 40%; aspect-ratio: 1; left: -8%; bottom: -8%; border-radius: 50%; background: color-mix(in srgb, var(--primary, #4F46E5) 12%, transparent); }
.hx-slot { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 2; padding: .35rem .6rem; border-radius: 8px; background: rgba(11, 16, 74, .78); color: #fff; font-size: .72rem; font-family: ui-monospace, Consolas, monospace; text-align: center; overflow-wrap: anywhere; }

/* ---------- Hero with a photo: .hx-hero-media holds the blob, photo, badges and doodles ---------- */
.hx-hero-media { position: relative; max-width: 470px; margin: 0 auto; padding: 1.5rem 1.5rem 2rem; }
.hx-hero-media::before { /* the coloured blob behind the photo */
    content: ''; position: absolute; inset: 6% 2% 0 8%; z-index: 0;
    background: linear-gradient(160deg, color-mix(in srgb, var(--primary, #4F46E5) 85%, #fff), color-mix(in srgb, var(--primary, #4F46E5) 55%, var(--accent)));
    border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
    animation: hx-blob 14s ease-in-out infinite alternate;
}
.hx-hero-media .hx-photo { position: relative; z-index: 1; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(11, 16, 74, .45); border: 6px solid #fff; }
@keyframes hx-blob { to { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; transform: rotate(4deg); } }

.hx-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .7rem; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -16px rgba(11, 16, 74, .35); animation: hx-float 5s ease-in-out infinite; max-width: 230px; }
.hx-badge strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.15; }
.hx-badge small { display: block; font-size: .76rem; color: var(--ink-soft); line-height: 1.3; }
.hx-badge-ic { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--primary, #4F46E5); background: color-mix(in srgb, var(--primary, #4F46E5) 11%, #fff); }
.hx-badge.coral .hx-badge-ic { color: var(--accent); background: var(--accent-soft); }
.hx-badge.green .hx-badge-ic { color: #16a34a; background: #dcfce7; }
.hx-badge.b-tl { top: 14%; left: -8%; }
.hx-badge.b-br { bottom: 10%; right: -6%; animation-delay: -2.5s; }
.hx-badge.b-ml { bottom: 30%; left: -12%; animation-delay: -1.2s; }
@keyframes hx-float { 50% { transform: translateY(-8px); } }

/* ---------- Doodles (siteDoodle) ---------- */
.hx-doodle { position: absolute; z-index: 2; pointer-events: none; display: block; }
.hx-doodle svg { width: 100%; height: auto; display: block; }
.hx-doodle-squiggle { width: 92px; color: var(--accent); }
.hx-doodle-sparkle { width: 38px; color: #f5b638; }
.hx-doodle-ring { width: 34px; color: color-mix(in srgb, var(--primary, #4F46E5) 55%, #fff); }
.hx-doodle-dots { width: 64px; color: color-mix(in srgb, var(--primary, #4F46E5) 30%, #fff); }
.hx-doodle-arrow { width: 86px; color: var(--ink); opacity: .55; }
.hx-d-tl { top: -2%; left: 2%; } .hx-d-tr { top: 0; right: 4%; } .hx-d-bl { bottom: 2%; left: -2%; } .hx-d-br { bottom: -2%; right: 2%; }
.hx-d-hero-a { top: 10%; left: 46%; } .hx-d-hero-b { bottom: 6%; left: 44%; } .hx-d-hero-c { top: 18%; right: 6%; }

/* ---------- Big numbers strip: <span data-count="120" data-suffix="+"> ---------- */
.hx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.hx-stat { display: flex; align-items: center; gap: .9rem; padding: .4rem .6rem; }
.hx-stat + .hx-stat { border-left: 1px dashed var(--line); }
.hx-stat .ic { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; color: var(--primary, #4F46E5); background: color-mix(in srgb, var(--primary, #4F46E5) 10%, #fff); }
.hx-stat:nth-child(2) .ic { color: var(--accent); background: var(--accent-soft); }
.hx-stat:nth-child(3) .ic { color: #16a34a; background: #dcfce7; }
.hx-stat:nth-child(4) .ic { color: #d97706; background: #fef3c7; }
.hx-stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hx-stat small { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Photo + text feature row: .hx-split (add .flip to swap sides) ---------- */
.hx-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hx-split.flip > :first-child { order: 2; }
.hx-split-media { position: relative; }
.hx-split-media .hx-photo { box-shadow: var(--shadow-soft); }
.hx-split-media .hx-badge { bottom: -1.2rem; right: -1rem; top: auto; left: auto; }
.hx-checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.hx-checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.hx-checks li i { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--accent); margin-top: .1rem; }

/* ---------- Testimonials ---------- */
.hx-quote { position: relative; height: 100%; padding: 1.8rem 1.6rem 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(11, 16, 74, .18); }
.hx-quote::before { content: '\201C'; position: absolute; top: .2rem; right: 1.2rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--accent-soft); }
.hx-quote p { position: relative; color: var(--ink); font-size: 1rem; line-height: 1.7; margin-bottom: 1.2rem; }
.hx-quote-who { display: flex; align-items: center; gap: .8rem; }
.hx-quote-who .hx-photo { width: 52px; flex: 0 0 52px; border-radius: 50%; }
.hx-quote-who .hx-photo.is-empty > i { font-size: 1.2rem; }
.hx-quote-who .hx-photo.is-empty::before, .hx-quote-who .hx-photo.is-empty::after { display: none; }
.hx-quote-who strong { display: block; font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.hx-quote-who small { color: var(--ink-soft); }
.hx-stars { color: #f5b638; font-size: .8rem; margin-bottom: .7rem; letter-spacing: 2px; }

/* ---------- Call-to-action bands ---------- */
.site-human .pp-cta,
.site-human .co-cta,
.hx-cta {
    position: relative; overflow: hidden; border-radius: 32px;
    background: linear-gradient(120deg, var(--ink) 0%, color-mix(in srgb, var(--primary, #4F46E5) 80%, var(--ink)) 60%, var(--primary, #4F46E5) 100%);
}
.site-human .pp-cta::before, .site-human .co-cta::before, .hx-cta::before {
    content: ''; position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%; right: -60px; top: -90px;
    border: 40px solid color-mix(in srgb, var(--accent) 60%, transparent); opacity: .5;
}
.site-human .pp-cta::after, .site-human .co-cta::after, .hx-cta::after {
    content: ''; position: absolute; width: 140px; height: 140px; left: 4%; bottom: -40px; opacity: .35;
    background: radial-gradient(circle, #fff 2.5px, transparent 3px) 0 0 / 18px 18px;
}
.site-human .pp-cta > *, .site-human .co-cta > *, .hx-cta > * { position: relative; z-index: 1; }
.site-human .pp-cta h2, .site-human .co-cta h2 { font-family: var(--font-head); font-weight: 700; color: #fff; }

/* ---------- School portal page (esms.php: hm-*) ---------- */
.site-human .hm-hero {
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--primary, #4F46E5) 16%, transparent), transparent 70%),
        radial-gradient(50% 60% at 10% 90%, var(--soft-2), transparent 70%),
        linear-gradient(160deg, #fbfaff 0%, var(--soft-1) 45%, var(--soft-2) 100%);
}
.site-human .hm-section.alt { background: linear-gradient(180deg, #fafaff, #fff7f3); border: 0; }
.site-human .hm-checks i { background: var(--accent); }
.site-human .hm-feat,
.site-human .hm-quote { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(11, 16, 74, .18); }
.site-human .hm-feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.site-human .hm-feat h3 { font-family: var(--font-head); font-weight: 600; }
.site-human .hm-feat .ic { border-radius: 50%; }
.site-human .hm-quote { position: relative; }
.site-human .hm-quote::before { content: '\201C'; position: absolute; top: .2rem; right: 1.2rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--accent-soft); }
.site-human .hm-quote p { position: relative; color: var(--ink); }
.site-human .hm-dark { background: var(--ink); }
.site-human .hm-cta { background: linear-gradient(120deg, var(--ink) 0%, color-mix(in srgb, var(--primary, #4F46E5) 80%, var(--ink)) 60%, var(--primary, #4F46E5) 100%); border-radius: 32px; }
.site-human .hm-cta h2 { font-family: var(--font-head); font-weight: 700; }
.site-human .hm-cta .pub-btn-primary { background: var(--accent); color: #fff; }
/* "Built for everyone": a photo of each kind of user above their card */
.hm-role-card .hx-photo-card-body { padding: 1.1rem 1.25rem 1.3rem; }
.hm-role-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.hm-role-card p { font-size: .9rem; margin: 0; color: var(--ink-soft); }

/* ---------- Pricing page (pricing.php: pr-*) ---------- */
.site-human .pr-plan { border-radius: var(--radius-lg); border-color: var(--line); }
.site-human .pr-name, .site-human .pr-amt, .site-human .pr-cur { font-family: var(--font-head); color: var(--ink); }
.site-human .pr-name { font-weight: 600; }
.site-human .pr-amt { font-weight: 700; }
.site-human .pr-ribbon { background: var(--accent); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.site-human .pr-plan.featured { border-color: var(--accent); box-shadow: 0 28px 60px -22px color-mix(in srgb, var(--accent) 45%, transparent); }
.site-human .pr-plan.featured .pr-feats li i { color: var(--accent); background: var(--accent-soft); }
.site-human .pr-ic { border-radius: 50%; }
.site-human .pr-trust li { border-color: var(--line); font-family: var(--font-head); font-weight: 500; }
.site-human .pr-help { background: var(--ink); border-radius: var(--radius-lg); }
.site-human .pr-faq details { border-radius: 16px; border-color: var(--line); }
.site-human .pr-faq summary { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* ---------- About and contact pages ---------- */
.site-human .ab-tile, .site-human .help-hero { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: var(--shadow-soft); }
.site-human .help-hero-title { font-family: var(--font-head); color: var(--ink); }
.site-human .pub-field input, .site-human .pub-field textarea { border-radius: 14px; border-color: var(--line); }

/* ---------- Sign-in and password pages (pages/login.php, pages/forgot-password.php: body.site-auth) ---------- */
.site-auth .login-bg {
    background:
        radial-gradient(55% 60% at 90% 10%, color-mix(in srgb, var(--primary, #4F46E5) 16%, transparent), transparent 70%),
        radial-gradient(50% 55% at 5% 95%, var(--soft-2), transparent 70%),
        linear-gradient(160deg, #fbfaff 0%, var(--soft-1) 50%, var(--soft-2) 100%);
}
.site-auth .login-bg::before, .site-auth .login-bg::after, .site-auth .login-bg-blob3 { opacity: .55; }
.site-auth .login-card { border-radius: 28px; background: rgba(255, 255, 255, .88); border-color: #fff; box-shadow: 0 30px 70px -36px rgba(11, 16, 74, .35); }
.site-auth .login-card-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.7rem; }
.site-auth .login-card-subtitle { color: var(--ink-soft); }
.site-auth .login-btn { border-radius: 14px; font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
.site-auth .form-floating-group input { border-radius: 14px; border-color: var(--line); }
.site-auth .ap .ap-title { font-family: var(--font-head); font-weight: 700; color: #fff; } /* the panel is dark */
.site-auth .ap-card { border-radius: 18px; }
.site-auth .ap-photo { position: relative; width: min(300px, 80%); margin: 1.75rem auto 0; }
.site-auth .ap-photo .hx-photo { aspect-ratio: 1 / 1 !important; border-radius: 150px 150px var(--radius-lg) var(--radius-lg) !important; border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -30px rgba(11, 16, 74, .6); }
.site-auth .ap-photo .hx-badge { right: -18%; bottom: 8%; }

/* ---------- Footer ---------- */
.site-human .site-footer { background: var(--ink); }
.site-human .site-footer::before { content: ''; position: absolute; width: 380px; aspect-ratio: 1; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary, #4F46E5) 45%, transparent), transparent 70%); pointer-events: none; }
.site-human .sf-logo, .site-human .sf-title { font-family: var(--font-head); }
.site-human .sf-social .social-link { border-radius: 50%; }
.site-human .sf-btn { border-radius: 12px; font-family: var(--font-head); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 991.98px) {
    .hx-split { grid-template-columns: 1fr; }
    .hx-split.flip > :first-child { order: 0; }
    .hx-hero-media { max-width: 400px; margin-top: 1rem; }
    .hx-badge.b-tl { left: -2%; } .hx-badge.b-br { right: -2%; } .hx-badge.b-ml { left: -4%; }
}
@media (max-width: 575.98px) {
    .hx-doodle { display: none; }
    .hx-hero-media { padding: 1rem .5rem 1.5rem; }
    .hx-badge { padding: .5rem .75rem .5rem .5rem; gap: .5rem; max-width: 190px; }
    .hx-badge-ic { flex-basis: 34px; height: 34px; border-radius: 10px; font-size: .85rem; }
    .hx-badge strong { font-size: .88rem; } .hx-badge small { font-size: .7rem; }
    .hx-badge.b-ml { left: -2%; bottom: 36%; }
    .hx-stat + .hx-stat { border-left: 0; border-top: 1px dashed var(--line); padding-top: .9rem; }
    .site-human .pp-cta, .site-human .co-cta, .hx-cta { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-hero-media::before, .hx-badge { animation: none; }
}
