/* Manjot.ai free course — design system.
 * Three colours only: navy #14213D (background), cream #F4EDE0 (text + light sections), coral #FF6B5B (actions).
 * Everything else is a transparent tint of those three. No web fonts, no images. */
:root {
  --navy: #14213D;
  --cream: #F4EDE0;
  --coral: #FF6B5B;
  --coral-hover: #FF7F70;
  --coral-soft: rgba(255, 107, 91, .14);

  /* tokens for dark (navy) areas — the default */
  --bg: var(--navy);
  --on-bg: var(--cream);
  --text: var(--cream);
  --muted: rgba(244, 237, 224, .66);
  --faint: rgba(244, 237, 224, .45);
  --line: rgba(244, 237, 224, .12);
  --line-2: rgba(244, 237, 224, .22);
  --surface: rgba(244, 237, 224, .04);
  --surface-2: rgba(244, 237, 224, .08);
  --input-bg: rgba(244, 237, 224, .05);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* light (cream) areas: same components, flipped tokens */
.light {
  --bg: var(--cream);
  --on-bg: var(--navy);
  --text: var(--navy);
  --muted: rgba(20, 33, 61, .68);
  --faint: rgba(20, 33, 61, .45);
  --line: rgba(20, 33, 61, .12);
  --line-2: rgba(20, 33, 61, .22);
  --surface: rgba(20, 33, 61, .03);
  --surface-2: rgba(20, 33, 61, .07);
  --input-bg: rgba(20, 33, 61, .03);
  background: var(--cream);
  color: var(--navy);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.022em; font-weight: 700; color: var(--text); }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--navy); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.accent { color: var(--coral); }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.no-scroll { overflow: hidden; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border-radius: 5px; padding: .05em .35em; }

/* ---------- logo ---------- */
.logo { font-family: var(--sans); font-weight: 750; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none; color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; }
.logo span { color: var(--coral); }
.logo small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; margin-left: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .55rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 600; font-size: .94rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
/* every primary action is coral; secondary actions are thin outlines */
.btn-orange, .btn-wa, .btn-primary, .btn-ink { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.btn-orange:hover, .btn-wa:hover, .btn-primary:hover, .btn-ink:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-linkedin { border-color: var(--line-2); }
.btn-danger { color: var(--coral); border-color: rgba(255, 107, 91, .45); }
.btn-danger:hover { background: var(--coral-soft); border-color: var(--coral); }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: .3rem .75rem; font-size: .84rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coral); cursor: pointer; font-weight: 600; }

/* ---------- forms ---------- */
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; color: var(--text); }
.field label small { font-weight: 400; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text); font-size: 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.select option { background: var(--navy); color: var(--cream); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:disabled { opacity: .6; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; padding: .4rem .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip-opt span:hover { border-color: var(--faint); }
.chip-opt input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.form-error { background: var(--coral-soft); border: 1px solid rgba(255, 107, 91, .5); color: var(--text); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; margin: 0 0 1rem; }
.form-ok { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.switch { display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 500; font-size: .92rem; line-height: 1.4; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.field label.switch, label.switch { display: inline-flex; margin: 0; font-weight: 500; font-size: .92rem; color: var(--text); }
/* the track: OFF = grey outline, knob left, "OFF" label · ON = solid coral, knob right, "ON" label */
.switch i { display: inline-block; position: relative; flex: 0 0 auto; width: 58px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background-color .2s; }
.switch i::before { content: "OFF"; position: absolute; top: 50%; right: 8px; transform: translateY(-50%); font-size: .62rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); font-style: normal; }
.switch input:checked + i { background: var(--coral); border-color: var(--coral); }
.switch input:checked + i::after { transform: translateX(30px); background: var(--navy); }
.switch input:checked + i::before { content: "ON"; right: auto; left: 9px; color: var(--navy); }
.switch:hover input:not(:checked) + i { border-color: var(--faint); }
.switch input:focus-visible + i { outline: 2px solid var(--coral); outline-offset: 3px; }
.switch input:disabled + i { opacity: .45; }

/* ---------- top nav (landing) ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(20, 33, 61, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.nav-links { display: flex; gap: 1.8rem; margin-left: 1.5rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 10%, rgba(255, 107, 91, .10), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(244, 237, 224, .05), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .9rem .3rem .35rem; font-size: .84rem; font-weight: 500; color: var(--muted); margin-bottom: 1.6rem; }
.kicker b { background: var(--coral-soft); color: var(--coral); border-radius: 999px; padding: .1rem .6rem; font-size: .72rem; letter-spacing: .08em; font-weight: 700; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.3rem; font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero h1 .mark { background: none; padding: 0; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 33rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 2.2rem; }
.facts { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; padding: 0; margin: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; color: var(--muted); }
.facts li .icon { color: var(--coral); }

/* join card — cream panel on the navy hero */
.join-card { background: var(--cream); color: var(--navy); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px 24px; position: relative; }
.join-card .tag { position: absolute; top: 22px; right: 22px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--coral); }
.join-card h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.join-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.join-card .fine { font-size: .76rem; color: var(--faint); margin: .8rem 0 0; text-align: center; }
.join-card .switch-auth { text-align: center; margin: .8rem 0 0; font-size: .9rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }

/* ---------- sections ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--cream); color: var(--navy); }
section.block.ink { background: var(--navy); }
.sec-head { max-width: 40rem; margin-bottom: 3rem; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: .7rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.sec-head p { font-size: 1.06rem; color: var(--muted); }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 26px 22px; transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--coral-soft); color: var(--coral); }
.feature .ico .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* curriculum */
.curr { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.curr-side { position: sticky; top: 100px; }
.curr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.8rem 0; }
.curr-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.curr-stats b { display: block; font-size: 1.9rem; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.curr-stats span { font-size: .84rem; color: var(--muted); }
.lesson-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lesson-list .sec { padding: .75rem 1.3rem; background: var(--surface-2); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.lesson-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row .n { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .8rem; color: var(--muted); }
.lesson-row .t { flex: 1; font-weight: 500; }
.lesson-row .d { font-size: .84rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.empty-curr { padding: 2rem; text-align: center; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--coral); display: block; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
.step.hl { border-color: rgba(255, 107, 91, .5); }


/* instructor */
.teacher { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 40px; background: var(--surface); }
.avatar-big { width: 132px; height: 132px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font-size: 3rem; font-weight: 700; color: var(--navy); }
.teacher h3 { font-size: 1.8rem; }
.teacher blockquote { margin: 0 0 1.3rem; font-size: 1.12rem; color: var(--muted); line-height: 1.65; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem .2rem; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; font-weight: 300; color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 .2rem 1.3rem; margin: 0; color: var(--muted); max-width: 680px; }

/* final cta */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; margin: 0 auto 1rem; letter-spacing: -.03em; }
.final p { color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; }
.final-box { border: 1px solid var(--line); border-radius: 22px; padding: 64px 24px; background: radial-gradient(600px 300px at 50% 0%, rgba(255, 107, 91, .10), transparent 70%), var(--surface); }

footer.foot { padding: 32px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer.foot a { color: var(--cream); text-decoration-color: var(--coral); text-underline-offset: 3px; }

/* ---------- modal (cream panel) ---------- */
.modal-back { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 17, 32, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow-y: auto; animation: fadeIn .15s; }
.modal { --bg: var(--cream); --text: var(--navy); --muted: rgba(20, 33, 61, .68); --faint: rgba(20, 33, 61, .45); --line: rgba(20, 33, 61, .12); --line-2: rgba(20, 33, 61, .22); --surface: rgba(20, 33, 61, .03); --surface-2: rgba(20, 33, 61, .07); --input-bg: rgba(20, 33, 61, .03);
  width: 100%; max-width: 440px; background: var(--cream); color: var(--navy); border-radius: 18px; box-shadow: var(--shadow); padding: 28px 26px; animation: modalIn .22s var(--ease); position: relative; }
.modal .select option { background: var(--cream); color: var(--navy); }
.modal.wide { max-width: 720px; }
.modal.xwide { max-width: 980px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--surface-2); }
.modal h2 { font-size: 1.45rem; padding-right: 2.5rem; }
.modal h3 { font-size: 1.2rem; padding-right: 2.5rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.3rem; flex-wrap: wrap; }
.video-modal { max-width: 900px; padding: 12px; background: var(--navy); --text: var(--cream); color: var(--cream); }
.video-modal .vbox { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal .modal-x { border-color: rgba(244, 237, 224, .3); color: var(--cream); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 460px; pointer-events: none; }
.toast { background: var(--cream); color: var(--navy); border-radius: 10px; padding: .7rem 1.1rem; font-weight: 500; font-size: .92rem; box-shadow: var(--shadow); animation: toastIn .25s var(--ease); pointer-events: auto; border-left: 3px solid var(--navy); }
.toast.ok { border-left-color: var(--coral); }
.toast.err { background: var(--coral); color: var(--navy); border-left-color: var(--navy); }

/* ---------- message pages ---------- */
.msg-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 26px; }
.msg-card { width: 100%; max-width: 500px; background: var(--cream); color: var(--navy); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 30px; --text: var(--navy); --bg: var(--cream); --line-2: rgba(20, 33, 61, .22); --surface-2: rgba(20, 33, 61, .07); --muted: rgba(20, 33, 61, .68); }
.msg-card h1 { font-size: 1.6rem; }
.msg-card p { color: rgba(20, 33, 61, .75); }
.msg-card form { margin: 0 0 1rem; }

/* ---------- certificate (cream paper, navy ink, coral accent) ---------- */
.cert-body { padding: 20px 16px 48px; }
.cert-actions { max-width: 1060px; margin: 0 auto 18px; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.cert { max-width: 1060px; margin: 0 auto; aspect-ratio: 1.414; background: var(--cream); color: var(--navy); border-radius: 4px; box-shadow: var(--shadow); padding: 3%; }
.cert-inner { height: 100%; border: 1.5px solid var(--navy); outline: 1px solid rgba(20, 33, 61, .3); outline-offset: -10px; padding: 5% 7%; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; }
.cert-top { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 9%; left: 7%; right: 7%; }
.cert-top .logo { color: var(--navy); }
.cert-kicker { font-size: clamp(.55rem, 1.2vw, .82rem); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--coral); }
.cert-small { font-size: clamp(.75rem, 1.6vw, 1.05rem); color: rgba(20, 33, 61, .65); margin: .4em 0; }
.cert-name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(2rem, 6.2vw, 4.5rem); margin: .1em 0 .15em; letter-spacing: -.01em; border-bottom: 1.5px solid var(--coral); display: inline-block; padding: 0 .4em .1em; align-self: center; }
.cert-course { font-size: clamp(1.05rem, 2.8vw, 2rem); color: var(--navy); font-weight: 600; margin: .2em 0 0; }
.cert-foot { position: absolute; bottom: 9%; left: 7%; right: 7%; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; font-size: clamp(.6rem, 1.2vw, .88rem); }
.cert-foot b { display: block; }
.cert-foot small { display: block; color: rgba(20, 33, 61, .6); }
.cert-foot .right { text-align: right; }
.cert-foot .sig { display: block; font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 2.1em; line-height: 1; margin-bottom: .15em; color: var(--navy); }
.cert-seal { width: clamp(52px, 8.5vw, 90px); height: clamp(52px, 8.5vw, 90px); border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--cream), 0 0 0 5.5px var(--coral); }
.cert-seal span { font-weight: 700; font-size: 1.6em; letter-spacing: .02em; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body, .cert-body { background: var(--cream); padding: 0; }
  .no-print { display: none !important; }
  .cert { box-shadow: none; max-width: none; width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; padding: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 91, .5); } 70% { box-shadow: 0 0 0 9px rgba(255, 107, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 91, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .join-card { max-width: 540px; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .curr { grid-template-columns: 1fr; gap: 28px; }
  .curr-side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 36px 0 64px; }
  .hero .lead { font-size: 1.04rem; }
  .kicker { font-size: .78rem; }
  .cards-4 { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .teacher { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; justify-items: center; }
  .avatar-big { width: 100px; height: 100px; font-size: 2.3rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav .signin { display: none; }
  .join-card { padding: 26px 20px 20px; }
  .cert-body { padding: 12px 8px 30px; }
  .modal { padding: 24px 20px; }
  .final-box { padding: 44px 20px; }
}
