/* ==========================================================================
   EduConnect Zimbabwe — website design system
   Brand colours come straight from the logo: book blue + node green.
   ========================================================================== */

:root {
    --blue-900: #04254d;
    --blue-800: #023a78;
    --blue-700: #01468f;
    --blue-600: #0151a6;
    --blue-500: #1f6fd1;
    --blue-100: #dbe8fa;
    --blue-50:  #eef4fc;

    --green-700: #146b36;
    --green-600: #1b8a46;
    --green-500: #25a559;
    --green-100: #d5f0df;
    --green-50:  #eaf7ef;

    --sun:      #f5b301;
    --sun-50:   #fff6dc;

    --ink:      #0b1b33;
    --ink-2:    #43536b;
    --ink-3:    #6b7a90;
    --line:     #e3e9f2;
    --bg:       #ffffff;
    --bg-soft:  #f5f8fc;
    --navy:     #081a33;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 12px;
    --radius:    20px;
    --radius-lg: 32px;
    --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06), 0 2px 8px rgba(11, 27, 51, .04);
    --shadow:    0 10px 30px -12px rgba(11, 27, 51, .18);
    --shadow-lg: 0 30px 60px -20px rgba(4, 37, 77, .30);

    --container: 1200px;
    --header-h:  76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ── Layout ────────────────────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.grid { display: grid; gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-600); margin-bottom: 16px;
}
.eyebrow::before {
    content: ""; width: 26px; height: 10px; flex: none;
    background:
        radial-gradient(circle at 5px 5px, var(--blue-600) 4px, transparent 4.5px),
        radial-gradient(circle at 21px 5px, var(--green-600) 4px, transparent 4.5px),
        linear-gradient(var(--ink-3), var(--ink-3)) center / 12px 2px no-repeat;
}
.eyebrow--light { color: var(--green-100); }

/* Highlighted word — green with a hand-drawn underline */
.hl { position: relative; z-index: 0; color: var(--green-600); white-space: nowrap; }
.hl::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 2, 197 9' stroke='%23f5b301' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    z-index: -1;
}
.hl--blue { color: var(--blue-600); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 1.1em; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 81, 166, .7); }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--green { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(27, 138, 70, .7); }
.btn--green:hover { background: var(--green-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--white { background: #fff; color: var(--blue-700); }
.btn--white:hover { color: var(--blue-800); box-shadow: var(--shadow); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 27, 51, .4); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    position: relative; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
    font-weight: 600; font-size: .95rem; color: var(--ink-2);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--blue-600); }
.nav a.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%; background: var(--green-600);
}
.header-cta { display: flex; gap: 10px; }
.menu-toggle {
    display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px;
    border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--ink);
}

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0; z-index: 150; visibility: hidden;
}
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 26, 51, .45); opacity: 0; transition: opacity .3s; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
    background: #fff; padding: 20px 24px 32px; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer__top img { height: 30px; width: auto; }
.drawer nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.drawer nav a.is-active { color: var(--blue-600); }
.drawer__cta { margin-top: auto; display: grid; gap: 12px; }
body.no-scroll { overflow: hidden; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 110px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 55% at 85% 20%, var(--green-50) 0%, transparent 60%),
        radial-gradient(55% 60% at 10% 10%, var(--blue-50) 0%, transparent 65%);
}
.hero__network {
    position: absolute; inset: 0; z-index: -1; opacity: .6; pointer-events: none; width: 100%; height: 100%;
    /* keep the node network out from behind the headline column */
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 60%, #000 85%);
            mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 60%, #000 85%);
}
.hero .split { grid-template-columns: 1.05fr .95fr; }
.hero__pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
    border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 26px;
}
.hero__pill span { background: var(--green-600); color: #fff; font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.hero__chips { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero__chips strong { font-size: .85rem; color: var(--ink-3); margin-right: 4px; font-weight: 600; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2);
}
.chip i { color: var(--green-600); }

/* Hero visual — photo stack with floating UI cards */
.hero__visual { position: relative; min-height: 540px; }
.hero__photo {
    position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { top: 0; right: 0; width: 82%; height: 78%; border-radius: 180px 32px 32px 32px; }
.hero__photo--small { bottom: 0; left: 0; width: 44%; height: 46%; border: 8px solid #fff; border-radius: 28px 28px 28px 120px; }
.hero__node { position: absolute; border-radius: 50%; }
.hero__node--blue  { width: 64px; height: 64px; background: var(--blue-600); top: -18px; left: 12%; }
.hero__node--green { width: 38px; height: 38px; background: var(--green-600); bottom: 30%; right: -14px; }
.hero__node--sun   { width: 18px; height: 18px; background: var(--sun); top: 38%; left: 8%; }

.float-card {
    position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 14px 18px;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
    font-size: .88rem; line-height: 1.35; animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .95rem; color: var(--ink); }
.float-card small { color: var(--ink-3); }
.float-card--a { top: 14%; left: 0; }
.float-card--b { bottom: 12%; right: 2%; animation-delay: -3s; }
.float-card--c { top: 50%; left: 30%; animation-delay: -1.5s; padding: 10px 14px; }
.icon-badge {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    display: grid; place-items: center; font-size: 1.2rem;
    background: var(--blue-50); color: var(--blue-600);
}
.icon-badge--green { background: var(--green-50); color: var(--green-600); }
.icon-badge--sun { background: var(--sun-50); color: #b98500; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Levels strip ──────────────────────────────────────────────────────── */

.levels { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.levels .container { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 26px; }
.levels__label { font-weight: 700; font-size: .85rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; flex: none; }
.levels__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.levels__row { display: flex; gap: 44px; width: max-content; animation: marquee 34s linear infinite; }
.levels__row span { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink-2); white-space: nowrap; }
.levels__row span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); }
.levels__row span:nth-child(even)::before { background: var(--blue-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Audience bento ────────────────────────────────────────────────────── */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 20px; }
.bento-card {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); isolation: isolate;
    padding: 72px 30px 30px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
    min-height: 300px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.bento-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.bento-card:hover img { transform: scale(1.05); }
.bento-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 26, 51, .12) 0%, rgba(8, 26, 51, .35) 35%, rgba(8, 26, 51, .92) 100%); }
.bento-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.bento-card p { color: rgba(255, 255, 255, .86); margin-bottom: 14px; max-width: 420px; }
.bento-card .link-arrow { color: #fff; }
.bento-card__tag {
    position: absolute; top: 22px; left: 22px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .8rem; font-weight: 700;
}
.bento-card--lg { grid-column: span 4; grid-row: span 2; }
.bento-card--md { grid-column: span 2; }
.bento-card--half { grid-column: span 3; }
.bento-card--solid { background: var(--blue-600); justify-content: space-between; padding-top: 30px; }
.bento-card--solid::after { display: none; }
.bento-card--solid.is-green { background: var(--green-600); }
.bento-card--solid .bento-card__icon { font-size: 2.2rem; opacity: .9; }

/* ── Steps (connected nodes) ───────────────────────────────────────────── */

.tabs { display: inline-flex; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 48px; box-shadow: var(--shadow-sm); }
.tabs button {
    border: 0; background: transparent; padding: 10px 22px; border-radius: 999px;
    font-weight: 700; color: var(--ink-2); transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel[hidden] { display: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
    content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-100) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step__node {
    width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff;
    background: var(--blue-600); box-shadow: 0 0 0 8px var(--bg-soft), 0 0 0 9px var(--blue-100);
    position: relative;
}
.step:nth-child(2) .step__node { background: var(--green-600); box-shadow: 0 0 0 8px var(--bg-soft), 0 0 0 9px var(--green-100); }
.step:nth-child(3) .step__node { background: var(--blue-800); }
.step__node::after {
    counter-increment: step; content: counter(step);
    position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--sun); color: var(--ink); font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; }

/* ── Feature grid (dark) ───────────────────────────────────────────────── */

.section--dark { background: var(--navy); color: rgba(255, 255, 255, .78); overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head p { color: rgba(255, 255, 255, .7); }
.section--dark::before {
    content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
    right: -220px; top: -220px; background: radial-gradient(circle, rgba(31, 111, 209, .35), transparent 65%);
}
.section--dark::after {
    content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
    left: -200px; bottom: -240px; background: radial-gradient(circle, rgba(37, 165, 89, .25), transparent 65%);
}
.section--dark .container { position: relative; z-index: 1; }

.features { grid-template-columns: repeat(4, 1fr); }
.feature {
    padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); transform: translateY(-4px); }
.feature__icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem;
    margin-bottom: 20px; background: rgba(31, 111, 209, .18); color: #8cbcff;
}
.feature:nth-child(3n+2) .feature__icon { background: rgba(37, 165, 89, .18); color: #7fe0a6; }
.feature:nth-child(3n) .feature__icon { background: rgba(245, 179, 1, .15); color: #ffd464; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; margin: 0; }

/* Payment badges */
.pay-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; justify-content: center; align-items: center; }
.pay-row small { color: rgba(255, 255, 255, .6); margin-right: 8px; font-weight: 600; }
.pay-badge { padding: 8px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; font-size: .88rem; }

/* ── Facts ─────────────────────────────────────────────────────────────── */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.fact__value { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--blue-600); margin-bottom: 10px; }
.fact:nth-child(even) .fact__value { color: var(--green-600); }
.fact p { margin: 0; color: var(--ink-2); font-weight: 600; }

/* ── Media split ───────────────────────────────────────────────────────── */

.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-frame::before {
    content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg);
    background: var(--green-50); border: 2px dashed var(--green-100); z-index: -1;
}
.split--reverse .media-frame::before { inset: 24px 24px -24px -24px; background: var(--blue-50); border-color: var(--blue-100); }
.media-frame .float-card { bottom: 28px; left: -28px; animation: none; }
.split--reverse .media-frame .float-card { left: auto; right: -28px; }

.checklist { display: grid; gap: 14px; margin: 26px 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.checklist i {
    flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
    display: grid; place-items: center; font-size: .85rem; background: var(--green-600); color: #fff;
}
.checklist strong { color: var(--ink); }

/* ── App banner ────────────────────────────────────────────────────────── */

.app-banner {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-600) 45%, var(--green-600) 130%);
    color: rgba(255, 255, 255, .85); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
}
.app-banner__body { padding: clamp(36px, 6vw, 72px); position: relative; z-index: 1; }
.app-banner h2 { color: #fff; }
.app-banner__visual { position: relative; align-self: stretch; min-height: 380px; }
.app-banner__visual img {
    position: absolute; bottom: 0; right: 12%; width: 62%; height: 88%; object-fit: cover;
    border-radius: 36px 36px 0 0; border: 10px solid rgba(255, 255, 255, .16); border-bottom: 0;
}
.app-banner__rings { position: absolute; inset: 0; pointer-events: none; }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
    border-radius: 14px; background: #0b0f17; color: #fff; border: 1px solid rgba(255, 255, 255, .18);
    transition: transform .25s var(--ease);
}
.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn i { font-size: 1.7rem; }
.store-btn small { display: block; font-size: .7rem; opacity: .75; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-btn.is-soon { opacity: .75; cursor: default; }
.store-btn.is-soon:hover { transform: none; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 26px;
    transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.05rem;
    display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue-600); font-size: 1.3rem; font-weight: 600; transition: transform .3s var(--ease), background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--green-600); color: #fff; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* ── Contact ───────────────────────────────────────────────────────────── */

.contact-wrap {
    display: grid; grid-template-columns: .85fr 1.15fr; border-radius: var(--radius-lg);
    overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.contact-aside {
    position: relative; padding: clamp(32px, 5vw, 56px); color: rgba(255, 255, 255, .82);
    background: var(--navy); overflow: hidden; isolation: isolate;
}
.contact-aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: -1; }
.contact-aside h2, .contact-aside h3 { color: #fff; }
.contact-list { display: grid; gap: 22px; margin-top: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-badge { background: rgba(255, 255, 255, .1); color: #fff; }
.contact-list small { display: block; color: rgba(255, 255, 255, .6); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; }
.contact-form { padding: clamp(32px, 5vw, 56px); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field label span { color: var(--green-600); }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
    background: var(--bg-soft); font: inherit; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%2343536b' d='M1.6 5.1a.8.8 0 0 1 1.1 0L8 10.3l5.3-5.2a.8.8 0 1 1 1.1 1.1l-5.8 5.8a.8.8 0 0 1-1.1 0L1.6 6.2a.8.8 0 0 1 0-1.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 209, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; background: #fff6f6; }
.field-error { color: #c23434; font-size: .85rem; font-weight: 600; }
.form-note { font-size: .85rem; color: var(--ink-3); margin: 16px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px;
    font-weight: 600; font-size: .95rem;
}
.alert--success { background: var(--green-50); color: var(--green-700); }
.alert--error { background: #fdeeee; color: #a82b2b; }
.alert--warning { background: var(--sun-50); color: #7c5a00; }
.alert--info { background: var(--blue-50); color: var(--blue-700); }

/* Contact cards (contact page) */
.contact-cards { grid-template-columns: repeat(4, 1fr); margin-top: -64px; position: relative; z-index: 2; }
.contact-card {
    background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card .icon-badge { margin-bottom: 18px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink-2); font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--blue-600); }

/* ── Page hero (inner pages) ───────────────────────────────────────────── */

.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 12vw, 150px); color: rgba(255, 255, 255, .85);
    background: var(--navy);
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 26, 51, .96) 30%, rgba(1, 70, 143, .55) 100%); }
.page-hero h1 { color: #fff; max-width: 780px; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 620px; }
.page-hero .hl { color: #7fe0a6; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 600; margin-bottom: 20px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }

/* ── User manual (embedded document) ───────────────────────────────────── */

.page-hero--compact { padding-bottom: clamp(64px, 8vw, 96px); }
.doc-viewer { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.doc-viewer__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.doc-viewer__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.doc-viewer__title i { color: var(--blue-600); font-size: 1.2rem; }
.doc-viewer__frame { display: block; width: 100%; height: min(82vh, 1100px); min-height: 520px; border: 0; background: #fff; }
.doc-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 64px) 24px; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.doc-empty .icon-badge { width: 60px; height: 60px; font-size: 1.6rem; margin: 0 auto 20px; }
.doc-empty p { color: var(--ink-2); margin-bottom: 28px; }

/* ── About page bits ───────────────────────────────────────────────────── */

.mv-grid { grid-template-columns: 1fr 1fr; }
.mv-card { padding: 38px; border-radius: var(--radius-lg); background: var(--blue-50); position: relative; overflow: hidden; }
.mv-card--green { background: var(--green-50); }
.mv-card .icon-badge { background: #fff; margin-bottom: 20px; width: 54px; height: 54px; font-size: 1.4rem; }
.mv-card p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }

.values { grid-template-columns: repeat(4, 1fr); }
.value-card { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .icon-badge { margin-bottom: 20px; }
.value-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.quote-block {
    font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: var(--ink);
    padding-left: 28px; border-left: 4px solid var(--green-600); margin: 0;
}

/* ── How it works: audience sections ───────────────────────────────────── */

.audience-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.audience-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.audience-nav .container::-webkit-scrollbar { display: none; }
.audience-nav a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
    font-weight: 700; font-size: .92rem; color: var(--ink-2); border: 1px solid var(--line); background: #fff;
}
.audience-nav a:hover, .audience-nav a.is-active { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }

.flow { display: grid; gap: 16px; counter-reset: flow; margin: 28px 0 0; padding: 0; list-style: none; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; position: relative; }
.flow li:not(:last-child)::after {
    content: ""; position: absolute; left: 21px; top: 46px; bottom: -14px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--blue-100) 0 6px, transparent 6px 11px);
}
.flow li::before {
    counter-increment: flow; content: counter(flow);
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue-600); color: #fff; font-weight: 800;
}
.flow li:nth-child(even)::before { background: var(--green-600); }
.flow h4 { margin: 8px 0 4px; font-size: 1.05rem; }
.flow p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* ── CTA band ──────────────────────────────────────────────────────────── */

.cta-band {
    position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
    padding: clamp(40px, 7vw, 84px); text-align: center; color: rgba(255, 255, 255, .85);
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(1, 70, 143, .93), rgba(20, 107, 54, .9)); }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* ── Legal pages ───────────────────────────────────────────────────────── */

.legal { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--radius); background: var(--bg-soft); }
.legal__toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 14px; }
.legal__toc a { display: block; padding: 6px 0; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.legal__toc a:hover { color: var(--blue-600); }
.prose { max-width: 760px; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin: 48px 0 14px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose ul { list-style: none; margin: 0 0 1rem; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); }
.updated { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .85rem; font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); padding-top: 80px; position: relative; overflow: hidden; }
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--blue-600) 0 50%, var(--green-600) 50% 100%);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: #7fe0a6; margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff; transition: background .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--green-600); transform: translateY(-2px); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; font-size: .88rem;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .65); }
.footer-bottom a:hover { color: #fff; }
.footer-tagline { font-weight: 800; letter-spacing: -.01em; color: #fff; }
.footer-tagline span:nth-child(2) { color: #7fe0a6; }

/* ── Floating widgets ──────────────────────────────────────────────────── */

.whatsapp-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: #25d366;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.07); }
.whatsapp-fab::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
    animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.whatsapp-fab__label {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
    padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow);
    font-size: .88rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
}
.whatsapp-fab:hover .whatsapp-fab__label,
.whatsapp-fab:focus-visible .whatsapp-fab__label { opacity: 1; transform: translate(0, -50%); }

.to-top {
    position: fixed; right: 28px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.no-whatsapp .to-top { bottom: 28px; }

.cookie-banner {
    position: fixed; left: 22px; bottom: 22px; z-index: 120; max-width: 420px;
    background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 8px; }
.cookie-banner h4 i { color: var(--sun); }
.cookie-banner p { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.cookie-banner .btn-row { gap: 10px; }

/* ── Error pages ───────────────────────────────────────────────────────── */

.error-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code {
    font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -.06em;
    background: linear-gradient(120deg, var(--blue-600), var(--green-600)); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px;
}
.error-page p { color: var(--ink-2); max-width: 480px; margin: 0 auto 32px; }
.error-page .btn-row { justify-content: center; }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

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

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1240px) {
    .nav, .header-cta { display: none; }
    .menu-toggle { display: inline-flex; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .split, .hero .split { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .hero__visual { min-height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-card--lg, .bento-card--md, .bento-card--half { grid-column: span 2; grid-row: auto; }
    .bento-card--md { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { display: none; }
    .facts { grid-template-columns: 1fr 1fr; }
    .app-banner { grid-template-columns: 1fr; }
    .app-banner__visual { min-height: 300px; }
    .app-banner__visual img { right: 50%; transform: translateX(50%); width: 60%; }
    .contact-wrap { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .legal { grid-template-columns: 1fr; gap: 32px; }
    .legal__toc { position: static; }
    .media-frame .float-card { left: 12px !important; right: auto !important; bottom: 12px; }
    .media-frame::before { display: none; }
}

@media (max-width: 600px) {
    body { font-size: .98rem; }
    .container { padding: 0 16px; }
    .section-head { margin-bottom: 40px; }
    .hero__visual { min-height: 400px; }
    .float-card { font-size: .8rem; padding: 10px 12px; }
    .float-card .icon-badge { width: 34px; height: 34px; font-size: 1rem; }
    .float-card--c { display: none; }
    .bento { grid-template-columns: 1fr; }
    .bento-card--lg, .bento-card--md, .bento-card--half { grid-column: auto; }
    .bento-card { min-height: 280px; padding: 68px 22px 24px; }
    .bento-card--solid { padding-top: 24px; }
    .features, .contact-cards, .values { grid-template-columns: 1fr; }
    .facts { gap: 12px; }
    .fact { padding: 22px 18px; }
    .fact p { font-size: .9rem; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .levels .container { flex-direction: column; align-items: flex-start; gap: 14px; }
    .levels__track { width: 100%; }
    .tabs { display: flex; width: 100%; }
    .tabs button { flex: 1; padding: 10px 12px; font-size: .9rem; }
    .btn-row .btn { flex: 1 1 auto; }
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .whatsapp-fab { right: 16px; bottom: 16px; }
    .to-top { right: 22px; bottom: 86px; }
}
