/* ==========================================================================
   Springtower Computer Institute — Public site stylesheet
   Fonts: Bricolage Grotesque (display) + Outfit (body)
   Brand: institutional green
   ========================================================================== */

:root {
    /* Neutrals */
    --ink:         #0d120f;
    --ink-2:       #2a2f2c;
    --muted:       #5c655e;
    --muted-2:     #8a938c;
    --line:        #e6e8e2;
    --line-2:      #eff1ec;
    --bg:          #fbfbf7;
    --bg-2:        #f3f4ee;
    --surface:     #ffffff;

    /* Brand green — institutional */
    --brand-50:    #eef8f1;
    --brand-100:   #d7f0de;
    --brand-200:   #a7dcb5;
    --brand-400:   #3ea35f;
    --brand:       #137a3a;
    --brand-600:   #0e6430;
    --brand-700:   #0a4d24;
    --brand-900:   #062e15;

    /* Accents (used sparingly) */
    --amber:       #c2761a;
    --amber-bg:    #fdf3e2;
    --red:         #b91c1c;
    --red-bg:      #fde8e8;
    --blue:        #1d4ed8;

    /* Radii */
    --r-xs:   6px;
    --r-sm:   10px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-full: 999px;

    /* Typography */
    --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body:    'Outfit', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(13,18,15,.04), 0 1px 3px rgba(13,18,15,.05);
    --shadow-md: 0 4px 14px rgba(13,18,15,.06), 0 2px 4px rgba(13,18,15,.04);
    --shadow-lg: 0 20px 48px rgba(13,18,15,.08), 0 4px 10px rgba(13,18,15,.04);
    --shadow-xl: 0 28px 70px rgba(13,18,15,.10), 0 8px 20px rgba(13,18,15,.05);

    /* Container */
    --container: 1200px;

    /* Motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset / base --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--ink-2); }
a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
code { font-family: 'SFMono-Regular', ui-monospace, monospace; font-size: 0.9em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* --- Layout helpers ------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}
@media (max-width: 768px) { .section { padding: 64px 0; } }

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
    padding: 6px 12px;
    background: var(--brand-50);
    border-radius: var(--r-full);
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.55;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--r-full);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .18s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(19,122,58,.25);
}
.btn-primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(19,122,58,.3);
}
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--ink);
    color: var(--ink);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

/* --- Header / nav --------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 247, 0.85);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-header .brand .brand-logo {
    height: 38px;
    width: auto;
}
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    transition: all .15s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links .nav-cta {
    margin-left: 8px;
    background: var(--ink);
    color: white;
    padding: 10px 20px;
    border-radius: var(--r-full);
}
.nav-links .nav-cta:hover { background: var(--brand); color: white; }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    color: var(--ink);
    transition: background .15s;
}
.nav-toggle:hover { background: var(--bg-2); }
.nav-toggle.open svg .top    { transform: translateY(6px) rotate(45deg); transform-origin: center; }
.nav-toggle.open svg .middle { opacity: 0; }
.nav-toggle.open svg .bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: center; }
.nav-toggle svg line { transition: transform .25s, opacity .15s; }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
}

/* --- Alerts --------------------------------------------------------------- */

.alert {
    padding: 14px 18px;
    border-radius: var(--r-md);
    margin: 24px 0;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert-success { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.alert-error   { background: var(--red-bg); color: var(--red); border-color: #f5c6c6; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 80px 0 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, var(--brand-50), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 90%, #f1ecdc, transparent 60%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero { padding: 48px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.hero-meta {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 600; display: block; font-size: 1.25rem; font-family: var(--font-display); }

/* Hero visual — floating service chips */
.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 480px;
    margin-left: auto;
}
.hero-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}
.hero-card svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--brand); }
.hero-card strong { display: block; font-weight: 600; font-size: 0.95rem; }
.hero-card small { color: var(--muted); }
.hero-card-1 { top: 8%; left: 0%; }
.hero-card-2 { top: 38%; right: 0%; background: var(--brand); color: white; border-color: var(--brand); }
.hero-card-2 svg, .hero-card-2 strong { color: white; }
.hero-card-2 small { color: var(--brand-100); }
.hero-card-3 { bottom: 6%; left: 12%; }
.hero-orb {
    position: absolute;
    inset: 20% 20%;
    background: radial-gradient(circle, var(--brand-100) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

/* --- Trust strip ---------------------------------------------------------- */

.trust-strip {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.trust-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.trust-item svg { color: var(--brand); width: 22px; height: 22px; }

/* --- Services grid -------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: all .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, var(--brand), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s var(--ease);
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--brand-50);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand);
}
.service-link::after {
    content: '→';
    transition: transform .2s var(--ease);
}
.service-card:hover .service-link::after { transform: translateX(4px); }

/* --- Split section (CBT preview) ------------------------------------------ */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.split.reversed > :first-child { order: 2; }
@media (max-width: 900px) { .split.reversed > :first-child { order: initial; } }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.feature-list li {
    padding: 12px 0 12px 36px;
    position: relative;
    border-bottom: 1px solid var(--line-2);
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--brand-100);
    color: var(--brand-700);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Mock CBT interface */
.cbt-mock {
    background: linear-gradient(135deg, var(--ink) 0%, #1a2220 100%);
    color: white;
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.cbt-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.cbt-mock-timer {
    background: var(--brand);
    color: white;
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.cbt-mock-q { font-size: 0.95rem; line-height: 1.55; margin-bottom: 20px; color: #e5e7e3; }
.cbt-mock-options { display: grid; gap: 10px; margin-bottom: 24px; }
.cbt-mock-option {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    display: flex;
    gap: 12px;
    align-items: center;
}
.cbt-mock-option .letter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.cbt-mock-option.selected { background: var(--brand); border-color: var(--brand); }
.cbt-mock-option.selected .letter { background: rgba(255,255,255,.2); }
.cbt-mock-nav {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-top: 16px;
}
.cbt-mock-nav span {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
}
.cbt-mock-nav span.done { background: var(--brand-400); color: white; }
.cbt-mock-nav span.current { background: var(--brand); color: white; box-shadow: 0 0 0 2px rgba(62,163,95,.4); }
.cbt-mock-nav span.flag { background: var(--amber); color: white; }

/* --- Testimonials --------------------------------------------------------- */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.testimonial {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    position: relative;
}
.testimonial-body { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-400));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-display);
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { color: var(--muted); font-size: 0.85rem; }

/* --- CTA band ------------------------------------------------------------- */

/* --- CTA split section ---------------------------------------------------- */
.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--ink);
    border-radius: var(--r-xl);
    overflow: hidden;
    min-height: 420px;
}
.cta-split-left {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.cta-split-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 20% 80%, rgba(19,122,58,.22) 0%, transparent 70%);
    pointer-events: none;
}
.cta-split-left > * { position: relative; z-index: 1; }

.cta-exam-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}
.cta-exam-pill {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.05);
    text-transform: uppercase;
}

.cta-split-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 16px;
}
.cta-split-sub {
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 38ch;
}
.cta-split-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-split-actions .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 20px rgba(19,122,58,.4);
}
.cta-split-actions .btn-primary:hover {
    background: #18a84e;
    border-color: #18a84e;
}
.cta-ghost-link {
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
.cta-ghost-link:hover { color: #fff; text-decoration: none; }

/* Right panel */
.cta-split-right {
    border-left: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    gap: 4px;
}
.cta-svc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    text-decoration: none;
    transition: background .18s, border-color .18s;
    cursor: pointer;
}
.cta-svc-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
    text-decoration: none;
}
.cta-svc-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(19,122,58,.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #4eca77;
}
.cta-svc-card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cta-svc-card strong {
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}
.cta-svc-card span {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    line-height: 1.4;
}
.cta-svc-arrow {
    color: rgba(255,255,255,.2);
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}
.cta-svc-card:hover .cta-svc-arrow {
    color: rgba(255,255,255,.5);
    transform: translateX(3px);
}

@media (max-width: 860px) {
    .cta-split { grid-template-columns: 1fr; }
    .cta-split-left { padding: 40px 28px; }
    .cta-split-left::after { display: none; }
    .cta-split-right { border-left: none; border-top: 1px solid rgba(255,255,255,.07); padding: 20px; }
    .cta-split-sub { max-width: none; }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: #b5bab5;
    padding: 72px 0 32px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 32px;
    }
    .footer-brand { margin-bottom: 8px; }
    .footer-tagline { max-width: 480px; }
}
.footer-brand {
    margin-bottom: 16px;
}
.footer-brand .footer-logo {
    height: 36px;
    width: auto;
}
/* Fallback: if logo-dark.png isn't deployed yet, invert the light one */
.footer-brand .footer-logo.is-fallback {
    filter: brightness(0) invert(1);
}

/* ── Logo theme swap (header) ─────────────────────────────────────────── */
.brand-logo.brand-logo-light { display: inline-block; }
.brand-logo.brand-logo-dark  { display: none; }
[data-theme="dark"] .brand-logo.brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo.brand-logo-dark  { display: inline-block; }
/* Same fallback for header dark logo if file missing */
.brand-logo-dark.is-fallback {
    filter: brightness(0) invert(1);
}
.footer-tagline { color: #8a938c; font-size: 0.95rem; max-width: 30ch; }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b5bab5; font-size: 0.9rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #707872;
    font-size: 0.85rem;
}

/* --- Page headers (non-home pages) ---------------------------------------- */

.page-header {
    padding: 80px 0 48px;
    background:
        radial-gradient(ellipse 50% 60% at 80% 30%, var(--brand-50), transparent 60%);
}
.page-header h1 { margin-bottom: 12px; }

/* --- Forms ---------------------------------------------------------------- */

.form {
    display: grid;
    gap: 20px;
    max-width: 520px;
    margin: 32px auto;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink);
    transition: all .15s var(--ease);
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--brand-50);
}
.field .hint { font-size: 0.8rem; color: var(--muted); }

/* --- Cards (generic) ------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* --- Placeholder (sub-pages) ---------------------------------------------- */

.placeholder {
    padding: 80px 0;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.placeholder h2 { margin-bottom: 16px; }
.placeholder p { color: var(--muted); font-size: 1.1rem; }
.placeholder code { margin-top: 20px; display: inline-block; background: var(--bg-2); border: 1px solid var(--line); }

/* --- Auth layout (login/register) ----------------------------------------- */

.auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 48px 24px;
}

/* --- Utility -------------------------------------------------------------- */

.text-center { text-align: center; }
.muted       { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 32px; }
.max-readable { max-width: 65ch; }

/* --- Animations ----------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .fade-up { animation: fadeUp .7s var(--ease) both; }
    .fade-up-2 { animation: fadeUp .7s .1s var(--ease) both; }
    .fade-up-3 { animation: fadeUp .7s .2s var(--ease) both; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SHOP — Scratch Card Store
   ========================================================================== */

/* Page hero (shared for inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
    border-bottom: 1px solid var(--line);
    padding: 64px 0 48px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero .lead { max-width: 560px; margin: 0 auto; }

/* Trust strip */
.trust-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}
.trust-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}
.trust-inner span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.trust-inner svg {
    width: 16px;
    height: 16px;
    color: var(--brand);
    flex-shrink: 0;
}

/* Shop grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.shop-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.shop-card:hover {
    box-shadow: 0 8px 30px rgba(13,18,15,.1);
    transform: translateY(-2px);
}
.shop-card-icon {
    padding: 28px 24px 0;
}
.shop-card-icon svg {
    width: 36px;
    height: 36px;
}
.shop-card-blue   .shop-card-icon { color: #2563eb; }
.shop-card-green  .shop-card-icon { color: var(--brand); }
.shop-card-amber  .shop-card-icon { color: #d97706; }
.shop-card-purple .shop-card-icon { color: #7c3aed; }
.shop-card-teal   .shop-card-icon { color: #0891b2; }

.shop-card-body { padding: 16px 24px; flex: 1; }
.shop-card-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 2px; }
.shop-card-full { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.shop-card-desc { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 8px; line-height: 1.5; }
.shop-card-note { font-size: 0.75rem; color: var(--muted); font-style: italic; }

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.shop-card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}
.shop-card-price span { font-size: 0.75rem; color: var(--muted); font-weight: 400; }

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--r-full);
    transition: background .15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-buy:hover { background: var(--brand-700); text-decoration: none; }

/* How it works */
.how-steps {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.how-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 220px;
    text-align: left;
}
.how-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.how-text strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.how-text p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.how-arrow { font-size: 1.4rem; color: var(--line); padding: 0 4px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 400;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    font-size: 0.875rem;
    color: var(--ink-2);
    padding-bottom: 16px;
    margin: 0;
    line-height: 1.6;
}

/* ---- Checkout ---- */
.page-back-link { margin-bottom: 12px; font-size: 0.85rem; }
.page-back-link a { color: var(--muted); font-weight: 500; }
.page-back-link a:hover { color: var(--brand); }
.page-heading { font-size: 1.8rem; margin-bottom: 24px; }

.form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #b91c1c;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.checkout-section { margin-bottom: 28px; }
.checkout-section h3 { font-size: 1rem; margin-bottom: 14px; }

/* Exam type cards in checkout */
.exam-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex-wrap: wrap;
}
@media (max-width: 700px) { .exam-type-grid { grid-template-columns: 1fr 1fr; } }

.exam-type-card { cursor: pointer; display: block; }
.exam-type-card input[type=radio] { display: none; }
.etc-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    transition: all .13s;
    background: var(--surface);
    text-align: center;
}
.exam-type-card input:checked + .etc-inner {
    border-color: var(--brand);
    background: var(--brand-50);
}
.etc-name  { font-weight: 700; font-size: 1rem; }
.etc-price { font-size: 0.75rem; color: var(--muted); }
.exam-type-card input:checked + .etc-inner .etc-price { color: var(--brand-700); }

/* Quantity row */
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background .13s;
}
.qty-btn:hover { background: var(--bg-2); }
.qty-field {
    width: 64px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 6px 8px;
    color: var(--ink);
}
.qty-max { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) {
    .qty-max { font-size: 0.72rem; }
}

/* Form inputs */
.form-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-label .req { color: #dc2626; }
.form-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19,122,58,.1); }

/* Order summary sidebar */
.order-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}
.order-summary h3 { font-size: 1rem; margin-bottom: 16px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--ink-2);
}
.summary-divider { border-top: 1px solid var(--line); margin: 8px 0; }
.summary-total { font-weight: 700; color: var(--ink); font-size: 1rem; }
.btn-pay {
    width: 100%;
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-full);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}
.btn-pay:hover { background: var(--brand-700); }
.btn-pay:disabled { background: var(--muted); cursor: not-allowed; }
.btn-pay svg { width: 16px; height: 16px; }
.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.73rem;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}
.secure-note svg { flex-shrink: 0; }

/* ---- Success page ---- */
.success-hero {
    border-radius: var(--r-xl);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sh-paid    { background: var(--brand-50); border: 1px solid var(--brand-100); }
.sh-failed  { background: #fef2f2; border: 1px solid #fca5a5; }
.sh-pending { background: #fffbeb; border: 1px solid #fde68a; }
.sh-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sh-paid    .sh-icon { background: var(--brand); color: #fff; }
.sh-failed  .sh-icon { background: #dc2626; color: #fff; }
.sh-pending .sh-icon { background: #d97706; color: #fff; }
.sh-icon svg { width: 22px; height: 22px; }
.sh-text h1 { font-size: 1.5rem; margin-bottom: 6px; }
.sh-text p  { font-size: 0.875rem; margin: 0; }
.sh-paid    .sh-text p { color: var(--brand-700); }
.sh-failed  .sh-text p { color: #b91c1c; }
.sh-pending .sh-text p { color: #92400e; }

.success-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.success-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}
.success-panel-head h3 { font-size: 0.95rem; margin: 0; }
.order-ref-badge {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-2);
    padding: 3px 10px;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
}
.success-detail-grid { padding: 8px 0; }
.sdg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 22px;
    font-size: 0.875rem;
    gap: 12px;
}
.sdg-row span { color: var(--muted); }
.sdg-row strong { text-align: right; }
.o-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: var(--r-full);
}
.osb-paid, .osb-completed { background: var(--brand-50); color: var(--brand-700); }
.osb-pending   { background: #fffbeb; color: #b45309; }
.osb-failed    { background: #fef2f2; color: #b91c1c; }
.osb-refunded  { background: #f3f4f6; color: #6b7280; }

/* PIN display */
.pin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.pin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--brand-50);
}
.pin-panel-head h3 { font-size: 0.95rem; margin: 0; color: var(--brand-700); }
.pin-note { font-size: 0.75rem; color: var(--brand); }
.pin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line);
}
.pin-row:last-child { border-bottom: none; }
.pin-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; width: 50px; flex-shrink: 0; }
.pin-code {
    flex: 1;
    font-family: ui-monospace, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--ink);
    background: var(--bg-2);
    padding: 6px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}
.pin-copy-btn {
    background: none;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: all .13s;
    flex-shrink: 0;
}
.pin-copy-btn:hover { border-color: var(--brand); color: var(--brand); }

/* Info banners */
.info-banner {
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.5;
}
.info-banner-amber { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.info-banner-red   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.info-banner-green { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); }

/* Success actions */
.success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.success-support { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Responsive */
@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}
@media (max-width: 600px) {
    .trust-inner { gap: 14px; }
    .how-steps { flex-direction: column; align-items: flex-start; }
    .how-arrow { display: none; }
    .shop-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ANNOUNCEMENT TICKER BAR
   ========================================================================== */

.ticker-bar {
    position: relative;
    background: var(--ink);
    color: rgba(255,255,255,.82);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 200;
    gap: 0;
    user-select: none;
}

.ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: white;
    padding: 0 16px 0 18px;
    background: var(--brand);
    height: 100%;
    border-right: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
    z-index: 1;
}

/* Pulsing live dot */
.ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.6);
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
    50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
    /* Wider fade edges so long items don't peek before the mask kicks in */
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 38s linear infinite;
    will-change: transform;
}
.ticker-bar:hover .ticker-inner { animation-play-state: paused; }

.ti {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    padding: 0 28px;
    color: rgba(255,255,255,.82);
}
.ti svg {
    width: 13px;
    height: 13px;
    stroke: var(--brand-400);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.ti-sep {
    color: rgba(255,255,255,.2);
    font-size: .9rem;
    padding: 0 4px;
}

.ticker-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.45);
    transition: color .15s;
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 1;
}
.ticker-close:hover { color: rgba(255,255,255,.85); }
.ticker-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

/* ==========================================================================
   HERO — OVERHAUL
   ========================================================================== */

/* Dot-grid background mesh */
.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--brand-200) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .22;
    pointer-events: none;
    z-index: 0;
}

/* Ambient orbs — reset inset from old .hero-orb rule, controlled per variant */
.hero-orb {
    position: absolute;
    inset: unset;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
    background: none;
}
.hero-orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, var(--brand-100) 0%, transparent 70%);
    top: -15%; right: -5%;
    opacity: .7;
    animation: orb-drift 14s ease-in-out infinite alternate;
}
.hero-orb-2 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, #fef3c7 0%, transparent 70%);
    bottom: 0; left: -8%;
    opacity: .5;
    animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}
.hero-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--brand-200) 0%, transparent 70%);
    top: 55%; right: 25%;
    opacity: .35;
    animation: orb-drift 22s ease-in-out infinite alternate;
}
@keyframes orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

/* Make hero children sit above orbs */
.hero-copy, .hero-visual { position: relative; z-index: 1; }

/* Announcement pill */
.hero-announcement {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1.5px solid var(--brand-100);
    border-radius: var(--r-full);
    padding: 7px 14px 7px 8px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 22px;
    text-decoration: none;
    transition: all .2s var(--ease);
    box-shadow: var(--shadow-sm);
    max-width: fit-content;
}
.hero-announcement:hover {
    border-color: var(--brand);
    background: var(--brand-50);
    color: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.ha-badge {
    background: var(--brand);
    color: white;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.hero-announcement svg {
    width: 14px; height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    flex-shrink: 0;
    transition: transform .2s var(--ease);
}
.hero-announcement:hover svg { transform: translateX(3px); }

/* Live activity feed */
.hero-activity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 0;
    height: 28px;
}
.ha-dot-wrap {
    flex-shrink: 0;
}
.ha-live-dot {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.5);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
.ha-feed {
    flex: 1;
    overflow: hidden;
    height: 28px;
    position: relative;
}
.ha-item {
    position: absolute;
    inset: 0;
    font-size: .84rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ha-item.active {
    opacity: 1;
    transform: translateY(0);
}
.ha-item strong { color: var(--ink); margin: 0 2px; }

/* Hero meta stats */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.hm-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 28px 0 0;
}
.hm-stat:first-child { padding-left: 0; }
.hm-stat strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.03em;
    line-height: 1;
}
.hm-stat span {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
}
.hm-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
    margin-right: 28px;
    flex-shrink: 0;
}

/* Hero meta — better mobile layout */
@media (max-width: 600px) {
    .hero-meta {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 12px;
        margin-top: 28px;
        padding-top: 22px;
    }
    .hm-stat {
        padding: 0;
        text-align: left;
    }
    .hm-stat strong { font-size: 1.4rem; }
    .hm-stat span { font-size: .72rem; line-height: 1.2; }
    .hm-divider { display: none; }
}
@media (max-width: 380px) {
    .hero-meta {
        grid-template-columns: 1fr 1fr;
    }
    .hm-stat:nth-child(5) { /* third stat with divider count */
        grid-column: 1 / -1;
    }
}

/* ---- Hero visual (right side) — dashboard mockup ---- */
.hero-visual {
    position: relative;
    z-index: 1;
}

/* Remove old orb (replaced by hero-orb-*) */
.hero-orb-legacy { display: none; }

/* ==========================================================================
   NEW HERO VISUAL — phone + product collage
   ========================================================================== */
.hero-visual { min-height: 540px; }

/* Soft brand glow behind everything */
.hv-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle at center, rgba(19,122,58,.18), transparent 65%);
    z-index: 0;
    pointer-events: none;
    filter: blur(20px);
}

/* ──────────────────────────────────────────────
   PHONE FRAME (center)
   ────────────────────────────────────────────── */
.hv-phone {
    position: relative;
    width: 280px;
    height: 560px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1a1f1c 0%, #0d120f 100%);
    border-radius: 44px;
    padding: 16px 14px;
    box-shadow:
        0 0 0 6px #0d120f,
        0 30px 70px rgba(13,18,15,.25),
        0 12px 28px rgba(13,18,15,.18),
        inset 0 2px 0 rgba(255,255,255,.04);
    z-index: 2;
    transform: rotate(-3deg);
    animation: phoneFloat 8s ease-in-out infinite alternate;
}
@keyframes phoneFloat {
    0%   { transform: rotate(-3deg) translateY(0); }
    100% { transform: rotate(-2deg) translateY(-10px); }
}
.hv-phone-notch {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #0d120f;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}
.hv-phone-screen {
    position: relative;
    width: 100%; height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    padding: 32px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hv-phone-glare {
    position: absolute;
    inset: 0;
    border-radius: 44px;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,.08) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.04) 100%);
    z-index: 4;
}

/* Status bar */
.hv-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    padding: 0 4px;
}
.hv-status-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hv-status-icons svg { color: var(--ink); }

/* Exam header */
.hv-exam-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 0;
}
.hv-exam-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}
.hv-exam-q {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}
.hv-timer {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-50);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--brand-100);
}

/* Progress bar */
.hv-progress {
    height: 4px;
    background: var(--bg-2);
    border-radius: 999px;
    overflow: hidden;
    margin: 2px 0 8px;
}
.hv-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #4ade80);
    border-radius: inherit;
    animation: progressSlide 4s ease-in-out infinite alternate;
}
@keyframes progressSlide {
    0%   { width: 32%; }
    100% { width: 38%; }
}

/* Question */
.hv-question {
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--ink);
    padding: 0 4px;
}
.hv-question em {
    font-style: italic;
    font-family: 'Times New Roman', serif;
    font-weight: 600;
}

/* Options */
.hv-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.hv-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-2);
    text-align: left;
    transition: all .2s;
}
.hv-opt-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    color: var(--ink-2);
    flex-shrink: 0;
}
.hv-opt-selected {
    background: var(--brand-50);
    border-color: var(--brand);
    color: var(--brand-700);
    font-weight: 600;
}
.hv-opt-selected .hv-opt-letter {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Phone bottom nav */
.hv-nav {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.hv-nav-btn {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-family: inherit;
    color: var(--ink-2);
    cursor: pointer;
}
.hv-nav-btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    font-weight: 600;
}
.hv-nav-label {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 500;
}

/* ──────────────────────────────────────────────
   FLOATING CARDS
   ────────────────────────────────────────────── */
.hv-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 18px 40px rgba(13,18,15,.10), 0 6px 14px rgba(13,18,15,.06);
    z-index: 3;
}
.hv-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hv-card-eyebrow {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: 1px;
}
.hv-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    letter-spacing: -.01em;
}

/* PIN card (top-left) */
.hv-card-pin {
    top: 6%;
    left: -8%;
    width: 240px;
    transform: rotate(-4deg);
    animation: cardFloat 7s ease-in-out infinite alternate;
}
.hv-pin-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(19,122,58,.25);
}
.hv-pin-icon svg { width: 16px; height: 16px; }
.hv-pin-code {
    display: flex;
    gap: 6px;
    margin: 8px 0 10px;
}
.hv-pin-code span {
    flex: 1;
    background: var(--bg-2);
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 7px 0;
    text-align: center;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .04em;
}
.hv-card-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
}
.hv-dot-live {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34,197,94,.5);
    animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Certificate card (bottom-right) */
.hv-card-cert {
    bottom: 8%;
    right: -8%;
    width: 230px;
    transform: rotate(3deg);
    display: flex;
    gap: 12px;
    align-items: center;
    animation: cardFloat2 8s ease-in-out infinite alternate;
}
.hv-cert-ribbon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(217,119,6,.3);
}
.hv-cert-ribbon svg { width: 18px; height: 18px; }
.hv-card-cert .hv-card-eyebrow {
    color: #b45309;
    margin-bottom: 2px;
}
.hv-cert-name {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Score chip (right side) */
.hv-score {
    position: absolute;
    top: 18%;
    right: -4%;
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(13,18,15,.25);
    z-index: 3;
    transform: rotate(2deg);
    animation: scoreFloat 7s ease-in-out infinite alternate;
}
.hv-score-ring { width: 38px; height: 38px; flex-shrink: 0; }
.hv-score strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}
.hv-score small {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    display: block;
    margin-top: 2px;
}

/* Card animations */
@keyframes cardFloat {
    0%   { transform: rotate(-4deg) translateY(0); }
    100% { transform: rotate(-3deg) translateY(-8px); }
}
@keyframes cardFloat2 {
    0%   { transform: rotate(3deg) translateY(0); }
    100% { transform: rotate(2deg) translateY(8px); }
}
@keyframes scoreFloat {
    0%   { transform: rotate(2deg) translateY(0); }
    100% { transform: rotate(3deg) translateY(-6px); }
}

/* Dark mode adjustments for phone screen — keep it light for contrast */
[data-theme="dark"] .hv-phone-screen {
    background: #f8faf9; /* keep bright so it pops */
}
[data-theme="dark"] .hv-card {
    background: #1f2421;
    border-color: #2e342f;
}
[data-theme="dark"] .hv-pin-code span {
    background: #161a17;
    border-color: #2e342f;
    color: #f1f4ef;
}

/* Note: more refined responsive scaling for phone is now appended at
   the bottom of this file in the "COMPREHENSIVE RESPONSIVE OVERHAUL" block. */

/* Hide old stuff if it lingers */
.hv-dashboard,
.hero-chip,
.chip-1, .chip-2, .chip-3 { display: none !important; }
@keyframes float-up {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.hv-dash-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hv-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hv-dot-red   { background: #ff5f57; }
.hv-dot-amber { background: #febc2e; }
.hv-dot-green { background: #28c840; }
.hv-dash-title {
    margin-left: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    letter-spacing: .04em;
}

.hv-dash-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.hv-ds {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}
.hv-ds-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 4px;
}
.hv-ds-label {
    font-size: .68rem;
    color: rgba(255,255,255,.35);
    font-weight: 500;
}

.hv-dash-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 10px;
}

.hv-order-list { display: flex; flex-direction: column; gap: 6px; }
.hv-order {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 8px;
    padding: 8px 10px;
}
.hv-o-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-400));
    color: white;
    font-size: .65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hv-o-info {
    flex: 1;
    min-width: 0;
}
.hv-o-info span {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hv-o-info small {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.3);
}
.hv-o-badge {
    font-size: .62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.hv-o-badge.paid    { background: rgba(19,122,58,.3); color: #4ade80; }
.hv-o-badge.pending { background: rgba(194,118,26,.25); color: #fbbf24; }

/* Floating chips */
.hero-chip {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .82rem;
    z-index: 3;
}
.hero-chip svg {
    width: 22px; height: 22px;
    flex-shrink: 0;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-chip strong { display: block; font-weight: 600; font-size: .85rem; line-height: 1.2; }
.hero-chip small  { color: var(--muted); display: block; line-height: 1.2; }

.chip-1 {
    top: -4%;
    left: -8%;
    animation: chip-float-1 7s ease-in-out infinite alternate;
}
.chip-2 {
    bottom: 18%;
    right: -10%;
    background: var(--brand);
    border-color: var(--brand);
    animation: chip-float-2 9s ease-in-out infinite alternate;
}
.chip-2 svg, .chip-2 strong { stroke: white; color: white; }
.chip-2 small { color: var(--brand-100); }

.chip-3 {
    bottom: -6%;
    left: 6%;
    animation: chip-float-3 8s ease-in-out infinite alternate;
}

@keyframes chip-float-1 {
    0%   { transform: translate(0, 0) rotate(-1deg); }
    100% { transform: translate(-6px, -12px) rotate(1deg); }
}
@keyframes chip-float-2 {
    0%   { transform: translate(0, 0) rotate(1deg); }
    100% { transform: translate(8px, 10px) rotate(-1.5deg); }
}
@keyframes chip-float-3 {
    0%   { transform: translate(0, 0) rotate(-0.5deg); }
    100% { transform: translate(6px, -8px) rotate(1deg); }
}

@media (max-width: 900px) {
    .chip-1, .chip-2, .chip-3 { display: none; }
    .hv-dashboard { max-width: 420px; margin: 0 auto; }
}

/* Old hero-card should not show (replaced by hero-chip + hv-dashboard) */
.hero-card { display: none !important; }

/* ==========================================================================
   EXAM BODY STRIP (marquee)
   ========================================================================== */

.exam-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    height: 48px;
}

.exam-strip-label {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 20px;
    border-right: 1px solid var(--line);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: var(--bg-2);
}

.exam-strip-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

@keyframes exam-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.exam-strip-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    animation: exam-scroll 22s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.exam-strip:hover .exam-strip-inner { animation-play-state: paused; }

.exam-badge {
    display: inline-flex;
    align-items: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 5px 14px;
    border-radius: var(--r-full);
    border: 1.5px solid;
    flex-shrink: 0;
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */

.stats-band {
    background: var(--ink);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

.stat-item {
    padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,.06);
    text-align: center;
    transition: background .2s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.02); }

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.stat-number span:last-child {
    font-size: .55em;
    color: var(--brand-400);
    font-weight: 700;
}
.stat-label {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    margin-bottom: 6px;
}
.stat-sub {
    font-size: .78rem;
    color: rgba(255,255,255,.3);
    line-height: 1.4;
}

/* ==========================================================================
   SERVICE CARDS — colour accent overrides
   ========================================================================== */

.service-card { text-decoration: none; display: block; }
.service-card .service-icon {
    background: var(--sc-bg, var(--brand-50));
    color: var(--sc-color, var(--brand));
}
.service-card:hover .service-icon {
    background: var(--sc-color, var(--brand));
    color: white;
}
.service-card .service-icon { transition: background .2s ease, color .2s ease; }
.service-card .service-link { color: var(--sc-color, var(--brand)); }

/* ==========================================================================
   TESTIMONIALS — star ratings
   ========================================================================== */

.testimonial-stars {
    font-size: 1rem;
    color: #f59e0b;
    letter-spacing: 1px;
    margin-bottom: 14px;
    line-height: 1;
}

.featured-testimonial {
    background: linear-gradient(145deg, var(--brand-50) 0%, var(--surface) 60%);
    border-color: var(--brand-100);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
@media (max-width: 768px) { .featured-testimonial { transform: none; } }

/* fade-up / fade-up-3 are already defined above via the fadeUp keyframe */

/* ==========================================================================
   PHOTO GALLERY MOSAIC
   ========================================================================== */

.gallery-section { padding-bottom: 0; }

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* 3-column, 2-row mosaic */
.gallery-mosaic {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    grid-template-rows: 260px 220px;
    gap: 10px;
    border-radius: var(--r-xl);
    overflow: hidden;
}

/* Cell base */
.gm-cell {
    position: relative;
    overflow: hidden;
    background: var(--bg-2);   /* fallback if image fails to load */
}

/* Gradient placeholder coloring per cell */
.gm-hero      { background: linear-gradient(135deg, #0f1a14, #1e3a28); grid-row: span 2; }
.gm-top-right { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.gm-mid-right { background: linear-gradient(135deg, #451a03, #92400e); }
.gm-bot-left  { background: linear-gradient(135deg, #1e1b4b, #5b21b6); }
.gm-bot-right { background: linear-gradient(135deg, #064e3b, #065f46); }

.gm-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s var(--ease);
    /* If image 404s, hide broken icon */
    color: transparent;
}
.gm-cell:hover img { transform: scale(1.04); }

/* Overlay with label */
.gm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,18,15,.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.gm-cell:hover .gm-overlay { opacity: 1; }

.gm-tag {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: white;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: var(--r-full);
}

/* Always-visible tag on the hero cell */
.gm-hero .gm-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(13,18,15,.7) 0%, transparent 45%);
}

/* Quick facts strip */
.gallery-facts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.gf-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 8px 24px;
}
.gf-item svg {
    width: 18px; height: 18px;
    stroke: var(--brand);
    flex-shrink: 0;
}
.gf-sep {
    width: 1px;
    height: 24px;
    background: var(--line);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 180px 180px;
    }
    .gm-hero { grid-row: 1; grid-column: span 2; }
    .gallery-facts { flex-direction: column; align-items: flex-start; gap: 8px; }
    .gf-sep { display: none; }
}
@media (max-width: 640px) {
    .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
    .gm-hero { grid-row: auto; grid-column: auto; }
    .gallery-header { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   NYSC SPOTLIGHT SECTION
   ========================================================================== */

.nysc-section {
    padding: 96px 0;
    background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 60%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
@media (max-width: 768px) { .nysc-section { padding: 64px 0; } }

.nysc-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 72px;
    align-items: center;
}
@media (max-width: 960px) {
    .nysc-inner { grid-template-columns: 1fr; gap: 48px; }
    .nysc-photo-col { display: flex; justify-content: center; }
}

/* ---- Photo column ---- */
.nysc-photo-col {
    position: relative;
}

.nysc-photo-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: visible;   /* let chip + glow bleed out */
}

/* The actual image */
.nysc-photo-wrap img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: var(--r-xl);
    /* Clip the white background at bottom */
    object-fit: cover;
    object-position: top center;
    /* Soft drop shadow that complements the green palette */
    box-shadow: 0 24px 64px rgba(19,122,58,.18),
                0  8px 20px rgba(13,18,15,.10);
    position: relative;
    z-index: 1;
}

/* Green ambient glow behind photo */
.nysc-photo-glow {
    position: absolute;
    inset: 10% 5% -6% 5%;
    background: radial-gradient(ellipse, var(--brand-100) 0%, transparent 72%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* Floating "verified" chip over the photo */
.nysc-photo-chip {
    position: absolute;
    bottom: 24px;
    left: -16px;
    background: var(--brand);
    color: white;
    font-size: .8rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--r-full);
    box-shadow: 0 8px 24px rgba(19,122,58,.35);
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 2;
    white-space: nowrap;
    animation: chip-float-3 8s ease-in-out infinite alternate;
}
.nysc-photo-chip svg {
    stroke: white;
    flex-shrink: 0;
}

/* NYSC copy */
.nysc-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nysc-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-2);
}
.nysc-list li:last-child { border-bottom: none; }

.nl-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--brand-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.nl-icon svg {
    width: 13px; height: 13px;
    stroke: var(--brand-700);
}
.nysc-list li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nysc-list li strong {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.nysc-list li span {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.4;
}


/* ============================================================
   VERIFY PAGE
   ============================================================ */

.verify-card {
    max-width: 560px;
    margin: 0 auto 48px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.verify-icon {
    width: 56px; height: 56px;
    background: var(--brand-50);
    border-radius: var(--r-full);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--brand);
}
.verify-icon svg { width: 28px; height: 28px; }
.verify-card h2 { margin: 0 0 6px; font-size: 1.4rem; }
.verify-sub { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }

.verify-form { margin: 0; }
.verify-input-wrap { display: flex; gap: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.verify-input {
    flex: 1; border: none; padding: 14px 18px;
    font-size: 1rem; font-family: inherit;
    background: var(--surface); color: var(--ink);
    outline: none;
    letter-spacing: .04em;
}
.verify-btn { border-radius: 0; white-space: nowrap; }

/* Results */
.verify-result { max-width: 560px; margin: 0 auto 48px; }
.vr-box {
    border-radius: var(--r-lg);
    padding: 32px;
    border: 1px solid var(--line);
    text-align: center;
}
.vr-box h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.vr-box p { color: var(--muted); margin: 0 0 20px; }
.vr-status-icon { width: 56px; height: 56px; border-radius: var(--r-full); margin: 0 auto 4px; display: flex; align-items: center; justify-content: center; }
.vr-status-icon svg { width: 28px; height: 28px; }

.vr-valid  { border-color: var(--brand-100); background: var(--brand-50); }
.vr-valid  .vr-status-icon { background: var(--brand); color: #fff; }
.vr-invalid { border-color: #f5c6c6; background: var(--red-bg); }
.vr-invalid .vr-status-icon { background: var(--red); color: #fff; }
.vr-revoked { border-color: #f5c6c6; background: var(--red-bg); }
.vr-revoked .vr-status-icon { background: var(--red); color: #fff; }
.vr-expired { border-color: #fde68a; background: #fffbeb; }
.vr-expired .vr-status-icon { background: #d97706; color: #fff; }

.vr-details {
    text-align: left;
    border-top: 1px solid rgba(0,0,0,.07);
    margin-top: 16px;
    padding-top: 16px;
    display: grid;
    gap: 10px;
}
.vr-row { display: flex; justify-content: space-between; font-size: .9rem; }
.vr-row span { color: var(--muted); }
.vr-row strong { text-align: right; }

.vr-seal {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px;
    font-size: .8rem; font-weight: 600; color: var(--brand);
    background: #fff; border: 1px solid var(--brand-100);
    border-radius: var(--r-full); padding: 6px 14px;
}
.vr-seal svg { width: 14px; height: 14px; }
.vr-contact { font-size: .85rem; }

/* How section */
.verify-how { max-width: 560px; margin: 0 auto; }
.verify-how h3 { margin-bottom: 20px; }
.verify-steps { display: grid; gap: 16px; }
.vstep { display: flex; gap: 16px; align-items: flex-start; }
.vstep-num {
    width: 32px; height: 32px; border-radius: var(--r-full);
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; flex-shrink: 0;
    margin-top: 2px;
}
.vstep strong { display: block; margin-bottom: 4px; }
.vstep p { margin: 0; font-size: .9rem; color: var(--muted); }
.vstep code { background: var(--bg-2); padding: 1px 6px; border-radius: 4px; font-size: .85rem; }


/* ============================================================
   SERVICES PAGE
   ============================================================ */

.svc-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.svc-grid-reverse { direction: rtl; }
.svc-grid-reverse > * { direction: ltr; }

.svc-section-text h2 { margin: 12px 0 16px; }
.svc-section-text p { color: var(--muted); margin-bottom: 16px; }

.svc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 10px;
}
.svc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: var(--ink-2);
}
.svc-list li svg {
    width: 16px; height: 16px;
    stroke: var(--brand); stroke-width: 2.5;
    flex-shrink: 0;
}

/* Scratch card stack visual */
.svc-visual-cards { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.svc-card-stack { position: relative; width: 280px; height: 200px; }
.svc-exam-card {
    position: absolute;
    width: 220px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand));
    color: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(13,18,15,.18);
    transform: rotate(calc(var(--ci) * -4deg)) translate(calc(var(--ci) * 16px), calc(var(--ci) * -8px));
    transition: transform .3s ease;
}
.svc-exam-card:hover { transform: rotate(0) scale(1.04); z-index: 10; }
.sec-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.sec-pin { font-size: 1rem; font-weight: 600; margin: 8px 0; letter-spacing: .06em; }
.sec-year { font-size: .75rem; opacity: .6; }

.bg-alt { background: var(--bg-2, #f8f9f6); }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-mission h2 { margin: 0 0 16px; }
.about-mission p { color: var(--muted); margin-bottom: 14px; }

.about-stats-col { display: grid; gap: 16px; }
.about-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    display: grid;
    gap: 4px;
}
.about-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--brand); font-family: var(--font-display); }
.about-stat span:last-child { color: var(--muted); font-size: .9rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
}
.value-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { margin: 0 0 8px; font-size: 1rem; }
.value-card p { margin: 0; font-size: .875rem; color: var(--muted); }

.about-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-map-placeholder {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--r-lg);
    min-height: 240px;
    display: flex; align-items: center; justify-content: center;
}
.map-inner { text-align: center; color: var(--brand); }
.map-inner p { margin: 12px 0 0; font-weight: 500; color: var(--brand-700); }


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}
.contact-info h3 { margin: 0 0 24px; }
.ci-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.ci-icon {
    width: 40px; height: 40px;
    background: var(--brand-50);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-item strong { display: block; margin-bottom: 2px; }
.ci-item p { margin: 0; color: var(--muted); font-size: .9rem; }

.ci-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--brand-700);
    background: var(--brand-50);
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-top: 8px;
}
.ci-note svg { width: 14px; height: 14px; stroke: var(--brand); flex-shrink: 0; }

.ci-item-branch { align-items: flex-start; }
.ci-branch-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--brand-100);
    color: var(--brand-700);
    border-radius: var(--r-full);
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.ci-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    padding: 10px 20px;
    border-radius: var(--r-full);
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.ci-whatsapp-btn:hover { background: #1ebe5d; color: #fff; transform: translateY(-1px); text-decoration: none; }

/* JAMB accreditation banner */
.jamb-badge-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fef9ec;
    border: 1px solid #fde68a;
    border-radius: var(--r-lg);
    padding: 18px 24px;
    margin: 32px 0 0;
}
.jamb-logo-circle {
    width: 72px; height: 72px;
    flex-shrink: 0;
}
.jamb-logo-img {
    width: 72px; height: 72px;
    object-fit: contain;
    display: block;
}
.jamb-logo-fallback {
    width: 72px; height: 72px;
    background: #006400;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
.jamb-logo-fallback span {
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .05em;
}
.jamb-badge-text { flex: 1; }
.jamb-badge-text strong { display: block; font-size: 1rem; color: #78350f; margin-bottom: 2px; }
.jamb-badge-text span { font-size: .85rem; color: #92400e; }

/* More services grid */
.svc-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.svc-more-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: border-color .2s, box-shadow .2s;
}
.svc-more-card:hover {
    border-color: var(--brand-100);
    box-shadow: 0 4px 20px rgba(19,122,58,.08);
}
.svc-more-icon {
    width: 44px; height: 44px;
    background: var(--brand-50);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    margin-bottom: 14px;
}
.svc-more-card h4 { margin: 0 0 8px; font-size: 1rem; }
.svc-more-card p { font-size: .875rem; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.svc-more-card a { font-size: .85rem; font-weight: 600; color: var(--brand); }
.svc-more-card a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .svc-more-grid { grid-template-columns: repeat(2, 1fr); }
    .jamb-badge-bar { flex-wrap: wrap; }
    .jamb-badge-bar .btn { width: 100%; text-align: center; }
}
@media (max-width: 540px) {
    .svc-more-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   CBT PUBLIC PAGE
   ============================================================ */

.cbt-stats-strip {
    background: var(--ink);
    color: #fff;
    padding: 20px 0;
}
.cbt-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.cbt-stat { text-align: center; padding: 8px 40px; }
.cbt-stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; font-family: var(--font-display); }
.cbt-stat span { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }
.cbt-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.12); }

.cbt-steps {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.cbt-step {
    text-align: center;
    flex: 1 1 240px;
    max-width: 280px;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cbt-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
    border-color: var(--brand-100);
}
.cbt-step-num {
    width: 44px; height: 44px;
    border-radius: var(--r-full);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 14px rgba(19,122,58,.25);
}
.cbt-step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}
.cbt-step p {
    font-size: .9rem;
    color: var(--ink-2);
    margin: 0;
    line-height: 1.55;
}
.cbt-step-arrow {
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.cbt-step-arrow svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
    .cbt-step { max-width: 100%; flex-basis: 100%; }
    .cbt-step-arrow { transform: rotate(90deg); padding: 4px 0; }
}

.cbt-body-block { margin-bottom: 32px; }
.cbt-body-label {
    font-size: .75rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--brand-50);
    display: inline-block;
    border-radius: var(--r-full);
}
.cbt-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.cbt-subject-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cbt-subject-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-100);
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.cbt-subject-card.is-empty {
    background: var(--bg-2);
    border-style: dashed;
    opacity: .8;
}
.cbt-subject-card.is-empty:hover {
    transform: none;
    box-shadow: none;
}
.cbt-subject-name { font-weight: 600; font-size: .92rem; margin-bottom: 4px; color: var(--ink); }
.cbt-subject-count { font-size: .78rem; color: var(--muted); }
.cbt-subject-card.is-empty .cbt-subject-count {
    color: var(--brand);
    font-weight: 500;
}


/* ============================================================
   BLOG PUBLIC PAGES
   ============================================================ */

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

/* Featured first card spans full width */
.blog-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}
.blog-card-featured .blog-card-img-wrap { border-radius: var(--r-lg) 0 0 var(--r-lg); min-height: 300px; }
.blog-card-featured .blog-card-body { padding: 32px; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.blog-card-featured .blog-card-title { font-size: 1.4rem; }

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(13,18,15,.1); transform: translateY(-2px); }

.blog-card-img-wrap {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--brand-50);
}
.blog-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }
.blog-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-200);
}
.blog-card-placeholder svg { width: 36px; height: 36px; }

.blog-card-body { padding: 20px; }
.blog-tag {
    display: inline-block;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-50);
    border-radius: var(--r-full); padding: 3px 10px;
    margin-bottom: 10px;
}
.blog-card-title { font-size: 1rem; margin: 0 0 8px; line-height: 1.35; }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--brand); }
.blog-card-excerpt { font-size: .875rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }

.blog-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
    font-size: .8rem; color: var(--muted);
}
.blog-author { display: flex; align-items: center; gap: 6px; }
.blog-avatar {
    width: 24px; height: 24px;
    background: var(--brand); color: #fff;
    border-radius: var(--r-full);
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700;
    flex-shrink: 0;
}
.blog-avatar-lg { width: 36px; height: 36px; font-size: .85rem; }

.pager-wrap { margin: 32px 0; text-align: center; }

/* Blog post */
.post-header {
    padding: 72px 0 48px;
    background: radial-gradient(ellipse 60% 70% at 80% 30%, var(--brand-50), transparent 60%);
}
.post-header-inner { max-width: 760px; }
.post-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 12px 0 16px; line-height: 1.2; }
.post-excerpt { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.post-meta { display: flex; align-items: center; gap: 12px; }
.post-meta .blog-author { gap: 10px; }
.post-meta .blog-author > span { display: flex; flex-direction: column; gap: 2px; }
.blog-date { color: var(--muted); font-size: .8rem; }

.post-cover { padding: 0 0 0; }
.post-cover img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--r-lg); }

.post-section { padding-top: 48px; }
.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* Prose — blog body typography */
.prose { line-height: 1.75; color: var(--ink-2); }
.prose h1,.prose h2,.prose h3,.prose h4 { color: var(--ink); margin: 1.8em 0 .6em; line-height: 1.25; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin: 0 0 1.2em; }
.prose ul,.prose ol { padding-left: 1.6em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--brand-200); padding-left: 1em; color: var(--muted); margin: 1.5em 0; }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.prose pre { background: var(--ink); color: #e5e7eb; border-radius: var(--r-md); padding: 16px; overflow-x: auto; margin: 1.5em 0; }
.prose img { width: 100%; border-radius: var(--r-md); margin: 1em 0; }

.post-sidebar-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
}
.post-sidebar-card h4 { margin: 0 0 10px; font-size: .9rem; }
.post-sidebar-links {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 8px;
}
.post-sidebar-links a { font-size: .875rem; color: var(--brand); }
.post-sidebar-links a:hover { color: var(--brand-700); }


/* ============================================================
   ADMIN BLOG FORMS (two-col layout)
   ============================================================ */

.a-form-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}
.a-form-main { display: grid; gap: 16px; }
.a-form-side { display: grid; gap: 0; }

.a-side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px;
}
.a-side-card-title { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.danger-zone { border-color: #f5c6c6; background: var(--red-bg); }


/* ============================================================
   ADMIN REPORTS — BAR CHART
   ============================================================ */

.rpt-chart-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}
.rpt-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 160px;
    min-width: 100%;
}
.rpt-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 12px;
    height: 100%;
}
.rpt-bar {
    width: 100%;
    background: var(--brand);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    opacity: .85;
    transition: opacity .15s;
}
.rpt-bar-col:hover .rpt-bar { opacity: 1; }
.rpt-bar-label { font-size: .65rem; color: var(--muted); white-space: nowrap; transform: rotate(-45deg); transform-origin: top right; }


/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 960px) {
    .svc-section-grid,
    .about-grid,
    .about-location-grid,
    .contact-grid,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .svc-grid-reverse { direction: ltr; }
    .svc-visual-cards { display: none; }

    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card-featured { grid-column: auto; display: block; }
    .blog-card-featured .blog-card-img-wrap { border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .blog-card-featured .blog-card-body { border-radius: 0 0 var(--r-lg) var(--r-lg); }

    .a-form-grid { grid-template-columns: 1fr; }
    .cbt-steps { flex-direction: column; gap: 20px; }
    .cbt-step-arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
    .values-grid { grid-template-columns: 1fr; }
    .blog-grid,
    .blog-grid-3 { grid-template-columns: 1fr; }
    .verify-card { padding: 28px 20px; }
    .verify-input-wrap { flex-direction: column; border-radius: var(--r-md); }
    .verify-btn { border-radius: 0 0 var(--r-md) var(--r-md); }
    .cbt-stats-inner { gap: 8px; }
    .cbt-stat { padding: 8px 20px; }
    .cbt-stat-sep { display: none; }
}

/* ==========================================================================
   UNIFIED FORM CONTROLS — public site
   ========================================================================== */
.form-control,
.form-input,
.public-input,
input[type="text"]:not(.a-input):not(.a-search):not(.cbt-search):not(.bulk-cb),
input[type="email"]:not(.a-input),
input[type="password"]:not(.a-input),
input[type="tel"]:not(.a-input),
input[type="number"]:not(.a-input):not(.cbt-qty-input),
input[type="url"]:not(.a-input),
input[type="search"]:not(.a-input),
input[type="date"]:not(.a-input),
input[type="datetime-local"]:not(.a-input),
input[type="time"]:not(.a-input),
textarea:not(.a-textarea),
select:not(.a-filter-select):not(.a-input) {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:hover,
.form-input:hover,
.public-input:hover {
    border-color: var(--brand-100);
}
.form-control:focus,
.form-input:focus,
.public-input:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(19,122,58,.14);
}
.form-control::placeholder,
.form-input::placeholder,
.public-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: .85;
}
.form-control:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background: var(--bg-2);
    cursor: not-allowed;
    opacity: .65;
}
.form-control[aria-invalid="true"],
.form-control.is-error,
input.is-error,
textarea.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-help {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
}
.form-error {
    font-size: .78rem;
    color: #dc2626;
    margin-top: 6px;
    line-height: 1.5;
}

/* Universal focus-visible for buttons + links across public site */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-pay:focus-visible,
button:focus-visible,
a.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(19,122,58,.35);
}

/* Improve check/radio focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ==========================================================================
   MICRO-INTERACTIONS — subtle motion across cards & links
   ========================================================================== */

/* Service cards on homepage */
.service-card {
    transition: transform .25s cubic-bezier(.2,.8,.2,1),
                box-shadow .25s ease,
                border-color .2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.07), 0 4px 8px rgba(0,0,0,.04);
    border-color: var(--brand-100);
}

/* Shop product cards */
.shop-card {
    transition: transform .25s cubic-bezier(.2,.8,.2,1),
                box-shadow .25s ease,
                border-color .2s ease;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.07), 0 4px 8px rgba(0,0,0,.04);
}
.shop-card:hover .shop-card-icon {
    transform: scale(1.08) rotate(-2deg);
}
.shop-card-icon {
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

/* Registration step cards */
.reg-step-card,
.reg-service-card {
    transition: transform .25s cubic-bezier(.2,.8,.2,1),
                box-shadow .25s ease,
                border-color .2s ease;
}
.reg-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,.06);
    border-color: var(--brand-100);
}

/* Blog cards */
.blog-card {
    transition: transform .25s cubic-bezier(.2,.8,.2,1),
                box-shadow .25s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,.08);
}
.blog-card img {
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.blog-card:hover img {
    transform: scale(1.04);
}

/* Buttons — micro-press effect */
.btn, .btn-primary, .btn-outline, .btn-pay, .btn-cbt, .btn-cbt-ghost {
    transition: transform .12s ease,
                box-shadow .15s ease,
                background-color .2s ease,
                border-color .2s ease,
                color .2s ease,
                filter .2s ease;
}
.btn:active, .btn-primary:active, .btn-pay:active {
    transform: translateY(1px);
}

/* Links — subtle underline animation */
a.text-link,
a.subtle-link {
    position: relative;
    color: var(--brand);
    text-decoration: none;
    transition: color .2s;
}
a.text-link::after,
a.subtle-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(.4);
    transform-origin: left;
    opacity: .4;
    transition: transform .25s ease, opacity .2s ease;
}
a.text-link:hover::after,
a.subtle-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Smooth scroll behaviour */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Respect user reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

/* Form button loading */
.btn[data-loading="1"],
button[data-loading="1"] {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}
.btn[data-loading="1"]::after,
button[data-loading="1"]::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    color: inherit;
    opacity: .85;
    animation: btn-spin .6s linear infinite;
}
.btn[data-loading="1"],
button[data-loading="1"] {
    color: rgba(255,255,255,.001) !important;
}
.btn-outline[data-loading="1"]::after,
.btn[data-loading="1"]:not(.btn-primary):not(.btn-pay)::after {
    color: var(--ink);
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Top progress bar — global page-transition indicator */
#st-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), #4ade80);
    z-index: 99998;
    transition: width .2s ease, opacity .25s ease;
    box-shadow: 0 0 8px rgba(19,122,58,.4);
}
#st-progress.start { width: 25%; opacity: 1; }
#st-progress.mid   { width: 65%; opacity: 1; }
#st-progress.done  { width: 100%; opacity: 0; }

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, var(--bg-2) 0%, var(--surface-subtle, #f0f0ee) 50%, var(--bg-2) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
    color: transparent !important;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   ACCESSIBILITY HELPERS
   ========================================================================== */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.skip-to-content {
    position: absolute;
    top: -50px;
    left: 12px;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 100000;
    transition: top .2s ease;
}
.skip-to-content:focus {
    top: 12px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Make sure all interactive icon-only buttons have a hit area */
button[aria-label]:not([aria-label=""]) {
    min-width: 32px;
    min-height: 32px;
}

/* ==========================================================================
   EMPTY STATES (shared partial)
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--ink-2);
}
.empty-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
}
.empty-message {
    font-size: .9rem;
    color: var(--muted);
    margin: 0 auto 18px;
    max-width: 380px;
    line-height: 1.55;
}
.empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--r-full);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s;
}
.empty-cta:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.empty-cta-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.empty-cta-primary:hover {
    background: var(--brand-700);
    color: #fff;
    border-color: var(--brand-700);
}

/* ==========================================================================
   PUBLIC SITE DARK MODE
   - Activated via [data-theme="dark"] on <html>
   - JS auto-applies based on saved choice or system preference
   ========================================================================== */
[data-theme="dark"] {
    --ink:         #f1f4ef;
    --ink-2:       #d4d9d2;
    --muted:       #8a938c;
    --muted-2:     #6b7470;
    --line:        #2a2f2c;
    --line-2:      #1f2421;
    --bg:          #0d120f;
    --bg-2:        #161a17;
    --surface:     #1f2421;

    --brand-50:    #133a23;
    --brand-100:   #1a4f30;
    --brand-200:   #1f6d42;
    --brand-400:   #3ea35f;
    --brand:       #2ea15a;
    --brand-600:   #1a8344;
    --brand-700:   #126830;
    --brand-900:   #06401a;

    --amber-bg:    #3a2a10;
    --red-bg:      #3a1416;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 14px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 48px rgba(0,0,0,.5);
    --shadow-xl: 0 28px 70px rgba(0,0,0,.55);

    color-scheme: dark;
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .site-header,
[data-theme="dark"] header.site-header { background: rgba(13,18,15,.85); border-bottom-color: var(--line); }
[data-theme="dark"] .site-header .nav-links a { color: var(--ink-2); }
[data-theme="dark"] .site-header .nav-links a:hover { color: var(--brand); }
[data-theme="dark"] .nav-cta { background: var(--brand); color: #fff; }
[data-theme="dark"] .ticker-bar { background: #000; }
[data-theme="dark"] .service-card,
[data-theme="dark"] .shop-card,
[data-theme="dark"] .cbt-step,
[data-theme="dark"] .cbt-subject-card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .verify-card,
[data-theme="dark"] .reg-service-card { background: var(--surface); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .cbt-subject-card.is-empty { background: var(--bg-2); }
[data-theme="dark"] code,
[data-theme="dark"] pre { background: var(--bg-2); color: var(--ink-2); }
[data-theme="dark"] .footer-newsletter input,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-input,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.bulk-cb):not(.a-input),
[data-theme="dark"] textarea,
[data-theme="dark"] select:not(.a-filter-select) {
    background: var(--bg-2);
    border-color: var(--line);
    color: var(--ink);
}
[data-theme="dark"] .empty-icon { background: rgba(46,161,90,.12); color: var(--brand); }
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, var(--bg-2) 0%, #262b27 50%, var(--bg-2) 100%);
    background-size: 200% 100%;
}
[data-theme="dark"] .alert-success { background: rgba(46,161,90,.12); color: #6ee09e; border-color: rgba(46,161,90,.3); }
[data-theme="dark"] .alert-error { background: rgba(239,68,68,.1); color: #fca5a5; border-color: rgba(239,68,68,.25); }
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .btn-outline:hover { background: var(--bg-2); }
[data-theme="dark"] .footer-newsletter { background: var(--bg-2); }

/* Theme toggle button styling */
.theme-toggle-public {
    background: none;
    border: 1.5px solid var(--line);
    color: var(--ink-2);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
}
.theme-toggle-public:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.theme-toggle-public svg { width: 16px; height: 16px; }
.theme-toggle-public .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle-public .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-public .icon-sun  { display: block; }

/* ==========================================================================
   INLINE VALIDATION FEEDBACK
   - HTML5 :invalid styling AFTER user has interacted (data-touched)
   - Server-rendered .is-error class for backend validation failures
   ========================================================================== */

/* Don't show :invalid styling until user has interacted */
input[data-touched]:invalid:not(:focus),
textarea[data-touched]:invalid:not(:focus),
select[data-touched]:invalid:not(:focus) {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,.08);
}
input[data-touched]:valid:not(:focus),
textarea[data-touched]:valid:not(:focus) {
    border-color: #65a30d;
}

/* Field-level error message slot */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    font-size: .78rem;
    margin-top: 6px;
    line-height: 1.5;
}
.field-error::before {
    content: "";
    width: 14px; height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE OVERHAUL — fluid across all platforms
   ========================================================================== */

/* Prevent horizontal overflow site-wide */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
img, svg, video, iframe { max-width: 100%; height: auto; }

/* Fluid container — tighter padding on smaller screens */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
}
@media (max-width: 360px) {
    .container { padding: 0 12px; }
}

/* ── HERO — full mobile-first overhaul ────────────────────────────────── */

/* Pixel-perfect H1 sizing across viewports */
h1 {
    font-size: clamp(1.85rem, 1.1rem + 3.6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.hero h1 { line-height: 1.05; }

@media (max-width: 480px) {
    .hero { padding: 32px 0 56px; }
    .hero h1 { margin-bottom: 18px; }
    .hero .lead { font-size: .95rem; line-height: 1.55; }
}

/* Hero actions — full width on mobile */
@media (max-width: 540px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: .95rem;
    }
}

/* Announcement pill — wraps cleanly on mobile */
.hero-announcement {
    max-width: 100%;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .hero-announcement {
        font-size: .78rem;
        padding: 6px 10px 6px 6px;
        gap: 6px;
    }
    .hero-announcement .ha-badge { font-size: .68rem; padding: 2px 8px; }
}

/* Activity feed — tighten on mobile */
@media (max-width: 480px) {
    .hero-activity {
        font-size: .82rem;
        margin-top: 18px;
    }
    .ha-feed { min-height: 22px; }
}

/* Stats — clean responsive grid */
.hero-meta {
    margin-top: 32px !important;
    padding-top: 22px !important;
}
@media (max-width: 600px) {
    .hero-meta {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 8px !important;
    }
    .hm-stat strong { font-size: 1.35rem; }
    .hm-stat span { font-size: .68rem; line-height: 1.2; }
    .hm-divider { display: none; }
}
@media (max-width: 420px) {
    .hero-meta { grid-template-columns: 1fr 1fr; }
    .hm-stat:nth-child(5) { /* third stat lands alone */
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 8px;
        border-top: 1px dashed var(--line);
    }
    .hm-stat:nth-child(5) strong, .hm-stat:nth-child(5) span { text-align: center; }
}

/* ── HERO VISUAL — much better mobile scaling ─────────────────────────── */
.hero-visual { min-height: auto; }

@media (max-width: 900px) {
    .hero-visual {
        min-height: 480px;
        margin-top: 8px;
    }
}
@media (max-width: 640px) {
    .hero-visual { min-height: 460px; }
    .hv-phone {
        transform: scale(.78);
        transform-origin: top center;
        margin: 0 auto;
    }
    /* Adjust phone heights when scaled so it doesn't leave huge gap */
    .hero-visual { padding-bottom: 0; }
}
@media (max-width: 480px) {
    .hv-phone {
        transform: scale(.72);
    }
    .hero-visual { min-height: 420px; }
}
@media (max-width: 380px) {
    .hv-phone {
        transform: scale(.65);
    }
    .hero-visual { min-height: 380px; }
}

/* Re-show floating cards on small tablets (640-900px) properly */
@media (min-width: 641px) and (max-width: 900px) {
    .hv-card-pin {
        top: 0;
        left: 0;
        width: 200px;
        transform: rotate(-3deg) scale(.9);
    }
    .hv-card-cert {
        bottom: 8%;
        right: 0;
        width: 200px;
        transform: rotate(3deg) scale(.9);
    }
    .hv-score { display: none; }
}

/* ── BUTTONS — better tap targets across the board ────────────────────── */
.btn, .btn-primary, .btn-outline, .btn-pay {
    min-height: 44px; /* iOS HIG minimum tap target */
}
@media (max-width: 480px) {
    .btn-lg { padding: 12px 22px; font-size: .95rem; }
}

/* ── TRUST STRIP — wrap better on mobile ──────────────────────────────── */
@media (max-width: 600px) {
    .trust-inner {
        gap: 14px 20px;
        padding: 4px 0;
        font-size: .78rem;
    }
    .trust-inner span { gap: 6px; }
    .trust-inner svg { width: 14px; height: 14px; }
}

/* ── EXAM STRIP — pause animation on smaller screens, faster scroll ──── */
@media (max-width: 768px) {
    .exam-strip-inner { animation-duration: 25s; }
}

/* ── SERVICE GRID — better mobile cards ───────────────────────────────── */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .service-card { padding: 22px 20px; }
    .service-card h3 { font-size: 1.1rem; }
}

/* ── TICKER BAR — better mobile sizing ────────────────────────────────── */
@media (max-width: 540px) {
    .ticker-bar { height: 36px; }
    .ticker-label { padding: 0 12px 0 14px; font-size: .68rem; }
    .ti { font-size: .76rem; padding: 0 18px; }
    .ticker-close { padding: 0 10px; }
}

/* ── SITE HEADER — tighten nav on mobile ──────────────────────────────── */
@media (max-width: 540px) {
    .site-header { padding: 12px 0; }
    .site-header .brand img { height: 30px; }
}

/* ── TYPOGRAPHY — responsive scale for headings ───────────────────────── */
h2 { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, .9rem + 1vw, 1.4rem); }
.eyebrow { font-size: .78rem; }

/* ── SECTION PADDING — tighter on mobile ──────────────────────────────── */
@media (max-width: 540px) {
    .section { padding: 56px 0; }
}
@media (max-width: 400px) {
    .section { padding: 44px 0; }
}

/* ── FOOTER — better mobile layout ────────────────────────────────────── */
@media (max-width: 480px) {
    .site-footer { padding: 40px 0 28px; }
    .footer-col h4 { font-size: .9rem; margin-bottom: 12px; }
    .footer-col li { margin-bottom: 8px; }
    .footer-col a { font-size: .86rem; }
    .footer-newsletter {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
    }
    .footer-newsletter form { flex-direction: column !important; }
    .footer-newsletter button { width: 100%; }
}

/* ── EVERYTHING ELSE — guard rails ────────────────────────────────────── */
/* Tables should scroll horizontally instead of breaking layout */
@media (max-width: 600px) {
    table { font-size: .85rem; }
    pre, code { font-size: .82rem; word-wrap: break-word; white-space: pre-wrap; }
}

/* Forms grow to full width on mobile */
@media (max-width: 540px) {
    .form-row-2 { grid-template-columns: 1fr !important; }
    input, textarea, select { font-size: 16px !important; /* iOS zoom prevention */ }
}

/* Cards never overflow */
.card, .service-card, .shop-card, .blog-card { max-width: 100%; }

/* ==========================================================================
   DARK MODE FIXES — pin "always-dark" surfaces + fix readability
   ========================================================================== */

[data-theme="dark"] {
    /* Pin a dedicated "always dark" surface color so sections that used
       var(--ink) as background don't flip to white. */
    --surface-dark: #0d120f;
}

/* These sections are designed to ALWAYS be dark (regardless of theme).
   In dark mode they would inherit white --ink, breaking readability. */
[data-theme="dark"] .stats-band,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .ticker-bar,
[data-theme="dark"] .cbt-stats-strip,
[data-theme="dark"] .nav-links .nav-cta,
[data-theme="dark"] .hv-score,
[data-theme="dark"] .prose pre {
    background: #0d120f !important;
    color: #f1f4ef;
}

/* The "split" CTA card that uses --ink at line ~594 */
[data-theme="dark"] .split-cta,
[data-theme="dark"] .cta-card-dark,
[data-theme="dark"] .cta-split,
[data-theme="dark"] [class*="cta-dark"] {
    background: #0d120f !important;
}

/* Cards/text inside "Nigeria's exam toolkit" CTA */
[data-theme="dark"] .cta-split-heading,
[data-theme="dark"] .cta-split-sub,
[data-theme="dark"] .cta-split-left { color: #fff; }
[data-theme="dark"] .cta-split-sub { color: rgba(255,255,255,.7); }
[data-theme="dark"] .cta-ghost-link { color: rgba(255,255,255,.75); }
[data-theme="dark"] .cta-ghost-link:hover { color: #fff; }
[data-theme="dark"] .cta-exam-pill {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
}

/* Make sure inner text/icons stay readable on the now-pinned dark sections */
[data-theme="dark"] .stats-band,
[data-theme="dark"] .stats-band * { color: #fff; }
[data-theme="dark"] .stat-item { border-color: rgba(255,255,255,.06); }

[data-theme="dark"] .site-footer { color: #b5bab5; }
[data-theme="dark"] .site-footer a { color: #b5bab5; }
[data-theme="dark"] .site-footer a:hover { color: #fff; }
[data-theme="dark"] .footer-col h4 { color: #fff; }

[data-theme="dark"] .footer-newsletter input {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
[data-theme="dark"] .footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }

/* Service grid cards already dark via earlier rules — ensure they are */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-card-inner {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .service-card p { color: var(--ink); }

/* "What we offer" eyebrow */
[data-theme="dark"] .eyebrow { color: var(--brand); background: rgba(46,161,90,.12); }

/* Section backgrounds — many sections use light backgrounds in light mode */
[data-theme="dark"] .section { background: transparent; }

/* Generic catch: any element with hardcoded #fff as inline style should
   be handled at the element level — but for common classes we patch here. */

/* CTA dark card from the home page (the "Nigeria's exam toolkit" card) */
[data-theme="dark"] .home-cta-card,
[data-theme="dark"] [class*="cta-card"] {
    background: #0d120f !important;
    color: #fff;
}

/* Exam strip (logos marquee) */
[data-theme="dark"] .exam-strip {
    background: var(--bg-2);
    border-color: var(--line);
}
[data-theme="dark"] .exam-strip-label { color: var(--muted); background: var(--bg); }

/* Trust strip (under hero, e.g. "Secure Paystack checkout") */
[data-theme="dark"] .trust-strip {
    background: var(--surface);
    border-color: var(--line);
}
[data-theme="dark"] .trust-inner { color: var(--ink-2); }

/* Hero background for dark mode — softer */
[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, rgba(46,161,90,.10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(46,161,90,.08), transparent 60%);
}
[data-theme="dark"] .hero-bg-mesh {
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
}
[data-theme="dark"] .hero-announcement {
    background: var(--surface);
    color: var(--ink-2);
    border-color: var(--line);
}
[data-theme="dark"] .hero-announcement .ha-badge { background: var(--brand); color: #fff; }

/* Activity feed under hero */
[data-theme="dark"] .hero-activity { color: var(--ink-2); }
[data-theme="dark"] .ha-feed strong { color: var(--ink); }

/* Hero meta stats border */
[data-theme="dark"] .hero-meta { border-top-color: var(--line); }

/* Page header backgrounds (about/contact/services) */
[data-theme="dark"] .page-header,
[data-theme="dark"] .page-hero {
    background:
        radial-gradient(ellipse 60% 70% at 70% 30%, rgba(46,161,90,.08), transparent 60%);
}

/* Generic cards/panels on inner pages */
[data-theme="dark"] .auth-card,
[data-theme="dark"] .verify-card,
[data-theme="dark"] .checkout-form-col,
[data-theme="dark"] .checkout-summary-col,
[data-theme="dark"] .order-summary,
[data-theme="dark"] .reg-service-card,
[data-theme="dark"] .reg-step-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .post-prose,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .branch-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

/* The home gallery cells (gm-cell) — keep colorful images visible */
[data-theme="dark"] .gm-overlay { background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6)); }

/* Customer testimonial section, FAQ section, etc. */
[data-theme="dark"] .testimonials,
[data-theme="dark"] .faq,
[data-theme="dark"] .cta-section {
    background: var(--bg);
    color: var(--ink);
}

/* "What we offer", "Eight services" copy in dark mode */
[data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--ink); }
[data-theme="dark"] p { color: var(--ink-2); }

/* Form inputs across the public site */
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not(.bulk-cb),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-2);
    color: var(--ink);
    border-color: var(--line);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--muted); }

/* Buttons that are outline style — fix on dark bg */
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .btn-secondary:hover {
    background: var(--surface);
    border-color: var(--brand);
    color: var(--brand);
}

/* Code blocks remain dark, but bump color contrast */
[data-theme="dark"] code { background: var(--bg-2); color: #f1f4ef; }

/* Badges that used hardcoded light backgrounds */
[data-theme="dark"] .badge-amber,
[data-theme="dark"] [class*="-amber"] {
    background: rgba(217,119,6,.12);
    color: #fbbf24;
}

/* ==========================================================================
   VISION & MISSION SECTION
   ========================================================================== */
.vm-section {
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, var(--brand-50), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, var(--brand-50), transparent 60%);
}
.vm-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}
.vm-head h2 { margin-bottom: 12px; }
.vm-head .lead { font-size: 1.02rem; color: var(--muted); }

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.vm-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.8,.2,1),
                box-shadow .25s ease,
                border-color .2s ease;
}
.vm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--brand-50), transparent 50%);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}
.vm-card > * { position: relative; z-index: 1; }

.vm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border-color: var(--brand-100);
}

.vm-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(19,122,58,.18);
}
.vm-card-icon svg { width: 26px; height: 26px; color: #fff; }

.vm-card-vision .vm-card-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-400));
}
.vm-card-mission .vm-card-icon {
    background: linear-gradient(135deg, #b45309, #fbbf24);
    box-shadow: 0 8px 20px rgba(180,83,9,.18);
}

.vm-card-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.vm-card-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.01em;
}

@media (max-width: 768px) {
    .vm-grid { grid-template-columns: 1fr; gap: 16px; }
    .vm-head { margin-bottom: 36px; }
    .vm-card { padding: 28px 24px; }
    .vm-card-text { font-size: 1.1rem; }
}

/* Dark mode */
[data-theme="dark"] .vm-section {
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(46,161,90,.08), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(46,161,90,.06), transparent 60%);
}
[data-theme="dark"] .vm-card {
    background: var(--surface);
    border-color: var(--line);
}
[data-theme="dark"] .vm-card::before {
    background: radial-gradient(circle at 100% 0%, rgba(46,161,90,.10), transparent 50%);
}
[data-theme="dark"] .vm-card-text { color: var(--ink); }

/* ==========================================================================
   LEGAL PAGES (Terms / Privacy / Cookies / Refund)
   ========================================================================== */
.legal-hero {
    padding: 64px 0 32px;
    background:
        radial-gradient(ellipse 60% 70% at 70% 30%, var(--brand-50), transparent 60%);
    border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
    letter-spacing: -.02em;
    margin: 8px 0 6px;
}
.legal-updated {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
}

.legal-section { padding: 56px 0 96px; }
.legal-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1100px;
}

/* Sticky TOC sidebar */
.legal-toc {
    position: sticky;
    top: 88px;
    font-size: .88rem;
}
.legal-toc strong {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 700;
}
.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--line);
}
.legal-toc li { margin: 0; }
.legal-toc a {
    display: block;
    padding: 6px 14px;
    color: var(--ink-2);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1px;
    line-height: 1.45;
    transition: color .15s, border-color .15s;
}
.legal-toc a:hover {
    color: var(--brand);
    border-left-color: var(--brand);
}

/* Article body */
.legal-prose {
    max-width: 760px;
}
.legal-prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--ink);
    scroll-margin-top: 88px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--ink);
}
.legal-prose p {
    font-size: .98rem;
    line-height: 1.7;
    color: var(--ink-2);
    margin: 10px 0;
}
.legal-prose ul, .legal-prose ol {
    padding-left: 24px;
    margin: 10px 0 16px;
}
.legal-prose li {
    font-size: .96rem;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 4px 0;
}
.legal-prose a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-prose code {
    background: var(--bg-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .86em;
    font-family: ui-monospace, SFMono-Regular, monospace;
}
.legal-foot {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
}

/* Dark mode */
[data-theme="dark"] .legal-hero {
    background: radial-gradient(ellipse 60% 70% at 70% 30%, rgba(46,161,90,.08), transparent 60%);
}
[data-theme="dark"] .legal-toc strong { color: var(--muted); }
[data-theme="dark"] .legal-prose code { background: var(--bg-2); color: var(--ink-2); }

@media (max-width: 880px) {
    .legal-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .legal-toc {
        position: static;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--line);
    }
    .legal-section { padding: 36px 0 64px; }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
    padding: 14px 18px;
    transform: translateY(140%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
    max-width: 920px;
    margin: 0 auto;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.cookie-banner-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}
.cookie-banner-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.cookie-banner-body strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .98rem;
    margin-bottom: 2px;
}
.cookie-banner-body p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--muted);
}
.cookie-banner-body p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.cookie-banner-link {
    color: var(--muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 4px;
}
.cookie-banner-link:hover { color: var(--ink); text-decoration: underline; }

.cookie-banner-accept {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}
.cookie-banner-accept:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cookie-banner-accept:active { transform: translateY(0); }

[data-theme="dark"] .cookie-banner {
    background: #1f2421;
    border-color: rgba(255,255,255,.08);
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px; right: 12px; bottom: 12px;
        padding: 14px 16px;
    }
    .cookie-banner-inner { gap: 12px; }
    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }
    .cookie-banner-accept { flex: 1; max-width: 200px; }
}

/* =================================================================
   PRICING CARDS (public CBT page, etc.)
   ================================================================= */
.pricing-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}
.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.pricing-card-featured {
    border-color: var(--brand);
    box-shadow: 0 12px 28px rgba(19,122,58,.12);
}
.pricing-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: rgba(0,0,0,.05);
    color: var(--ink-2);
    margin-bottom: 14px;
    width: max-content;
}
.pricing-tag-featured {
    background: var(--brand);
    color: #fff;
}
.pricing-price {
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.pricing-amount {
    font-family: var(--font-display, inherit);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.pricing-period {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 500;
}
.pricing-feat {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: .92rem;
    color: var(--ink-2);
    line-height: 1.5;
    flex: 1;
}
.pricing-feat li { padding: 0; }
.pricing-feat strong { color: var(--ink); }
.btn-block { display: inline-flex; justify-content: center; width: 100%; }

@media (max-width: 640px) {
    .pricing-pair { grid-template-columns: 1fr; }
}

/* Dark mode tweaks */
[data-theme="dark"] .pricing-card {
    background: var(--surface);
    border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .pricing-tag {
    background: rgba(255,255,255,.06);
    color: var(--ink-2);
}
