/* ==========================================================================
   Excela EduTech - Design System
   Palette derived from the Excela logo (navy / purple / teal)
   ========================================================================== */

:root {
    --ink: #101A2D;
    --ink-soft: #1e2a44;
    --purple: #5E2CEE;
    --purple-dark: #4a1fc0;
    --purple-soft: #f3efff;
    --teal: #0CD4C2;
    --teal-dark: #06a99a;
    --teal-soft: #e6fbf8;

    --slate: #51607a;
    --slate-light: #7a879e;
    --line: #e7e9f1;
    --line-soft: #f0f1f7;

    --bg: #ffffff;
    --bg-tint: #f7f8fc;
    --bg-tint-2: #f5f3ff;

    --white: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --amber: #d97706;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(16, 26, 45, .05);
    --shadow: 0 10px 30px -12px rgba(16, 26, 45, .14);
    --shadow-lg: 0 30px 60px -24px rgba(16, 26, 45, .28);

    --grad: linear-gradient(120deg, var(--purple) 0%, #7a4bff 55%, var(--teal) 130%);
    --grad-ink: linear-gradient(150deg, #101a2d 0%, #1b2748 60%, #241b52 100%);

    --maxw: 1180px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--slate); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.tint { background: var(--bg-tint); }
.tint-purple { background: var(--bg-tint-2); }
.ink-bg { background: var(--grad-ink); color: #dfe4f0; }
.ink-bg h1, .ink-bg h2, .ink-bg h3 { color: #fff; }
.ink-bg p { color: #b9c2d6; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: inherit; font-size: .97rem; font-weight: 600;
    padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px -8px rgba(94, 44, 238, .6); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { background: var(--teal-dark); color:#fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 30px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand .wordmark { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand .wordmark span { color: var(--teal-dark); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
    transition: background .15s, color .15s;
}
.nav-links a.nav-link:hover { background: var(--purple-soft); color: var(--purple); }
.nav-link .chev { width: 15px; height: 15px; opacity: .6; }

.has-menu .dropdown {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); padding: 12px; width: 620px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 70;
}
.has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: 13px; padding: 12px 13px; border-radius: 12px; align-items: center; }
.dropdown a:hover { background: var(--bg-tint); }
.dropdown .di { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); }
.dropdown .di svg { width: 19px; height: 19px; }
.dropdown a > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropdown .dt { font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.2; }
.dropdown .dd { font-size: .79rem; color: var(--slate-light); line-height: 1.3; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 90px; background: #fff; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(rgba(94, 44, 238, .11) 1.4px, transparent 1.4px),
        radial-gradient(520px 360px at 78% 30%, rgba(12, 212, 194, .10), transparent 62%),
        radial-gradient(480px 380px at 8% 88%, rgba(94, 44, 238, .09), transparent 60%);
    background-size: 26px 26px, 100% 100%, 100% 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.hero .container { position: relative; z-index: 2; }

/* Scattered confetti dots */
.hero-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-dots span { position: absolute; border-radius: 50%; opacity: .55; }

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600;
    color: var(--purple); background: var(--purple-soft); border: 1px solid #e3dbff;
    padding: 7px 14px; border-radius: 999px;
    letter-spacing: .03em; text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.7rem); }
.hero h1 .accent { color: var(--purple); }

.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.hero-textlink svg { width: 18px; height: 18px; color: var(--purple); transition: transform .18s; }
.hero-textlink:hover { color: var(--purple); }
.hero-textlink:hover svg { transform: translateX(4px); }

.hero-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta .m { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--slate); font-weight: 500; }
.hero-meta svg { width: 18px; height: 18px; color: var(--teal-dark); }

/* Floating product visual */
.hero-visual { position: relative; min-height: 460px; }
.hv-disc {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 380px; height: 380px; border-radius: 50%;
    background: linear-gradient(150deg, var(--purple) 0%, #7a4bff 52%, var(--teal) 120%);
    box-shadow: 0 46px 90px -34px rgba(94, 44, 238, .55);
}
.hv-disc::after {
    content: ""; position: absolute; inset: 26px; border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, .35);
}
.hv-card {
    position: absolute; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-lg); padding: 15px 17px; z-index: 3;
}
.hv-l { display: block; font-size: .74rem; color: var(--slate-light); font-weight: 600; }
.hv-v { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.hv-v-sm { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); }
.hv-s { display: block; font-size: .72rem; color: var(--slate-light); margin-top: 2px; }
.hv-ic { flex: 0 0 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.hv-ic svg { width: 20px; height: 20px; }
.hv-ic.teal { background: var(--teal-soft); color: var(--teal-dark); }
.hv-ic.purple { background: var(--purple-soft); color: var(--purple); }

.hv-attendance { top: 20%; left: -6%; display: flex; align-items: center; gap: 13px; }
.hv-fees { bottom: 12%; right: -8%; width: 208px; }
.hv-fees-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.hv-fees-head .hv-v { font-size: 1.25rem; }
.hv-chart { display: flex; align-items: flex-end; gap: 7px; height: 58px; }
.hv-chart span { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad); opacity: .9; }
.hv-chip { bottom: 20%; left: -4%; display: flex; align-items: center; gap: 12px; }

.hv-badge {
    position: absolute; top: 8%; right: 4%; z-index: 3;
    display: flex; align-items: center; gap: 10px;
    background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px;
    box-shadow: var(--shadow-lg);
}
.hv-badge-n { font-size: 1.9rem; font-weight: 800; color: var(--teal); line-height: 1; }
.hv-badge-t { font-size: .74rem; font-weight: 600; color: #c3ccdf; line-height: 1.2; }

.hv-live {
    position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 8px; z-index: 3;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: .78rem; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(4px);
}
.hv-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }

/* Institute Pulse Panel */
.pulse {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.pulse-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pulse-head .t { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.pulse-head .t svg { width: 18px; height: 18px; color: var(--purple); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--success); background: #ecfdf3; padding: 5px 11px; border-radius: 999px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pulse-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg-tint); }
.tile .lbl { font-size: .76rem; color: var(--slate-light); font-weight: 600; display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.tile .lbl svg { width: 15px; height: 15px; }
.tile .val { font-size: 1.85rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tile .val small { font-size: .95rem; font-weight: 700; }
.tile .sub { font-size: .74rem; color: var(--slate-light); margin-top: 3px; }
.tile.t-teal { background: var(--teal-soft); border-color: #c6f4ee; }
.tile.t-teal .val { color: var(--teal-dark); }
.tile.t-purple { background: var(--purple-soft); border-color: #e3dbff; }
.tile.t-purple .val { color: var(--purple); }
.tile.t-amber { background: #fff7ed; border-color: #fde9cf; }
.tile.t-amber .val { color: var(--amber); }
.pulse-foot { margin-top: 14px; font-size: .76rem; color: var(--slate-light); display: flex; align-items: center; gap: 8px; }
.pulse-foot svg { width: 15px; height: 15px; }

/* ---------- Section header ---------- */
.sec-head { max-width: 680px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.tag { font-size: .78rem; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; display: block; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcd3ff; }
.card .ic {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--purple-soft); color: var(--purple); margin-bottom: 16px;
}
.card .ic svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; }
.card.pain .ic { background: #fef2f2; color: var(--danger); }

/* Bento module grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento .mcard { position: relative; overflow: hidden; }
.bento .flagship { grid-column: span 2; grid-row: span 2; background: var(--grad-ink); color: #fff; border: 0; }
.bento .flagship h3, .bento .flagship p { color: #fff; }
.bento .flagship p { color: #c3ccdf; }
.bento .flagship .ic { background: rgba(255,255,255,.12); color: var(--teal); }
.mcard { display: flex; flex-direction: column; }
.mcard .arrow { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--purple); }
.bento .flagship .arrow { color: var(--teal); }
.mcard .arrow svg { width: 16px; height: 16px; transition: transform .18s; }
.mcard:hover .arrow svg { transform: translateX(4px); }
.flag-badge { position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 700; color: var(--ink); background: var(--teal); padding: 5px 11px; border-radius: 999px; }

/* Economics stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 34px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat .num { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .cap { font-weight: 600; color: var(--ink); margin-top: 6px; }
.stat p { font-size: .9rem; margin: 8px 0 0; }

/* Persona split */
.persona { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.persona-card { border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.persona-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.persona-card.owner .ic { background: var(--purple-soft); color: var(--purple); }
.persona-card.teacher .ic { background: var(--teal-soft); color: var(--teal-dark); }
.persona-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.persona-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--slate); margin-bottom: 10px; }
.persona-card li svg { width: 18px; height: 18px; color: var(--teal-dark); flex: 0 0 18px; margin-top: 2px; }

/* Feature list rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feature-row.rev .fr-media { order: -1; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.checklist li svg { width: 22px; height: 22px; color: var(--purple); flex: 0 0 22px; background: var(--purple-soft); border-radius: 7px; padding: 3px; }
.checklist .ct { font-weight: 600; color: var(--ink); display: block; font-size: .97rem; }
.checklist .cd { font-size: .88rem; color: var(--slate); }

/* ---------- UI mock frames ---------- */
.mock {
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.mock-bar .d { width: 11px; height: 11px; border-radius: 50%; background: #d5d9e4; }
.mock-bar .d:nth-child(1){background:#ff5f57}.mock-bar .d:nth-child(2){background:#febc2e}.mock-bar .d:nth-child(3){background:#28c840}
.mock-bar .u { margin-left: 12px; font-size: .78rem; color: var(--slate-light); background:#fff; border:1px solid var(--line); padding:4px 12px; border-radius:8px; }
.mock-body { padding: 20px; }
.mock-app { display: grid; grid-template-columns: 190px 1fr; min-height: 340px; }
.mock-side { background: var(--grad-ink); padding: 18px 14px; }
.mock-side .logo { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 22px; padding: 0 6px;}
.mock-side .logo span { color: var(--teal); }
.mock-nav { list-style: none; padding: 0; margin: 0; }
.mock-nav li { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; color: #aab4cc; font-size: .84rem; margin-bottom: 3px; }
.mock-nav li svg { width: 16px; height: 16px; }
.mock-nav li.active { background: rgba(255,255,255,.12); color: #fff; }
.mock-main { padding: 20px; background: var(--bg-tint); }
.mock-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-h .title { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.mstat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.mstat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mstat .l { font-size: .72rem; color: var(--slate-light); font-weight: 600; }
.mstat .v { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.mstat .v.teal { color: var(--teal-dark); }
.mstat .v.purple { color: var(--purple); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.chart .bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; }
.mrow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .85rem; }
.mrow:last-child { border-bottom: 0; }
.mrow .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.pill { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill.green { background: #ecfdf3; color: var(--success); }
.pill.red { background: #fef2f2; color: var(--danger); }
.pill.amber { background: #fff7ed; color: var(--amber); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--purple); box-shadow: var(--shadow); position: relative; }
.plan.pop::before { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: .72rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.plan .pname { font-weight: 700; font-size: 1.15rem; }
.plan .pfor { font-size: .85rem; color: var(--slate-light); margin: 4px 0 18px; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--slate-light); }
.plan ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .9rem; color: var(--slate); margin-bottom: 12px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--teal-dark); flex: 0 0 18px; margin-top: 2px; }

.compare { width: 100%; border-collapse: collapse; font-size: .92rem; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--bg-tint); font-weight: 700; color: var(--ink); }
.compare td.c { text-align: center; }
.compare td.c svg { width: 19px; height: 19px; color: var(--teal-dark); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .feat { font-weight: 500; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q svg { width: 20px; height: 20px; color: var(--purple); transition: transform .2s; flex: 0 0 20px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; font-size: .95rem; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(94, 44, 238, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--slate-light); margin-top: 6px; }

.info-list { list-style: none; padding: 0; margin: 26px 0 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-list .ic { flex: 0 0 42px; height: 42px; border-radius: 11px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.info-list .it { display: block; font-weight: 600; color: var(--ink); }
.info-list .id { display: block; font-size: .9rem; color: var(--slate); }

.alert { padding: 14px 18px; border-radius: 12px; font-size: .92rem; margin-bottom: 22px; display: flex; gap: 11px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.alert.success { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Configurator ---------- */
.config { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.config .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer; font-family: inherit; transition: all .15s; }
.chip:hover { border-color: var(--purple); }
.chip.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.config-result { background: var(--purple-soft); border: 1px solid #e3dbff; border-radius: 14px; padding: 22px; display: none; }
.config-result.show { display: block; }
.config-result .rt { font-weight: 700; color: var(--purple); margin-bottom: 6px; display:flex; align-items:center; gap:8px; }
.config-result .rt svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: 60px; text-align: center; background: var(--grad-ink); position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 240px at 80% 0%, rgba(12,212,194,.16), transparent 60%), radial-gradient(500px 240px at 10% 100%, rgba(94,44,238,.24), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3ccdf; max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--bg-tint); color: var(--slate); padding: 66px 0 30px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; }
.foot-logo { height: 36px; width: auto; }
.foot-brand p { color: var(--slate); font-size: .9rem; margin-top: 16px; max-width: 290px; }
.foot-col h4 { color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: var(--slate); font-size: .9rem; transition: color .15s; }
.foot-col a:hover { color: var(--purple); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--slate-light); }
.foot-bottom .links { display: flex; gap: 20px; }
.foot-bottom a { color: var(--slate-light); }
.foot-bottom a:hover { color: var(--purple); }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 70px 0 40px; position: relative; }
.page-hero .eyebrow { margin-bottom: 16px; }
.breadcrumb { font-size: .82rem; color: var(--slate-light); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--purple); }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; }
.badge svg { width: 16px; height: 16px; color: var(--purple); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.principle .n { font-size: .9rem; font-weight: 800; color: var(--purple); }
.principle h3 { margin: 10px 0 8px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .feature-row, .form-wrap, .persona { grid-template-columns: 1fr; }
    .hero-visual { min-height: 420px; margin-top: 20px; }
    .hv-attendance { left: 2%; }
    .hv-fees { right: 2%; }
    .hv-chip { left: 2%; }
    .feature-row.rev .fr-media { order: 0; }
    .bento, .g-3, .stats, .price-grid, .principles { grid-template-columns: 1fr 1fr; }
    .bento .flagship { grid-column: span 2; grid-row: auto; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-meta { gap: 18px; }
}
@media (max-width: 720px) {
    .section { padding: 56px 0; }
    .hero-visual { min-height: 360px; }
    .hv-disc { width: 250px; height: 250px; }
    .hv-fees { width: 180px; right: 0; }
    .hv-attendance { left: 0; top: 12%; }
    .hv-chip { left: 0; bottom: 12%; }
    .hv-badge { right: 0; top: 2%; }
    .nav-links, .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: block; }
    .mobile-open .nav-links {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 74px; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 4px; box-shadow: var(--shadow);
    }
    .mobile-open .has-menu .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; width: auto; grid-template-columns: 1fr; }
    .g-3, .g-2, .bento, .stats, .price-grid, .principles, .field-2, .mstat-grid { grid-template-columns: 1fr; }
    .bento .flagship { grid-column: auto; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .mock-app { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    .cta-band { padding: 40px 24px; }
    .compare { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Legal / long-form ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h3 { font-size: 1.05rem; margin-top: 26px; }
.legal p, .legal li { color: var(--slate); font-size: .97rem; }
.legal ul { padding-left: 20px; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-size: .86rem; color: var(--slate-light); margin-bottom: 8px; }
.legal a { color: var(--purple); font-weight: 500; }
.toc { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin: 26px 0 10px; }
.toc h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-light); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { color: var(--slate); margin-bottom: 6px; font-size: .92rem; }

.foot-links-inline { margin-top: 20px; }

/* ---------- Get started band (home) ---------- */
.start-band {
    display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
    background: var(--bg-tint-2); border: 1px solid #e3dbff; border-radius: var(--radius-lg);
    padding: 48px;
}
.start-copy h2 { margin-bottom: 14px; }
.start-copy .hero-cta { margin-top: 24px; }
.start-steps { display: flex; flex-direction: column; gap: 14px; }
.start-step {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
    transition: transform .18s ease, box-shadow .2s ease;
}
.start-step:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.start-step .sn {
    flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem;
}
.start-step div { display: flex; flex-direction: column; gap: 3px; }
.start-step strong { color: var(--ink); font-size: 1rem; }
.start-step span { font-size: .9rem; color: var(--slate); }
@media (max-width: 960px) { .start-band { grid-template-columns: 1fr; gap: 32px; padding: 34px; } }
