/* Skillemme Trainer Academy: learning-portal design.
   Brand: Skillemme logo, forest and jade green, brass. Own layout, own type, no shared styles with the campus site. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-wght-italic.woff2) format("woff2"); }

:root {
  --paper: #f3f1ea; --card: #FFFFFF; --rule: rgba(17,35,29,.12); --rule-s: rgba(17,35,29,.07);
  --ink: #11231d; --ink-2: #2f4a40; --muted: #61756d;
  --forest: #0b5a43; --forest-d: #07422F; --jade: #00a86b; --jade-t: rgba(0,168,107,.12); --jade-tt: rgba(0,168,107,.07);
  --brass: #c9a24b; --brass-d: #8a6a1a; --brass-t: rgba(201,162,75,.16);
  --metal: linear-gradient(120deg, #a97d22 0%, #e9d391 38%, #b88a2c 62%, #e3c670 100%);
  --glass: rgba(255,255,255,.62); --glass-b: rgba(255,255,255,.8);
  --glass-s: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 50px -28px rgba(17,50,40,.30), 0 2px 6px rgba(17,35,29,.04);
  --red: #B3261E; --red-t: #FCEBE9;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-text: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--forest); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header and footer ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand-t { padding-left: 14px; border-left: 1px solid var(--rule); font-weight: 600; font-size: 1.02rem; line-height: 1.1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .nav button { background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font: 500 .95rem var(--f-ui); text-decoration: none; }
.nav > a:not(.btn):hover, .nav button:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--forest); font-weight: 650; box-shadow: inset 0 -2px 0 var(--forest); border-radius: 0; }
.who { display: flex; align-items: center; gap: 6px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--rule); }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: .85rem; }
.foot { background: #fff; border-top: 1px solid var(--rule); padding: 26px 0; font-size: .92rem; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

/* ---------- buttons, pills, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 8px; border: 1.5px solid transparent; font: 600 .975rem/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn.primary { background: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--forest-d); }
.btn.ghost { background: #fff; color: var(--forest); border-color: var(--forest); }
.btn.ghost:hover { background: var(--jade-t); }
.btn.light { background: #fff; color: var(--forest); }
.btn.light:hover { background: var(--jade-t); }
.btn.brass { background: var(--brass); color: #231a05; }
.btn.brass:hover { background: #D4B060; }
.btn.sm { padding: 9px 14px; font-size: .9rem; }
.btn.lg { padding: 16px 26px; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--forest); text-decoration: underline; cursor: pointer; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: .82rem; font-weight: 600; line-height: 1.3; vertical-align: middle; }
.pill.ok { background: var(--jade-t); color: #0A6A46; }
.pill.wait { background: var(--brass-t); color: var(--brass-d); }
.pill.no { background: #E7EDEA; color: #44554E; }

.fld { display: grid; gap: 6px; }
.fld + .fld { margin-top: 16px; }
.fld label { font-weight: 600; font-size: .95rem; }
.fld .hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
.fld input[type="text"], .fld input[type="email"] { width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
.fld input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(0,168,107,.18); }
.code-in { letter-spacing: .5em; font-size: 1.5rem !important; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); flex: none; }
.err { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--red-t); border: 1px solid #F1C3BF; color: #7D1A14; font-size: .95rem; }
.err.show { display: block; }
.skeleton { height: 120px; border-radius: 8px; background: linear-gradient(90deg, #E8EEEB 25%, #F2F6F4 50%, #E8EEEB 75%); background-size: 200% 100%; animation: sk 1.4s linear infinite; margin-bottom: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- register: the one signature element ---------- */
.register { position: relative; background: #fff; border-radius: 6px; border: 1px solid var(--rule); overflow: hidden; }
.register::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 1px; background: #E6B8B2; pointer-events: none; z-index: 1; }
.reg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 14px 72px; border-bottom: 1px solid var(--rule); font-weight: 650; font-size: 1.05rem; list-style: none; cursor: default; }
.reg-h::-webkit-details-marker { display: none; }
.reg-m { font-weight: 500; font-size: .875rem; color: var(--muted); }
.reg-sec { padding: 12px 20px 10px 72px; font-weight: 650; background: #F7FAF8; border-bottom: 1px solid var(--rule-s); }
.reg-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; width: 100%; min-height: 52px; padding: 7px 16px 7px 0; border: 0; border-bottom: 1px solid var(--rule-s); background: transparent; color: inherit; text-align: left; }
.reg-row:last-child { border-bottom: 0; }
button.reg-row { cursor: pointer; }
button.reg-row:hover:not(:disabled) { background: var(--jade-tt); }
button.reg-row:disabled { cursor: default; opacity: .6; }
.reg-row.cur { background: var(--jade-tt); }
.reg-txt { padding-left: 20px; }
.reg-txt b { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.reg-txt small { display: block; margin-top: 1px; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.reg-note { padding: 14px 20px 16px 72px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.box { width: 20px; height: 20px; margin: auto; border: 1.5px solid var(--ink-2); border-radius: 4px; background: #fff; display: grid; place-items: center; }
.box svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; display: none; }
.box.on { background: var(--jade); border-color: var(--jade); }
.box.on svg { display: block; }
.box.lock { background: var(--paper); border-color: var(--rule); }
.box.lock svg { display: block; stroke: var(--muted); stroke-width: 2.4; width: 12px; height: 12px; }
.ticks { display: flex; gap: 8px; }
.ticks .box { margin: 0; }

/* ---------- home ---------- */
.hero { background: var(--forest); color: #fff; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 72px 0 84px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.03; }
.hero .lead { margin-top: 22px; max-width: 32em; font-size: 1.2rem; line-height: 1.55; color: #CFE8DC; }
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.hero-cta .text { color: #fff; font-weight: 500; }
.hero .register { box-shadow: 0 24px 48px -28px rgba(0,0,0,.55); color: var(--ink); }
.sec { padding: 60px 0 8px; }
.sec h2 { font-size: 1.7rem; }
.how { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.how li { padding: 22px 26px 6px 0; }
.how li + li { padding-left: 26px; border-left: 1px solid var(--rule); }
.how .n { font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--forest); }
.how b { display: block; margin-top: 12px; font-size: 1.15rem; font-weight: 650; }
.how p { margin-top: 6px; color: var(--ink-2); max-width: 27ch; }
.strip { margin: 56px 0 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 24px 28px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.strip h3 { font-size: 1.2rem; }
.strip p { margin-top: 4px; color: var(--ink-2); }

/* ---------- sign in ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 65px); }
.split-a { background: var(--forest); color: #fff; padding: 56px 56px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.split-a h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; max-width: 12em; }
.split-a p { margin-top: 18px; max-width: 26em; font-size: 1.1rem; line-height: 1.55; color: #CFE8DC; }
.split-a .help { font-size: .95rem; color: #CFE8DC; margin: 0; }
.split-a .help a { color: #fff; }
.split-b { background: #fff; display: grid; place-items: center; padding: 48px 24px; }
.formbox { width: min(420px, 100%); }
.formbox h2 { font-size: 1.7rem; }
.formbox .sub { margin: 8px 0 24px; color: var(--ink-2); }
.formbox .btn { width: 100%; margin-top: 22px; }
.already { margin-bottom: 24px; padding: 14px 16px; background: var(--jade-tt); border: 1px solid #BFE3D0; border-radius: 8px; font-size: .95rem; }

/* ---------- dashboard ---------- */
.page-h { padding: 44px 0 18px; }
.page-h h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; }
.page-h p { margin-top: 10px; color: var(--ink-2); }
.sheet { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--forest); border-radius: 6px; padding: 26px 28px 22px; margin-bottom: 20px; }
.sheet.complete { border-top-color: var(--jade); }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet h2 { font-size: 1.5rem; }
.sheet .desc { margin-top: 8px; max-width: 58ch; color: var(--ink-2); }
.sheet .ticks { margin: 22px 0 6px; }
.sheet-f { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--rule-s); }
.sheet-f .count { color: var(--muted); font-size: .95rem; }
.sheet-f .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- course ---------- */
.chead { background: #fff; border-bottom: 1px solid var(--rule); padding: 22px 0 20px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.chead h1 { margin-top: 8px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; }
.cprog { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--ink-2); font-size: .95rem; }
.progress { flex: 1; max-width: 320px; height: 8px; border-radius: 99px; background: var(--rule-s); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--jade); border-radius: 99px; transition: width .5s ease; }
.lesson { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; padding: 34px 0 80px; align-items: start; }
.rail { position: sticky; top: 88px; }
.stage { min-width: 0; }
.stage-h { margin-bottom: 20px; }
.kicker { color: var(--forest); font-weight: 600; font-size: .95rem; }
.stage-h h2 { margin-top: 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.025em; }
.stage-h p.sum { margin-top: 10px; max-width: 58ch; color: var(--ink-2); }
.vbox { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0A1F18; }
.vbox iframe, .vbox > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.vph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: #fff; background: linear-gradient(150deg, #0E7A57, #0A4635); }
.vph b { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 650; }
.vph span { color: #CFE8DC; font-size: .95rem; }
.gate { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 13px 16px; border-radius: 8px; font-weight: 500; font-size: .96rem; background: #fff; border: 1px solid var(--rule); color: var(--ink-2); }
.gate span { display: inline-flex; align-items: center; gap: 10px; }
.gate svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gate.wait { background: var(--brass-t); border-color: #E5CD8A; color: var(--brass-d); }
.gate.good { background: var(--jade-t); border-color: #A9DBC2; color: #0A6A46; }

.quiz { margin-top: 36px; }
.quiz h3 { font-size: 1.5rem; margin-bottom: 4px; }
.q { margin: 0; min-width: 0; padding: 26px 0 22px; border: 0; border-top: 1px solid var(--rule); }
.q:first-of-type { border-top: 2px solid var(--ink); margin-top: 14px; }
.q legend { width: 100%; padding: 0; margin-bottom: 14px; }
.qn { display: block; color: var(--muted); font-size: .88rem; font-weight: 500; margin-bottom: 6px; }
.qt { display: block; font-family: var(--f-text); font-size: 1.28rem; line-height: 1.5; font-weight: 500; }
.opt { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; margin-top: 10px; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; cursor: pointer; line-height: 1.5; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: var(--forest); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.dot { width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--ink-2); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.opt input:checked + .dot { border-color: var(--forest); }
.opt input:checked + .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--forest); }
.opt:has(input:checked) { border-color: var(--forest); background: var(--jade-tt); }
.opt:has(input:focus-visible) { outline: 3px solid var(--jade); outline-offset: 2px; }
.q.done .opt { cursor: default; }
.q.done .opt:hover { border-color: var(--rule); }
.q.done .opt:has(input:checked) { border-color: var(--forest); }
.q.bad .opt:has(input:checked) { border-color: var(--brass); background: var(--brass-t); }
.why { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--paper); font-size: .96rem; line-height: 1.5; color: var(--ink-2); }
.why svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.q.ok .why svg { stroke: var(--jade); }
.q.bad .why svg { stroke: var(--brass-d); }
.why b { color: var(--ink); }
#qsubmit { margin-top: 8px; }
.result { margin-top: 10px; padding: 22px 24px; border-radius: 8px; border: 1.5px solid; }
.result.pass { background: var(--jade-t); border-color: #9AD6BA; }
.result.fail { background: var(--brass-t); border-color: #E2C77E; }
.result h4 { margin: 0; font-size: 1.3rem; font-weight: 650; letter-spacing: -.015em; }
.result p { margin-top: 6px; color: var(--ink-2); }
.result .dbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.panel { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 28px; }
.ack-quote { margin: 0 0 26px; padding: 2px 0 2px 20px; border-left: 3px solid var(--brass); font-family: var(--f-text); font-size: 1.25rem; line-height: 1.65; }
.panel .fld { max-width: 440px; }
.panel .btn.brass { margin-top: 22px; }
.finish { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.finish h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.025em; }
.finish p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.ref { display: inline-block; margin: 14px 0 6px; padding: 10px 14px; font: 600 1.1rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.finish .dbtns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.seal { width: 150px; height: 150px; color: var(--brass); flex: none; }
.seal text { font-family: var(--f-ui); font-weight: 650; fill: currentColor; }
.seal.stamp { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes stamp { from { transform: scale(1.55) rotate(-16deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- verify and legal ---------- */
.vform { display: flex; gap: 10px; flex-wrap: wrap; }
.vform input { flex: 1 1 260px; padding: 13px 14px; font: 500 1.05rem var(--f-ui); letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
.vform input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(0,168,107,.18); }
.vres { margin-top: 22px; }
.vres h3 { margin: 12px 0 4px; font-size: 1.5rem; }
.vres dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 20px 0 0; }
.vres dt { color: var(--muted); font-size: .92rem; }
.vres dd { margin: 0; font-weight: 600; }
.legal { max-width: 68ch; font-family: var(--f-text); font-size: 1.12rem; line-height: 1.7; }
.legal h2 { margin: 30px 0 6px; font-family: var(--f-ui); font-size: 1.25rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-top: 6px; }
.legal .draft { padding: 12px 14px; background: var(--brass-t); border-radius: 8px; font-family: var(--f-ui); font-size: .95rem; color: var(--brass-d); }

/* ---------- certificate ---------- */
.cert-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }
.certwrap { display: flex; justify-content: center; padding: 0 0 56px; }
.cert { container-type: inline-size; position: relative; width: min(1100px, 100%); aspect-ratio: 297 / 210; background: #FFFEFB; color: var(--ink); box-shadow: 0 30px 60px -36px rgba(11,40,30,.5), 0 0 0 1px var(--rule); overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert .c-band { position: absolute; left: 0; top: 0; bottom: 0; width: 3.2cqw; background: var(--forest); }
.cert .c-band::after { content: ""; position: absolute; left: 3.2cqw; top: 0; bottom: 0; width: .5cqw; background: var(--brass); }
.cert .c-in { position: absolute; inset: 5cqw 6cqw 5.2cqw 9.4cqw; display: flex; flex-direction: column; }
.cert .c-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cert .c-logo { height: 4.4cqw; width: auto; }
.cert .seal { width: 9.6cqw; height: 9.6cqw; color: var(--brass-d); }
.cert .c-k { margin-top: 1.4cqw; font-size: 1.25cqw; font-weight: 600; color: var(--ink-2); }
.cert h1 { margin-top: .6cqw; font-size: 4.6cqw; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.cert .c-to { margin-top: 2.2cqw; font-size: 1.5cqw; color: var(--ink-2); }
.cert .c-name { margin-top: .6cqw; font-family: var(--f-text); font-style: italic; font-weight: 500; font-size: 5.4cqw; line-height: 1.12; }
.cert .c-did { margin-top: 1.6cqw; font-size: 1.5cqw; color: var(--ink-2); }
.cert .c-course { margin-top: .4cqw; font-size: 2.8cqw; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.cert .c-desc { margin-top: .8cqw; max-width: 56cqw; font-family: var(--f-text); font-size: 1.5cqw; line-height: 1.5; color: var(--ink-2); }
.cert .c-bot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr auto; gap: 3cqw; align-items: end; }
.cert .c-bot b { display: block; font-size: 1.7cqw; font-weight: 600; }
.cert .c-bot span { font-size: 1.15cqw; color: var(--muted); }
.cert .sigline { display: block; width: 20cqw; margin-bottom: .5cqw; border-top: .1cqw solid var(--ink-2); }
.cert .c-qr { text-align: center; }
.cert .c-qr svg { width: 8.4cqw; height: 8.4cqw; margin: 0 auto .5cqw; }
.cert .c-qr span { display: block; font-size: .95cqw; letter-spacing: .04em; }
.cert .c-fine { position: absolute; left: 9.4cqw; right: 6cqw; bottom: 1.8cqw; font-size: .9cqw; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
  .how { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 18px 0 18px; border-left: 0; border-top: 1px solid var(--rule); }
  .how li:first-child { border-top: 0; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-a { padding: 36px 24px; gap: 28px; }
  .lesson { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
  .rail { position: static; order: -1; }
  .rail .reg-h { cursor: pointer; }
  .rail .reg-h::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin-left: auto; align-self: center; transition: transform .2s; }
  .rail[open] .reg-h::after { transform: rotate(-135deg); }
  .finish { grid-template-columns: 1fr; gap: 20px; }
  .seal { width: 120px; height: 120px; }
}
@media (max-width: 640px) {
  .hide-s { display: none; }
  .brand-t { display: none; }
  .who .av { display: none; }
  .who { margin-left: 0; padding-left: 0; border-left: 0; }
  .sheet { padding: 22px 20px 18px; }
  .sheet-h { flex-direction: column; gap: 10px; }
  .vres dl { grid-template-columns: 1fr; gap: 2px; }
  .vres dd { margin-bottom: 12px; }
  .qt { font-size: 1.18rem; }
  .strip { padding: 20px; }
}


/* ---------- print: the certificate only ---------- */
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { background: #fff !important; }
  .bar, .foot, .skip, .noprint, .cert-tools, #msg { display: none !important; }
  main, .wrap { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .certwrap { display: block; padding: 0; }
  .cert { width: 297mm; height: 210mm; aspect-ratio: auto; box-shadow: none; }
}
[hidden] { display: none !important; }
.rail:not([open])::before { display: none; }
.q legend { margin-bottom: 0; }
.nav > a, .nav button { white-space: nowrap; }
@media (max-width: 640px) { .nav .hide-s { display: none; } .nav { gap: 0; } }

/* =====================================================================
   THEME LAYER: Skillemme brand look (frosted glass, jade glow, metallic gold, Fraunces + Inter)
   ===================================================================== */
body { position: relative; min-height: 100vh; background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(800px 520px at 88% -6%, rgba(0,168,107,.20), transparent 60%),
  radial-gradient(700px 520px at -6% 42%, rgba(201,162,75,.20), transparent 60%),
  radial-gradient(760px 520px at 100% 96%, rgba(0,168,107,.13), transparent 60%),
  linear-gradient(180deg, #f7f5ef, #eef2ec); }
h1, h2, h3, h4 { font-family: var(--f-text); font-weight: 500; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.glassy, .register, .sheet, .panel, .gate, .strip, .result, .formbox-card, .vbox-card { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid var(--glass-b); box-shadow: var(--glass-s); }
:focus-visible { outline: 3px solid rgba(201,162,75,.75); }

/* floating glass header */
.bar { position: sticky; top: 12px; z-index: 40; margin: 12px 16px 0; background: none; border: 0; }
.bar-in { width: min(1120px, 100%); max-width: 100%; padding: 0 14px 0 20px; min-height: 62px; border-radius: 20px; background: rgba(255,255,255,.66); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -24px rgba(17,50,40,.28); margin-inline: auto; }
.brand-t { font-family: var(--f-text); font-weight: 500; font-size: 1.05rem; border-left-color: rgba(17,35,29,.15); }
.nav > a:not(.btn), .nav button { border-radius: 10px; font-size: .92rem; }
.nav > a:not(.btn):hover, .nav button:hover { background: rgba(0,168,107,.10); color: var(--forest); }
.nav a[aria-current="page"] { box-shadow: none; background: rgba(0,168,107,.10); color: var(--forest); border-radius: 10px; }
.who { border-left-color: rgba(17,35,29,.12); }
.av { background: var(--metal); color: #2a1f05; }
.foot { background: none; border-top: 1px solid var(--rule); }
.skip { top: -80px; }

/* buttons */
.btn { border: 0; border-radius: 14px; padding: 13px 22px; transition: transform .2s, filter .2s, background-color .2s; }
.btn.primary { color: #fff; background: linear-gradient(180deg, #17c786, #04a068); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 24px -12px rgba(0,140,90,.8); }
.btn.primary:hover { transform: translateY(-2px); background: linear-gradient(180deg, #17c786, #04a068); }
.btn.brass { color: #2a1f05; background: var(--metal); box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 12px 24px -12px rgba(150,110,30,.9); }
.btn.brass:hover { transform: translateY(-2px); filter: brightness(1.05); background: var(--metal); }
.btn.ghost { color: var(--ink); background: rgba(255,255,255,.55); border: 1px solid rgba(17,35,29,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.ghost:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.btn.sm { border-radius: 12px; padding: 9px 16px; }
.btn.light { background: #fff; }
.btn:disabled { transform: none; }
.fld input[type="text"], .fld input[type="email"], .vform input { background: rgba(255,255,255,.8); border: 1px solid rgba(17,35,29,.14); border-radius: 12px; }
.fld input:focus, .vform input:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(0,168,107,.16); }
.pill.ok { background: rgba(0,168,107,.14); color: #07643f; }
.pill.wait { background: var(--brass-t); color: var(--brass-d); }
.pill.no { background: rgba(17,35,29,.07); color: #44554E; }

/* register: glass card, soft margin line */
.register { border-radius: 20px; }
.register::before { background: rgba(201,162,75,.45); }
.reg-h { font-family: var(--f-text); font-weight: 500; font-size: 1.15rem; border-bottom-color: var(--rule); }
.reg-sec { background: rgba(255,255,255,.45); font-family: var(--f-text); font-weight: 500; }
.reg-row.cur { background: rgba(0,168,107,.09); }
button.reg-row:hover:not(:disabled) { background: rgba(0,168,107,.07); }
.box { border-radius: 6px; background: rgba(255,255,255,.9); }
.box.on { background: linear-gradient(180deg, #17c786, #04a068); border-color: transparent; }
.box.lock { background: rgba(17,35,29,.05); }

/* hero: title left, photo in an arch right */
.hero { background: none; color: var(--ink); }
.hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; padding: 56px 0 72px; min-height: 620px; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.hero .lead { color: var(--ink-2); font-size: 1.15rem; max-width: 30em; }
.hero-cta .text { color: var(--forest); }
.hero-art { position: relative; max-width: 440px; width: 100%; margin-left: auto; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; border: 6px solid rgba(255,255,255,.75); box-shadow: 0 50px 80px -40px rgba(10,70,52,.55); background: #bfe8d6; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; font-size: .9rem; font-weight: 600; background: rgba(255,255,255,.66); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 40px -22px rgba(17,50,40,.4); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--metal); box-shadow: 0 0 0 4px rgba(201,162,75,.2); }
.chip.c1 { left: -30px; top: 24%; }
.chip.c2 { right: -18px; bottom: 14%; }
.sec { padding-top: 24px; }
.sec h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.sec .sub { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.sec .register { margin-top: 24px; }
.how { border-top-color: rgba(17,35,29,.18); }
.how .n { font-family: var(--f-text); font-weight: 400; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how b { font-family: var(--f-text); font-weight: 500; font-size: 1.3rem; }
.strip { border-radius: 20px; }

/* sign in: photo panel */
.split-a { position: relative; overflow: hidden; background: #0b5a43; }
.split-a::before { content: ""; position: absolute; inset: 0; background: url(hero.jpg) center 30% / cover; }
.split-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(7,66,47,.82), rgba(11,90,67,.9)); }
.split-a > * { position: relative; z-index: 1; }
.split-a h1 { font-weight: 400; letter-spacing: -.03em; }
.split-b { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.formbox h2 { font-weight: 500; }
.already { background: rgba(0,168,107,.09); border-color: rgba(0,168,107,.25); border-radius: 12px; }

/* dashboard, course */
.page-h h1 { font-weight: 400; letter-spacing: -.03em; }
.sheet { border-radius: 22px; border-top: 1px solid var(--glass-b); position: relative; overflow: hidden; }
.sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--forest); }
.sheet.complete::before { background: var(--metal); }
.sheet h2 { font-weight: 500; }
.chead { background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule); margin-top: 14px; }
.chead h1 { font-weight: 400; letter-spacing: -.03em; }
.progress i { background: linear-gradient(90deg, #17c786, #04a068); }
.stage-h h2 { font-weight: 400; letter-spacing: -.03em; }
.kicker { color: var(--brass-d); }
.vbox { border-radius: 20px; box-shadow: 0 40px 70px -40px rgba(10,70,52,.6); border: 4px solid rgba(255,255,255,.7); }
.vph { background: linear-gradient(150deg, #0e7a57, #0a4635); }
.gate { border-radius: 14px; }
.gate.wait { background: var(--brass-t); border-color: rgba(201,162,75,.45); color: var(--brass-d); }
.gate.good { background: rgba(0,168,107,.10); border-color: rgba(0,168,107,.3); color: #07643f; }
.opt { background: rgba(255,255,255,.7); border: 1px solid rgba(17,35,29,.12); border-radius: 14px; }
.opt:hover { border-color: var(--jade); }
.opt:has(input:checked) { border-color: var(--jade); background: rgba(0,168,107,.09); }
.opt input:checked + .dot { border-color: var(--jade); }
.opt input:checked + .dot::after { background: var(--jade); }
.q.done .opt:has(input:checked) { border-color: var(--jade); }
.q:first-of-type { border-top-color: rgba(17,35,29,.3); }
.qt { font-weight: 450; }
.why { background: rgba(255,255,255,.6); border-radius: 12px; }
.result { border-radius: 18px; }
.result.pass { background: rgba(0,168,107,.10); border-color: rgba(0,168,107,.3); }
.result.fail { background: var(--brass-t); border-color: rgba(201,162,75,.5); }
.panel { border-radius: 22px; }
.ack-quote { border-left-color: var(--brass); font-weight: 400; }
.ref { background: rgba(255,255,255,.8); border-radius: 10px; }
.seal { color: var(--brass-d); }
.certwrap { padding-bottom: 56px; }
.cert { border-radius: 4px; }
.cert .c-name { font-family: var(--f-text); }
.cert h1 { font-weight: 500; }
.cert .c-band { background: var(--forest); }
.vres h3 { font-weight: 500; }
.legal h2 { font-family: var(--f-text); font-weight: 500; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 48px; gap: 44px; }
  .hero-art { margin: 0 auto; max-width: 380px; }
  .chip.c1 { left: -8px; }
  .chip.c2 { right: -8px; }
  .bar { margin: 8px 10px 0; top: 8px; }
}
@media (max-width: 640px) { .hero h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); } }
@media print { .bar { display: none !important; } body::before { display: none; } .cert { border-radius: 0; } }

.reg-h span { white-space: nowrap; } .reg-h { flex-wrap: wrap; }

/* =====================================================================
   MOTION LAYER (ported from the main Skillemme site; off for reduced motion and print)
   ===================================================================== */
body { animation: pagein .6s ease both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
body.leaving { opacity: 0; transition: opacity .22s ease; }

/* hero: words rise in, photo arches up and settles, chips float, gold sheen */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(10px); animation: wordin .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.2s + var(--i) * .09s); }
@keyframes wordin { to { opacity: 1; transform: none; filter: blur(0); } }
.hero .lead, .hero-cta { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation-delay: .75s; }
.hero-cta { animation-delay: .9s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-art { animation: archrise 1.3s cubic-bezier(.2,.7,.2,1) .15s both; transform: translateY(var(--py, 0px)); }
@keyframes archrise { from { opacity: 0; transform: translateY(70px) scale(.96); filter: blur(10px); } to { opacity: 1; transform: translateY(var(--py, 0px)); filter: none; } }
.arch img { transform: scale(1.14); animation: zoomout 2.4s cubic-bezier(.2,.7,.2,1) .3s forwards; }
@keyframes zoomout { to { transform: scale(1); } }
.chip { animation: float 7s ease-in-out infinite; }
.chip.c2 { animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
h1 em, h2 em { background-size: 240% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn.brass { position: relative; overflow: hidden; }
.btn.brass::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: sweep 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.d1 { transition-delay: .12s; } .js .rv.d2 { transition-delay: .24s; } .js .rv.d3 { transition-delay: .36s; }
.js .rv.in { opacity: 1; transform: none; }

/* cursor glow on glass cards */
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(233,200,110,.26), rgba(0,168,107,.08) 45%, transparent 70%); z-index: 2; }
.glow:hover::after { opacity: 1; }

/* how it works: a line that fills as you scroll, steps light up */
.how { position: relative; }
.how .line { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: rgba(17,35,29,.12); }
.how .line i { display: block; height: 100%; width: 0; background: var(--metal); }
.how .vrow { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .how .vrow:not(.lit) .n { opacity: .45; }
.how .vrow .n { transition: opacity .5s; }

/* app pages: content settles in when a view renders */
.sheet { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.sheet:nth-child(2) { animation-delay: .12s; }
.stage-h, .vbox, .gate, .quiz, .stage > .panel, .stage .result { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.vbox { animation-delay: .08s; } .gate { animation-delay: .16s; }
.reg-row { animation: rowin .5s ease both; }
.rail .reg-row:nth-of-type(2) { animation-delay: .04s; } .rail .reg-row:nth-of-type(3) { animation-delay: .08s; } .rail .reg-row:nth-of-type(4) { animation-delay: .12s; } .rail .reg-row:nth-of-type(5) { animation-delay: .16s; } .rail .reg-row:nth-of-type(6) { animation-delay: .2s; }
@keyframes rowin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.box.on { animation: pop .5s cubic-bezier(.3,1.6,.4,1) both; }
.box.on svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s ease .2s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.q.ok .opt:has(input:checked) { animation: pulse .6s ease; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,168,107,.4); } 100% { box-shadow: 0 0 0 14px rgba(0,168,107,0); } }
.progress i { transition: width 1s cubic-bezier(.2,.7,.2,1); }


@media print { *, *::before, *::after { animation: none !important; transition: none !important; } .js .rv { opacity: 1 !important; transform: none !important; } }
.arch img { object-position: 50% 58%; }
