/*
 * Public pages: landing, pricing, privacy, terms.
 * Visual idea: the exam answer sheet (LJK) and the teacher's red pen.
 * Graphite = pencil 2B, pen = red correction ink, marker = highlighter.
 * Fonts are self-hosted (CSP font-src 'self'), both SIL OFL.
 */
@font-face {
    font-family: "Jakarta";
    src: url("../fonts/jakarta-var.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Pen";
    src: url("../fonts/kalam-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --paper: #ffffff;
    --tint: #f1f4f7;
    --graphite: #23252b;
    --graphite-2: #585e6b;
    --rule: #e3e7ec;
    --pen: #d42a3c;
    --ljk: #f2a9b3;
    --marker: #ffe14a;
    --ok: #12805a;
    --radius-s: 8px;
    --radius-m: 14px;
    --ease-out: cubic-bezier(.2, .8, .2, 1);
}

body.pub {
    color: var(--graphite);
    background: var(--paper);
    font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.pub a:not([class]) { color: var(--graphite); text-decoration-color: var(--pen); text-underline-offset: 3px; }
.pub :focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; box-shadow: 0 0 0 6px var(--marker); border-radius: 4px; }

.pub-skip { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: var(--marker); color: var(--graphite); padding: .4rem .8rem; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; }
.pub-skip:focus { top: .75rem; }

/* ── Buttons ─────────────────────────────────────────── */
.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .55rem 1.1rem;
    border: 2px solid var(--graphite);
    border-radius: var(--radius-s);
    background: var(--graphite);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
}
.pub-btn:hover { color: #fff; background: #000; transform: translateY(-1px); box-shadow: 0 3px 0 var(--marker); }
.pub-btn:active { transform: translateY(1px); box-shadow: none; }
.pub-btn--sm { min-height: 38px; padding: .35rem .85rem; font-size: .88rem; }
.pub-btn--lg { min-height: 52px; padding: .75rem 1.4rem; font-size: 1.02rem; }
.pub-btn--ghost { background: transparent; color: var(--graphite); }
.pub-btn--ghost:hover { background: var(--tint); color: var(--graphite); }
.pub-btn--marker { background: var(--marker); border-color: var(--marker); color: var(--graphite); }
.pub-btn--marker:hover { background: #fff; color: var(--graphite); box-shadow: 0 3px 0 var(--pen); }
.pub-btn--line { background: #fff; color: var(--graphite); }
.pub-btn--line:hover { background: var(--graphite); color: #fff; }

/* Bootstrap buttons still used on legal pages / pricing partial. */
.pub .btn-primary { background: var(--graphite); border-color: var(--graphite); }

/* ── Navigation ──────────────────────────────────────── */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(1.5) blur(12px);
    -webkit-backdrop-filter: saturate(1.5) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.nav-bar.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 30px -24px rgba(35, 37, 43, .5); }
.nav-bar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.nav-bar__logo { display: inline-flex; color: var(--graphite); flex: none; padding: .35rem 0; }
.nav-bar__logo svg { height: 30px; width: auto; display: block; }

.nav-bar__links { display: none; align-items: center; gap: .15rem; margin: 0 auto; }
.nav-bar__links a {
    position: relative;
    color: var(--graphite-2);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    padding: .5rem .7rem;
    border-radius: var(--radius-s);
    transition: color .15s;
}
.nav-bar__links a:hover { color: var(--graphite); }
/* The section you are reading gets a red-pen underline. */
.nav-bar__links a::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .2rem;
    height: 3px;
    border-radius: 3px;
    background: var(--pen);
    transform: scaleX(0) rotate(-1.5deg);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.nav-bar__links a.is-active { color: var(--graphite); }
.nav-bar__links a.is-active::after { transform: scaleX(1) rotate(-1.5deg); }

.nav-bar__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-bar__login { display: none; color: var(--graphite); font-weight: 700; font-size: .92rem; text-decoration: none; padding: .5rem .75rem; border-radius: var(--radius-s); }
.nav-bar__login:hover { color: var(--graphite); background: var(--tint); }

.nav-bar__toggle { width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-s); display: inline-flex; align-items: center; justify-content: center; color: var(--graphite); }
.nav-bar__toggle:hover { background: var(--tint); }
.nav-bar__burger, .nav-bar__burger::before { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.nav-bar__burger { position: relative; transform: translateY(-3.5px); }
.nav-bar__burger::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; }
.nav-bar__toggle[aria-expanded="true"] .nav-bar__burger { transform: rotate(45deg); }
.nav-bar__toggle[aria-expanded="true"] .nav-bar__burger::before { top: 0; width: 20px; transform: rotate(-90deg); }

.nav-menu { border-top: 1px solid var(--rule); background: #fff; padding: .5rem 0 1.25rem; max-height: calc(100vh - 68px); overflow-y: auto; }
.nav-menu__link { display: flex; justify-content: space-between; align-items: center; padding: .9rem .25rem; font-size: 1.15rem; font-weight: 700; color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--rule); }
.nav-menu__link:hover { color: var(--pen); }
.nav-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.25rem; }
.js .nav-menu:not([hidden]) { animation: rise .25s var(--ease-out); }

.nav-bar__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--pen); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

@media (min-width: 576px) {
    .nav-bar__login { display: inline-block; }
}
@media (min-width: 1100px) {
    .nav-bar__links { display: flex; }
    .nav-bar__actions { margin-left: 0; }
    .nav-bar__toggle, .nav-menu { display: none !important; }
}
@media (max-width: 380px) {
    .nav-bar__logo svg { height: 26px; }
    .nav-bar__actions .pub-btn--sm { padding: .35rem .7rem; }
}

/* ── Sections & headings ─────────────────────────────── */
.pub-section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.pub-section--tint { background: var(--tint); }
.pub-h2 {
    font-size: clamp(1.6rem, 4.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-align: center;
    max-width: 22ch;
    margin: 0 auto .75rem;
    text-wrap: balance;
}
.pub-h2--left { text-align: left; margin-left: 0; }
.pub-sub { text-align: center; color: var(--graphite-2); font-size: 1.05rem; max-width: 58ch; margin: 0 auto 2.5rem; text-wrap: pretty; }
.pub-sub--left { text-align: left; margin-left: 0; margin-bottom: 1.5rem; }
.lp-narrow { max-width: 820px; }

/* ── Hero ────────────────────────────────────────────── */
.lp-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.lp-hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .lp-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.lp-hero__title {
    font-size: clamp(2.15rem, 7.4vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    margin: 0 0 1.25rem;
    max-width: 17ch;
    text-wrap: balance;
}
.lp-hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--graphite-2); max-width: 36rem; margin-bottom: 1.75rem; }
.lp-hero__lead strong { color: var(--graphite); }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lp-hero__fine { margin: 1rem 0 0; font-size: .88rem; color: var(--graphite-2); }
@media (max-width: 575.98px) { .lp-hero__actions .pub-btn { flex: 1 1 100%; } }

/* The answer sheet (LJK). */
.lp-sheet-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 360px; }
.ljk {
    position: relative;
    background: #fff;
    border: 1px solid #ecd0d4;
    border-radius: 6px;
    padding: 1.1rem 1.1rem 1.25rem;
    transform: rotate(-1.6deg);
    box-shadow: 0 1px 0 #f3e3e5, 0 28px 50px -24px rgba(35, 37, 43, .45), 0 10px 18px -12px rgba(35, 37, 43, .2);
    /* timing marks along the edge, like a real scan sheet */
    background-image: repeating-linear-gradient(to bottom, var(--graphite) 0 6px, transparent 6px 26px);
    background-size: 5px 100%;
    background-repeat: no-repeat;
    background-position: right 7px top 64px;
}
.ljk__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-bottom: 2px solid var(--ljk); padding-bottom: .45rem; color: var(--pen); }
.ljk__title { font-weight: 800; font-size: .95rem; letter-spacing: .01em; }
.ljk__exam { font-size: .78rem; font-weight: 600; }
.ljk__who { display: flex; gap: .6rem; align-items: baseline; font-size: .78rem; color: var(--pen); padding: .5rem 0 .55rem; border-bottom: 1px solid var(--ljk); margin-bottom: .55rem; }
.ljk__who b { font-family: "Pen", cursive; font-size: 1.05rem; color: var(--graphite); font-weight: 700; }
.ljk__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ljk__row { display: grid; grid-template-columns: 1.6rem repeat(4, 1.6rem) 1.4rem; align-items: center; gap: .45rem; }
.ljk__no { font-size: .74rem; font-weight: 700; color: var(--pen); text-align: right; padding-right: .2rem; font-variant-numeric: tabular-nums; }
.ljk__b {
    position: relative;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    border: 1.5px solid var(--ljk);
    color: var(--pen);
    font-size: .62rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ljk__b.is-filled {
    color: transparent;
    border-color: var(--graphite);
    background: radial-gradient(circle at 35% 35%, #555a64 0 20%, var(--graphite) 55%, #1b1d22 100%);
}
.ljk__b.is-key::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--pen); border-radius: 50%; transform: rotate(-8deg) scale(1, .92); }
.ljk__mark { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; stroke-dashoffset: 0; }
.ljk__mark.is-ok { stroke: var(--ok); }
.ljk__score { position: absolute; right: .4rem; bottom: .9rem; width: 7.2rem; height: 4.4rem; display: flex; align-items: center; justify-content: center; gap: .35rem; color: var(--pen); transform: rotate(-6deg); }
.ljk__score-label { font-family: "Pen", cursive; font-size: .95rem; }
.ljk__score-num { font-family: "Pen", cursive; font-size: 2.5rem; line-height: 1; }
.ljk__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 0; }

.lp-toast {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin: 1.4rem auto 0;
    width: fit-content;
    max-width: 100%;
    background: var(--graphite);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem .9rem;
    border-radius: 999px;
}
.lp-toast i { color: var(--marker); font-size: 1.05rem; }
.lp-replay { display: none; margin: .65rem auto 0; background: none; border: 0; color: var(--graphite-2); font-size: .8rem; font-weight: 600; padding: .3rem .6rem; border-radius: var(--radius-s); }
.lp-replay:hover { color: var(--graphite); background: var(--tint); }
.js .lp-replay { display: flex; gap: .35rem; align-items: center; }

/* Before it plays (JS on), show the blank sheet. */
.js .ljk:not(.is-play):not(.is-done) .ljk__b.is-filled { color: var(--pen); background: transparent; border-color: var(--ljk); }
.js .ljk:not(.is-play):not(.is-done) .ljk__mark,
.js .ljk:not(.is-play):not(.is-done) .ljk__score,
.js .ljk:not(.is-play):not(.is-done) .ljk__b.is-key::after,
.js .ljk:not(.is-play):not(.is-done) + .lp-toast { opacity: 0; }

/* The grading sequence. Final state is the default (no JS / reduced motion). */
.ljk.is-play .ljk__b.is-filled { animation: shade .32s var(--ease-out) both; animation-delay: calc(.45s + var(--i) * .2s); }
.ljk.is-play .ljk__b.is-key::after { animation: pop .3s var(--ease-out) both; animation-delay: calc(2.75s + var(--i) * .07s); }
.ljk.is-play .ljk__mark { animation: draw .35s ease-out both; animation-delay: calc(2.6s + var(--i) * .07s); }
.ljk.is-play .ljk__score { animation: appear .25s ease-out both; animation-delay: 3.55s; }
.ljk.is-play .ljk__ring { animation: ring .6s ease-in-out both; animation-delay: 3.7s; }
.ljk.is-play + .lp-toast { animation: rise .45s var(--ease-out) both; animation-delay: 4.3s; }

@keyframes shade {
    0% { color: var(--pen); background: transparent; border-color: var(--ljk); transform: scale(1); }
    55% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes draw { from { stroke-dashoffset: 32; } to { stroke-dashoffset: 0; } }
@keyframes ring { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: rotate(-8deg) scale(1, .92); } }
@keyframes appear { from { opacity: 0; transform: rotate(-6deg) scale(.6); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Ledger: the to-do list, crossed out ─────────────── */
.ledger { border-top: 2px solid var(--graphite); }
.ledger__row { display: grid; gap: .3rem 2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .ledger__row { grid-template-columns: 1fr 1.15fr; align-items: baseline; } }
.ledger__old { position: relative; justify-self: start; color: var(--graphite-2); font-size: 1rem; }
.ledger__old::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: 54%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--pen);
    transform: rotate(-1.2deg);
    transform-origin: left center;
}
.ledger__new { font-weight: 700; font-size: 1.04rem; }
.js .ledger:not(.is-in) .ledger__old::after { transform: rotate(-1.2deg) scaleX(0); }
.js .ledger:not(.is-in) .ledger__new { opacity: 0; transform: translateX(-6px); }
.js .ledger .ledger__old::after { transition: transform .45s var(--ease-out) calc(var(--i) * .16s); }
.js .ledger .ledger__new { transition: opacity .4s ease calc(.2s + var(--i) * .16s), transform .4s var(--ease-out) calc(.2s + var(--i) * .16s); }

/* ── Steps (a real sequence, so numbered) ────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius-m); padding: 1.4rem 1.3rem 1.3rem; display: flex; flex-direction: column; }
.step__no {
    font-family: "Pen", cursive;
    color: var(--pen);
    font-size: 2.2rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid var(--pen);
    border-radius: 50% 46% 52% 48%;
    transform: rotate(-6deg);
    margin-bottom: .9rem;
}
.step__title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin-bottom: .45rem; }
.step p { color: var(--graphite-2); font-size: .95rem; margin-bottom: 1rem; }
.step__chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: .35rem; }
.step__chips span { font-size: .78rem; font-weight: 600; background: var(--tint); border-radius: 6px; padding: .2rem .55rem; }
.step__code { margin-top: auto; align-self: flex-start; font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; border: 2px dashed var(--graphite); border-radius: var(--radius-s); padding: .25rem .7rem; }
.step__score { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--graphite); padding-top: .5rem; font-size: .85rem; color: var(--graphite-2); }
.step__score b { font-size: 1.6rem; color: var(--graphite); font-variant-numeric: tabular-nums; }

/* ── Split layouts ───────────────────────────────────── */
.lp-split { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 992px) {
    .lp-split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
    .lp-split--flip .lp-split__text { order: 2; }
}

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--graphite-2); }
.checks li b { color: var(--graphite); }
.checks li::before { content: ""; position: absolute; left: .25rem; top: .35rem; width: .55rem; height: .95rem; border: solid var(--pen); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }

/* Monitor mock-up */
.monitor { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 1rem; box-shadow: 0 24px 50px -30px rgba(35, 37, 43, .5); max-width: 460px; width: 100%; margin: 0 auto; }
.monitor__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .25rem .25rem .85rem; border-bottom: 1px solid var(--rule); }
.monitor__exam { font-weight: 800; }
.monitor__meta { font-size: .8rem; color: var(--graphite-2); display: flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.monitor__live { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18, 128, 90, .5); }
.js .monitor.is-running .monitor__live { animation: live 1.8s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(18, 128, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 128, 90, 0); } }
.monitor__count { font-size: .82rem; color: var(--graphite-2); white-space: nowrap; }
.monitor__count b { font-size: 1.15rem; color: var(--graphite); }
.monitor__list { list-style: none; margin: 0; padding: 0; }
.monitor__row { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .75rem; align-items: center; padding: .7rem .25rem; border-bottom: 1px solid var(--rule); }
.monitor__row:last-child { border-bottom: 0; }
.monitor__avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.monitor__body { min-width: 0; display: grid; gap: .15rem; }
.monitor__name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.monitor__status { font-size: .76rem; color: var(--graphite-2); line-height: 1.25; transition: color .3s; }
.monitor__bar { height: 5px; background: var(--tint); border-radius: 3px; overflow: hidden; margin-top: .2rem; }
.monitor__bar span { display: block; height: 100%; background: var(--graphite); border-radius: 3px; transition: width .6s var(--ease-out); }
.monitor__num { font-size: .78rem; color: var(--graphite-2); font-variant-numeric: tabular-nums; }
.monitor__num b { font-size: .95rem; color: var(--graphite); }
.monitor__row.is-done .monitor__bar span { background: var(--ok); }
.monitor__row.is-done .monitor__status { color: var(--ok); font-weight: 700; }
.monitor__row.is-flag .monitor__status { color: var(--pen); font-weight: 700; }
.monitor__row.is-flag .monitor__avatar { box-shadow: 0 0 0 2px var(--pen); }
.monitor__row.is-offline .monitor__status { color: #9a6700; font-weight: 600; }
.monitor__row.is-offline .monitor__bar span { background: repeating-linear-gradient(90deg, #c9a227 0 6px, #e8cf6a 6px 12px); }
.monitor__row.is-idle { opacity: .6; }

/* Report mock-up */
.report { background: #fff; border-radius: 18px; padding: 1.3rem 1.3rem 1.1rem; max-width: 460px; width: 100%; margin: 0 auto; box-shadow: 0 24px 50px -30px rgba(35, 37, 43, .45); }
.report__title { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 2rem; }
.report__title span { font-weight: 500; font-size: .85rem; color: var(--graphite-2); }
.hist { position: relative; height: 128px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; align-items: end; border-bottom: 2px solid var(--graphite); }
.hist__bar { height: calc(var(--h) * 100%); min-height: 2px; background: #c3c9d2; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.hist__bar.is-pass { background: var(--graphite); }
.hist__kkm { position: absolute; left: 75%; top: -6px; bottom: 0; border-left: 2px dashed var(--pen); }
.hist__kkm span { position: absolute; top: -1.45rem; left: -2rem; white-space: nowrap; font-family: "Pen", cursive; color: var(--pen); font-size: .95rem; line-height: 1; }
.hist__axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--graphite-2); margin-top: .25rem; }
.js .report:not(.is-in) .hist__bar { transform: scaleY(0); }
.js .report .hist__bar { transition: transform .55s var(--ease-out) calc(var(--i) * .05s); }

.items { width: 100%; margin-top: 1.25rem; font-size: .84rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.items th { font-weight: 600; color: var(--graphite-2); font-size: .76rem; padding: .3rem .4rem; border-bottom: 1px solid var(--rule); }
.items td { padding: .45rem .4rem; border-bottom: 1px solid var(--rule); }
.items td:first-child { font-weight: 800; width: 3.2rem; }
.items tr.is-marked td { background: linear-gradient(transparent 12%, var(--marker) 12% 88%, transparent 88%); }
.js .report:not(.is-in) .items tr.is-marked td { background-size: 0 100%; }
.js .report .items tr.is-marked td { background-repeat: no-repeat; background-size: 100% 100%; transition: background-size .6s ease .7s; }
.report__note { font-family: "Pen", cursive; color: var(--pen); font-size: 1.12rem; line-height: 1.3; margin: .7rem 0 0 2.4rem; transform: rotate(-1.5deg); }

.docs { display: flex; flex-wrap: wrap; gap: .5rem; }
.docs span { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .4rem .7rem; font-size: .88rem; font-weight: 600; }
.docs em { font-style: normal; font-size: .7rem; font-weight: 800; background: var(--marker); border-radius: 4px; padding: 0 .3rem; }

/* ── Pricing ─────────────────────────────────────────── */
.plans { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 992px) { .plans { grid-template-columns: 1fr 1.12fr 1fr; align-items: center; } }
.plan { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 1.6rem 1.4rem 1.4rem; }
.plan--pro { border: 2px solid var(--graphite); padding: 2rem 1.6rem 1.6rem; box-shadow: 8px 8px 0 var(--marker); }
.plan__tag { position: absolute; top: -1.05rem; right: 1.2rem; font-family: "Pen", cursive; color: var(--pen); font-size: 1.15rem; background: #fff; padding: 0 .4rem; transform: rotate(3deg); }
.plan__name { font-weight: 800; font-size: 1.1rem; }
.plan__for { font-size: .85rem; color: var(--graphite-2); margin-bottom: .9rem; }
.plan__price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: .9rem; font-weight: 600; color: var(--graphite-2); letter-spacing: 0; }
.plan__note { font-size: .82rem; color: var(--graphite-2); margin-top: .3rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; flex-grow: 1; font-size: .92rem; display: grid; gap: .5rem; align-content: start; }
.plan li { position: relative; padding-left: 1.55rem; }
.plan li::before { content: ""; position: absolute; left: .2rem; top: .32rem; width: .45rem; height: .8rem; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.plan .pub-btn { width: 100%; }
.plan__pioneer { margin-top: .8rem; text-align: center; font-size: .82rem; color: var(--graphite-2); }
.plan__pioneer b { color: var(--graphite); }
.plans-school { text-align: center; font-size: .9rem; color: var(--graphite-2); margin: 1.75rem auto 0; max-width: 60ch; }

.pub-note { max-width: 640px; margin: 0 auto; background: #fff; border: 2px dashed var(--graphite); border-radius: var(--radius-m); padding: 1rem 1.2rem; font-size: .95rem; }

/* ── FAQ (native details, no JS) ─────────────────────── */
.faq { border-top: 2px solid var(--graphite); }
.faq__item { border-bottom: 1px solid #d5dbe2; }
.faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-weight: 700;
    font-size: 1.04rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: .7rem; height: .7rem; margin-top: .45rem; border: solid var(--graphite); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: .7rem; }
.faq__item p { color: var(--graphite-2); margin: -.25rem 0 1.2rem; max-width: 64ch; }
.faq__item[open] p { animation: rise .25s var(--ease-out); }

/* ── Final call ──────────────────────────────────────── */
.lp-final { background: var(--graphite); color: #fff; padding: clamp(3.5rem, 9vw, 6rem) 0; text-align: center; }
.lp-final__title { font-size: clamp(1.7rem, 5vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; max-width: 22ch; margin: 0 auto 1.75rem; text-wrap: balance; }
.lp-final__fine { margin: 1rem 0 0; color: #b9bfca; font-size: .9rem; }

/* ── Legal pages ─────────────────────────────────────── */
.pub-prose { max-width: 760px; }
.pub-prose h1 { font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.2rem); letter-spacing: -.02em; }
.pub-prose h2 { font-weight: 800; font-size: 1.15rem; margin-top: 2rem; }
.pub-prose p, .pub-prose li { color: #3d424d; }

/* ── Footer: the bottom edge of an answer sheet ─────── */
.site-foot { background: var(--tint); color: var(--graphite-2); font-size: .93rem; }
.site-foot__marks {
    /* timing marks, like the scan strip along an LJK */
    height: 10px;
    background: repeating-linear-gradient(90deg, var(--graphite) 0 14px, transparent 14px 34px);
    opacity: .9;
}
.site-foot__grid { display: grid; gap: 2.25rem 2rem; padding: 3.5rem 0 2.5rem; grid-template-columns: 1fr 1fr; }
.site-foot__about { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 992px) {
    .site-foot__grid { grid-template-columns: 1.6fr repeat(3, 1fr); padding-top: 4.5rem; }
    .site-foot__about { grid-column: auto; }
}
.site-foot__logo { display: inline-flex; color: var(--graphite); margin-bottom: 1rem; }
.site-foot__logo svg { height: 34px; width: auto; }
.site-foot__about p { margin: 0 0 1.1rem; line-height: 1.6; }
.site-foot__wa { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--graphite); text-decoration: none; border: 2px solid var(--graphite); border-radius: var(--radius-s); padding: .45rem .8rem; }
.site-foot__wa:hover { background: var(--graphite); color: #fff; }
.site-foot__col { display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; }
.site-foot__col h2 { font-size: .95rem; font-weight: 800; color: var(--graphite); margin: 0 0 .5rem; }
.site-foot__col a { color: var(--graphite-2); text-decoration: none; padding: .3rem 0; }
.site-foot__col a:hover { color: var(--graphite); text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; border-top: 1px solid #d5dbe2; padding: 1.25rem 0 1.75rem; font-size: .85rem; }
.site-foot__sign { font-family: "Pen", cursive; color: var(--pen); font-size: 1.1rem; transform: rotate(-2deg); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* The Lembar Guru wordmark is wider: keep the phone header on one line */
.pub-btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .nav-bar__logo svg { height: 24px; }
    .nav-bar__actions .pub-btn--sm { padding: .35rem .7rem; }
}

/* ── School plan ─────────────────────────────────────── */
.school {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    margin-top: 2.25rem;
    background: var(--graphite);
    color: #fff;
    border-radius: var(--radius-m);
    overflow: hidden;
}
.school__main { position: relative; padding: 2rem 2rem 2rem 2.4rem; }
/* a red margin line, like a school notebook */
.school__main::before { content: ""; position: absolute; left: 1.15rem; top: 0; bottom: 0; width: 2px; background: rgba(255, 90, 106, .55); }
.school__tag { font-family: "Pen", cursive; color: var(--marker); font-size: 1.15rem; display: inline-block; transform: rotate(-2deg); }
.school__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: .2rem 0 .6rem; color: #fff; }
.school__lead { color: #c9ced8; max-width: 46ch; margin-bottom: 1.25rem; }
.school__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.school__list li { position: relative; padding-left: 1.7rem; color: #c9ced8; font-size: .95rem; }
.school__list li b { color: #fff; }
.school__list li::before { content: ""; position: absolute; left: .2rem; top: .32rem; width: .45rem; height: .8rem; border: solid var(--marker); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }

.school__price { background: #fff; color: var(--graphite); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .4rem; }
.school__amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.school__amount small { display: block; font-size: .95rem; font-weight: 600; color: var(--graphite-2); letter-spacing: 0; margin-top: .25rem; }
.school__min { font-size: .88rem; color: var(--graphite-2); margin: 0 0 .75rem; }
.school-calc { background: var(--tint); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.school-calc label { font-weight: 700; font-size: .88rem; display: block; margin-bottom: .45rem; }
.school-calc__row { display: flex; align-items: center; gap: .6rem; }
.school-calc__row input { width: 8rem; min-height: 46px; border: 1.5px solid #cdd3dc; border-radius: 8px; padding: .4rem .7rem; font: inherit; font-weight: 800; font-size: 1.1rem; color: var(--graphite); background: #fff; }
.school-calc__row input:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(255, 225, 74, .7); }
.school-calc__row span { color: var(--graphite-2); font-weight: 600; }
.school-calc__total { margin: .7rem 0 0; font-size: .9rem; color: var(--graphite-2); line-height: 1.5; }
.school-calc__total b { color: var(--graphite); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.school__price .pub-btn { width: 100%; }
.school__note { font-size: .82rem; color: var(--graphite-2); margin: .6rem 0 0; text-align: center; }
@media (max-width: 991.98px) {
    .school { grid-template-columns: 1fr; }
    .school__main { padding: 1.75rem 1.4rem 1.75rem 2.2rem; }
    .school__price { padding: 1.5rem 1.4rem; }
}

/* ===== Question bank demo (home, #bank-soal) ===== */
.report { border: 1px solid var(--rule); }
.bank { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 1rem; max-width: 460px; width: 100%; margin: 0 auto; box-shadow: 0 24px 50px -30px rgba(35, 37, 43, .5); }
.bank__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .15rem .2rem .7rem; }
.bank__label { font-weight: 800; }
.bank__tags { display: flex; gap: .3rem; }
.bank__tags span { font-size: .72rem; font-weight: 700; color: var(--graphite-2); border: 1px dashed #c9cfd8; border-radius: 6px; padding: .05rem .4rem; }
.bank__shelf { position: relative; display: grid; gap: .45rem; padding-bottom: .9rem; border-bottom: 2px solid #f6ccd2; }
.folder { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; }
.folder > i { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; font-size: 1rem; }
.folder__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.folder__text b { font-size: .88rem; }
.folder__text small { font-size: .74rem; color: var(--graphite-2); }
.folder--target { border: 2px solid var(--graphite); box-shadow: 4px 4px 0 var(--marker); }
.folder--target > i { background: var(--marker); }
.folder__count { font-weight: 800; color: var(--graphite); font-variant-numeric: tabular-nums; }
.bank__slips { position: absolute; top: -.4rem; right: .8rem; display: flex; gap: .3rem; pointer-events: none; }
.bank__slips span { width: 30px; height: 38px; border-radius: 4px; background: #fff; border: 1.5px solid var(--graphite); box-shadow: inset 0 7px 0 -5px #f6ccd2, inset 0 15px 0 -13px #d5dbe2, inset 0 23px 0 -21px #d5dbe2; opacity: 0; }

.builder { padding-top: .85rem; }
.builder__title { font-weight: 800; font-size: .92rem; margin-bottom: .55rem; }
.builder__title span { font-weight: 600; font-size: .78rem; color: var(--graphite-2); margin-left: .35rem; }
.builder__chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .55rem; }
.builder__chips span { font-size: .76rem; font-weight: 700; border: 1.5px solid #d5dbe2; border-radius: 999px; padding: .2rem .6rem; color: var(--graphite-2); background: #fff; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out); }
.builder__chips .builder__chip-on { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.builder__btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 800; border: 1.5px solid var(--graphite); border-radius: 8px; padding: .35rem .7rem; background: #fff; transition: transform .15s var(--ease-out), background-color .2s; }
.builder__list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .3rem; }
.builder__list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .5rem; font-size: .78rem; padding: .35rem .5rem; border: 1px solid var(--rule); border-radius: 8px; }
.builder__list b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: radial-gradient(circle at 35% 35%, #555a64 0 18%, #23252b 60%); }
.builder__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder__list em { font-style: normal; font-weight: 800; font-size: .72rem; border: 1px solid var(--rule); border-radius: 6px; padding: 0 .4rem; color: var(--graphite-2); }
.builder__list .builder__more { display: block; text-align: center; color: var(--graphite-2); border-style: dashed; }
.builder__bar { margin-top: .6rem; font-size: .8rem; color: var(--graphite-2); padding-top: .55rem; border-top: 1px dashed var(--rule); }
.builder__bar b { color: var(--graphite); }

/* The story plays only with JS and motion allowed; otherwise the final state shows. */
.bank.is-reset .bank__slips span { opacity: 1; }
.bank.is-reset .folder--target { border-color: var(--rule); box-shadow: none; }
.bank.is-reset .folder--target > i { background: var(--tint); }
.bank.is-reset .builder__chip-on { background: #fff; border-color: #d5dbe2; color: var(--graphite-2); }
.bank.is-reset .builder__list li, .bank.is-reset .builder__bar { opacity: 0; transform: translateY(8px); }
.bank.is-drop .bank__slips span { animation: slip-drop .9s var(--ease-out) forwards; }
.bank.is-drop .bank__slips span:nth-child(2) { animation-delay: .18s; }
.bank.is-drop .bank__slips span:nth-child(3) { animation-delay: .36s; }
.bank.is-drop .folder--target { border-color: var(--graphite); box-shadow: 4px 4px 0 var(--marker); transition: box-shadow .4s var(--ease-out) .9s, border-color .4s .9s; }
.bank.is-drop .folder--target > i { background: var(--marker); transition: background-color .3s .9s; }
.bank.is-pick .builder__chip-on { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.bank.is-press .builder__btn { transform: scale(.94); background: #fffbe6; }
.bank.is-fill .builder__list li, .bank.is-fill .builder__bar { opacity: 1; transform: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.bank.is-fill .builder__list li:nth-child(2) { transition-delay: .08s; }
.bank.is-fill .builder__list li:nth-child(3) { transition-delay: .16s; }
.bank.is-fill .builder__list li:nth-child(4) { transition-delay: .24s; }
.bank.is-fill .builder__bar { transition-delay: .32s; }
@keyframes slip-drop {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    60% { opacity: 1; transform: translate(-150px, 26px) rotate(-8deg) scale(.8); }
    100% { opacity: 0; transform: translate(-190px, 34px) rotate(-12deg) scale(.4); }
}
@media (max-width: 420px) { @keyframes slip-drop { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(-120px, 32px) scale(.4); } } }
@media (prefers-reduced-motion: reduce) { .bank__slips { display: none; } }
