/* =========================================================================
   AI Computer Science Academy - single stylesheet
   Orange #FF6A00 | Black #0B0B0D | White dominant | Light grey #F7F7F8
   ========================================================================= */

:root {
	/* Brand orange is a FILL colour: it carries black text (6.85:1) and is
	   never a text colour on white. Orange TEXT uses --orange-ink, which
	   measures 6.06:1 on white, 5.66:1 on the grey band and 5.47:1 on the
	   soft-orange tint — all above the 4.5:1 AA minimum. */
	--orange: #FF6A00;
	--orange-hover: #E85F00;   /* black text: 5.68:1 */
	--orange-ink: #A84300;
	--orange-dark: #A84300;    /* kept as the name older rules already use */
	--orange-soft: #FFF1E6;
	--black: #0B0B0D;
	--ink: #1C1C21;
	--muted: #5C5C66;
	--line: #E4E4E7;
	--grey: #F7F7F8;
	--white: #fff;
	--ok: #17803D;
	--bad: #B42318;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(11,11,13,.05), 0 10px 30px rgba(11,11,13,.06);
	--wrap: 1180px;
	--header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { color: var(--black); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--black); }
small { font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--black); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	transition: top .18s ease;
}
.skip:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- header */
.topbar {
	position: sticky; top: 0; z-index: 90;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong { font-size: .98rem; letter-spacing: -.01em; }
.brand__text span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
	font-size: .92rem; font-weight: 600; color: var(--ink); border-radius: var(--radius-sm);
	position: relative;
}
.nav__list a:hover { background: var(--grey); color: var(--black); }
.nav__list a[aria-current="page"] { color: var(--orange-dark); }
.nav__list a[aria-current="page"]::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--orange); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line);
	background: #fff; border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: var(--black); border-radius: 2px; position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

@media (max-width: 1080px) {
	.nav { gap: 10px; }
	.nav__list a { padding: 0 7px; font-size: .86rem; }
}
@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.nav {
		position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 14px 20px 22px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		box-shadow: 0 20px 40px rgba(11,11,13,.14); display: none; z-index: 60;
	}
	.nav__list { gap: 2px; }
	.nav__list a { min-height: 46px; display: flex; align-items: center; border-radius: 9px; }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 0 12px; font-size: 1rem; }
	.nav__list a[aria-current="page"]::after { display: none; }
	.nav__list a[aria-current="page"] { background: var(--orange-soft); }
	.nav__actions { flex-direction: column; align-items: stretch; margin-top: 10px; }
	.nav__actions .btn { justify-content: center; }
}

/* ------------------------------------------------------------ buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm);
	font-size: .95rem; font-weight: 700; border: 1px solid transparent;
	cursor: pointer; text-align: center; transition: transform .12s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: var(--orange-hover); color: var(--black); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #232329; color: #fff; }
.btn--outline { border-color: var(--black); color: var(--black); background: #fff; }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--ghost { color: var(--black); background: var(--grey); }
.btn--ghost:hover { background: #ececef; color: var(--black); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* -------------------------------------------------------------- hero */
.hero { padding: 56px 0 44px; background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--grey) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.hero__proof strong { display: block; font-size: 1.3rem; color: var(--black); }
.hero__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
/* hero chrome is defined once, in the PHASE 1 block further down */
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.hero { padding: 34px 0 30px; }
}

/* ----------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section--tight { padding: 40px 0; }
.section__head { max-width: 62ch; margin-bottom: 32px; }
.section__head h2 { margin-bottom: .35em; }
.section__head p { color: var(--muted); margin: 0; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }

.eyebrow {
	display: inline-block; margin: 0 0 10px; padding: 5px 11px; border-radius: 999px;
	background: var(--orange-soft); color: var(--orange-dark);
	font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
}

/* ------------------------------------------------------------- grids */
.grid { display: grid; gap: 22px; }
/* a long unbroken string (an email address, a URL) must never widen a track */
.grid > * { min-width: 0; }
.lessonlist li, .lessonlist li > * { min-width: 0; }
.lessonlist li a, .lessonlist li span { overflow-wrap: anywhere; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
	/* two stat tiles per row still fits a 320px phone; the word "Monthly"
	   in the last tile was what forced the page sideways */
	.grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.stat strong { font-size: 1.5rem; }
}

/* ------------------------------------------------------------- cards */
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8d8dd; }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--grey); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
	position: absolute; top: 12px; left: 12px; background: rgba(11,11,13,.86); color: #fff;
	font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	padding: 5px 10px; border-radius: 999px;
}
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.08rem; }
.card__body h3 a { color: inherit; }
.card__body p { margin: 0; color: var(--muted); font-size: .93rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: var(--muted); }
.card__meta > * { white-space: nowrap; }
.card__meta span { background: var(--grey); border-radius: 999px; padding: 3px 10px; }
.card__meta .card__flag { background: var(--black); color: #fff; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-weight: 800; color: var(--black); font-size: 1.05rem; }
.price small { color: var(--muted); font-weight: 600; font-size: .76rem; }
.price del { color: var(--muted); font-weight: 500; font-size: .84rem; margin-right: 6px; }

/* -------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: var(--orange-ink); line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips a, .chips button {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--line); background: #fff; border-radius: 999px;
	font-size: .86rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chips a:hover, .chips button:hover { border-color: var(--orange); color: var(--orange-dark); }
.chips .is-active { background: var(--black); border-color: var(--black); color: #fff; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.searchbar input {
	flex: 1 1 240px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); font: inherit; background: #fff;
}

/* -------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: .86rem; font-weight: 700; color: var(--black); }
.field .hint { font-size: .78rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
	width: 100%; min-height: 46px; padding: 11px 13px; font: inherit; color: var(--ink);
	background: #fff; border: 1px solid #D6D6DB; border-radius: var(--radius-sm);
	transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.16); outline: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkline input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; }

.authshell { max-width: 460px; margin: 46px auto 64px; padding: 0 20px; }
.authcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); background: #fff; }
.authcard h1 { font-size: 1.55rem; }
.authcard .switch { margin: 16px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------ notices */
.flash { max-width: var(--wrap); margin: 18px auto 0; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .93rem; border: 1px solid; }
.flash--ok { background: #EAF7EF; border-color: #B3E2C4; color: #14602F; }
.flash--info { background: var(--orange-soft); border-color: #FFD3B0; color: #8A3A00; }
.flash--bad { background: #FDECEA; border-color: #F5C2BC; color: var(--bad); }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem; margin: 0 0 18px; }
.alert--bad { background: #FDECEA; border-color: #F5C2BC; color: var(--bad); }
.alert--info { background: var(--grey); border-color: var(--line); color: var(--ink); }

/* ----------------------------------------------------------- pagehead */
.pagehead { padding: 34px 0 30px; background: var(--grey); border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: .3em; max-width: 26ch; }
.pagehead__lead { margin: 0; color: var(--muted); max-width: 70ch; font-size: 1.02rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--orange-dark); }

/* ------------------------------------------------------------- prose */
.prose { max-width: 72ch; }
.prose > h2 { margin-top: 1.8em; }
.prose > h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote {
	margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--orange);
	background: var(--grey); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--grey); }

.layout-split { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 940px) { .layout-split { grid-template-columns: 1fr; } }

.sidecard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; position: sticky; top: calc(var(--header-h) + 16px); }
.sidecard h2 { font-size: 1.05rem; }
.sidecard ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: .93rem; }
.sidecard li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.sidecard li:last-child { border-bottom: 0; }
.sidecard .btn { width: 100%; }

/* ------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--grey); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.table--striped tbody tr:nth-child(even) { background: #FCFCFD; }
.tablewrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.tablewrap > .table { min-width: 520px; }

/* ------------------------------------------------------------- pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pill--ok { background: #E7F6EC; color: #14602F; }
.pill--new { background: var(--orange-soft); color: #8A3A00; }
.pill--off { background: #F1F1F3; color: var(--muted); }
.pill--warn { background: #FFF6E0; color: #7A5300; }

/* -------------------------------------------------------------- lab */
.labhead { background: var(--black); color: #fff; padding: 26px 0 22px; }
.labhead h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.labhead p { color: #C9C9CF; margin: 0; }
.labhead a:not(.btn) { color: #fff; }
.labhead .btn--primary { color: var(--black); }
.labhead .eyebrow { background: rgba(255,106,0,.18); color: #FFB37A; }
.labbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 14px; }
.labbar__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.labbar__meta span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 11px; color: #E8E8EC; }
.progressbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; min-width: 160px; flex: 1 1 160px; }
.progressbar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s ease; }

/* three panes: topic | editor | results */
.labpane {
	display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(300px, 380px);
	gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	background: #fff; box-shadow: var(--shadow); min-height: 560px;
}
.labpane > section { min-width: 0; display: flex; flex-direction: column; }
.labpane__topic { border-right: 1px solid var(--line); background: #FCFCFD; }
.labpane__results { border-left: 1px solid var(--line); background: #FCFCFD; }
.pane-head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fff;
	font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.pane-body { padding: 16px; overflow: auto; flex: 1; }
.labpane__topic h2 { font-size: 1.12rem; margin-bottom: .5em; }
.labpane__topic .teach { font-size: .93rem; color: var(--ink); }
.labpane__topic .teach p:last-child { margin-bottom: 0; }
.task-q { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.task-q h3 { font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5em; }
.task-q .statement { font-weight: 600; color: var(--black); }
.starter-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge-row span { font-size: .72rem; background: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted); }

.editor-shell { display: flex; flex-direction: column; min-height: 420px; background: #0F1115; }
.editor-shell .pane-head { background: #151821; border-color: #24262F; color: #9AA0AE; }
.editor-shell textarea.code {
	flex: 1; width: 100%; min-height: 340px; padding: 16px 18px; border: 0; border-radius: 0;
	background: #0F1115; color: #E7E9EE; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: .9rem; line-height: 1.6; tab-size: 2; resize: none;
}
.editor-shell textarea.code:focus { box-shadow: none; border: 0; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid #24262F; background: #151821; }
.editor-actions .btn--primary { background: var(--orange); }
.editor-actions .btn--ghost { background: #24262F; color: #E7E9EE; border-color: #2F323D; }
.editor-actions .btn--ghost:hover { background: #2F323D; color: #fff; }
.editor-hint { margin-left: auto; font-size: .76rem; color: #8A90A0; align-self: center; }

.verdict { padding: 13px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 11px; align-items: flex-start; }
.verdict__icon {
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
	background: var(--grey); color: var(--muted); flex: 0 0 auto; font-size: .95rem;
}
.verdict[data-state="pass"] .verdict__icon { background: #E7F6EC; color: var(--ok); }
.verdict[data-state="fail"] .verdict__icon { background: #FDECEA; color: var(--bad); }
.verdict__title { font-weight: 800; font-size: .94rem; color: var(--black); }
.verdict__text { font-size: .86rem; color: var(--muted); white-space: pre-wrap; }

.checks { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.checks li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.checks li:last-child { border-bottom: 0; }
.checks .mark { font-weight: 800; width: 16px; flex: 0 0 auto; }
.checks .pass .mark { color: var(--ok); }
.checks .fail .mark { color: var(--bad); }

.console {
	margin: 0; padding: 12px 14px; background: #0F1115; color: #D7DBE3; font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: .82rem; line-height: 1.55; border-radius: var(--radius-sm); min-height: 90px; max-height: 260px; overflow: auto; white-space: pre-wrap;
}
.console--err { color: #FFB4A8; }
.preview-frame { width: 100%; min-height: 210px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

.labpane__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.labpane__foot .next-cta { display: none; }
.labpane__foot.is-passed .next-cta { display: inline-flex; }

.hintbox { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; padding: 12px 14px; font-size: .9rem; margin-top: 14px; }
.hintbox summary { cursor: pointer; font-weight: 800; color: var(--orange-dark); font-size: .88rem; }
.hintbox[open] summary { margin-bottom: 8px; }

@media (max-width: 1080px) {
	.labpane { grid-template-columns: 1fr; }
	.labpane__topic, .labpane__results { border: 0; border-top: 1px solid var(--line); }
	.labpane__topic { border-top: 0; }
	.editor-shell { min-height: 300px; }
	.labpane > section { min-height: 0; }
}

/* track listing */
.trackcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.trackcard h3 { margin: 0; }
.trackcard .trackcard__top { display: flex; align-items: center; gap: 12px; }
.trackcard__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.trackcard__icon svg { width: 22px; height: 22px; }
.trackcard ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.trackcard li { padding: 4px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.trackcard li:last-child { border-bottom: 0; }
.mini-progress { height: 6px; border-radius: 999px; background: var(--grey); overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--orange); }

/* quiz + exam */
.quizwrap { max-width: 820px; margin: 0 auto; }
.qcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: #fff; }
.qcard__num { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); }
.qcard h2 { font-size: 1.08rem; margin: 6px 0 14px; }
.qopts { display: grid; gap: 9px; }
.qopt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .93rem; background: #fff; }
.qopt:hover { border-color: #C9C9D0; }
.qopt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.qopt.is-right { border-color: #9FD8B4; background: #F2FBF5; }
.qopt.is-wrong { border-color: #F0BDB7; background: #FEF5F4; }
.qreview-note { font-size: .88rem; color: var(--muted); margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--orange-dark); }

/* certificate */
.cert {
	position: relative; background: #fff; border: 2px solid var(--black); border-radius: 8px; padding: 46px 44px;
	max-width: 900px; margin: 0 auto; overflow: hidden;
}
.cert::before {
	content: ""; position: absolute; inset: 12px; border: 1px solid var(--orange); border-radius: 4px; pointer-events: none;
}
.cert__wm {
	position: absolute; inset: 0; display: grid; place-items: center; opacity: .06; pointer-events: none;
}
.cert__wm img { width: 62%; }
.cert__head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.cert__head img { width: 190px; height: auto; }
.cert__head div { margin-left: auto; text-align: right; font-size: .8rem; color: var(--muted); }
.cert h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 10px; }
.cert__name { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--black); border-bottom: 1.5px dashed var(--line); display: inline-block; padding-bottom: 4px; margin: 6px 0 18px; }
.cert__body { text-align: center; position: relative; z-index: 1; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin: 24px 0 8px; font-size: .9rem; color: var(--muted); }
.cert__meta strong { display: block; color: var(--black); font-size: 1.1rem; }
.cert__sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; text-align: left; }
.cert__sign-name { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.7rem; color: var(--black); border-bottom: 1px solid var(--black); padding: 0 18px 2px; }
.cert__sign small { display: block; color: var(--muted); font-size: .78rem; }
.cert__code { font-size: .76rem; color: var(--muted); }
@media (max-width: 700px) { .cert { padding: 26px 20px; } .cert__sign { flex-direction: column; align-items: flex-start; } }
@media print {
	.topbar, .footer, .wa-float, .noprint { display: none !important; }
	.cert { border-color: #000; box-shadow: none; margin: 0; max-width: none; }
	body { background: #fff; }
}

/* -------------------------------------------------------------- table of contents */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; margin-bottom: 26px; }
.toc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.toc li { margin-bottom: 5px; }

.lessonlist { list-style: none; padding: 0; margin: 0; }
.lessonlist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.lessonlist li:last-child { border-bottom: 0; }
.lessonlist .num { width: 26px; flex: 0 0 auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lessonlist a { flex: 1; }
.lessonlist .tick { color: var(--ok); font-weight: 800; }
.lessonlist .lock { color: var(--muted); font-size: .78rem; }

/* ------------------------------------------------------------- footer */
.footer { background: var(--black); color: #C9C9CF; padding: 48px 0 22px; margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__h { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.footer li { margin-bottom: 8px; }
.footer a { color: #C9C9CF; }
.footer a:hover { color: var(--orange); }
.footer__col--brand img { margin-bottom: 14px; }
.footer__col--brand p { font-size: .9rem; color: #A9A9B2; }
.footer__hours { color: #C9C9CF !important; }
.footer__base { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid #232329; margin-top: 34px; padding-top: 16px; font-size: .82rem; color: #8C8C96; }
.footer__base-links a { color: #A9A9B2; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- whatsapp float */
.wa-float {
	position: fixed; left: 18px; bottom: 18px; z-index: 80;
	width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff;
	display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37,211,102,.36);
	transition: transform .16s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ----------------------------------------------------------- utilities */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.stack > * + * { margin-top: 14px; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.inline-list li { background: var(--grey); border-radius: 999px; padding: 5px 12px; font-size: .82rem; color: var(--ink); }
.cta-band {
	background: linear-gradient(135deg, #0B0B0D 0%, #1B1B21 100%);
	border-radius: 18px; padding: 30px; display: flex; flex-wrap: wrap; gap: 20px;
	align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #C9C9CF; }
@media (max-width: 620px) { .cta-band { padding: 22px; } }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- admin */
.admin { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; background: var(--grey); }
.admin__side { background: var(--black); color: #C9C9CF; padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin__side a { color: #C9C9CF; display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.admin__side a:hover { background: #1B1B21; color: #fff; }
.admin__side a.is-active { background: var(--orange); color: var(--black); }
.admin__side h1 { color: #fff; font-size: .95rem; padding: 0 12px 14px; border-bottom: 1px solid #232329; margin-bottom: 12px; }
.admin__side h1 span { display: block; font-size: .7rem; color: #8C8C96; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.admin__side .admin__sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #6E6E78; padding: 16px 12px 6px; }
.admin__main { padding: 26px 30px 60px; min-width: 0; }
.admin__top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin__top h2 { margin: 0; font-size: 1.5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h3 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi strong { display: block; font-size: 1.7rem; color: var(--black); line-height: 1.1; }
.kpi span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
	.admin { grid-template-columns: 1fr; }
	.admin__side { position: static; height: auto; }
	.admin__main { padding: 20px 16px 50px; }
}

.adminlogin { max-width: 400px; margin: 9vh auto; padding: 0 20px; }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------- quiz presentation layer */
.quizchrome { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.quizchrome[hidden] { display: none; }
fieldset.qcard { border: 1px solid var(--line); margin: 0 0 16px; }
fieldset.qcard legend { padding: 0 6px; }
.qcard[hidden] { display: none; }
.timer.is-low { color: var(--bad); }
.timer.is-done { color: var(--muted); }
.aicsalab-quiz__warn { font-size: .85rem; color: var(--bad); font-weight: 600; }
.aicsalab-lesson__nextlocked { display: inline-flex; gap: 6px; align-items: center; }
.aicsalab-lesson__nextlocked small { font-weight: 500; }
.aicsalab-verdict__link { color: var(--orange-dark); font-weight: 700; }
.mini-progress i[data-aicsalab-progress-fill] { display: block; height: 100%; background: var(--orange); }
.textarea-dark { background: #0F1115; color: #E7E9EE; }

/* =========================================================================
   PHASE 1 — front-end overhaul
   Typing hero, CEO block, redesigned sections, visit band, map, popups,
   weekend classes, compilers landing page, policy pages.
   Contrast rule: white text only on --black / --orange-dark / --ink;
   black text only on white, --grey or --orange-soft.
   ========================================================================= */

/* ---------------------------------------------------- header: 9 items */
.nav__list a { padding: 0 8px; font-size: .87rem; white-space: nowrap; }
.nav { gap: 10px; }
.nav__actions { gap: 6px; flex: 0 0 auto; }
.nav__actions .btn { white-space: nowrap; }
.brand__text strong, .brand__text span { white-space: nowrap; }
@media (max-width: 1400px) {
	.nav__list a { padding: 0 6px; font-size: .84rem; }
	.nav__actions .btn--sm { padding: 0 10px; font-size: .82rem; }
	.brand__text strong { font-size: .86rem; }
	.brand__text span { font-size: .62rem; }
	.nav { gap: 6px; }
}
@media (max-width: 1120px) {
	.menu-toggle { display: inline-flex; }
	.nav {
		position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
		background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
		box-shadow: var(--shadow); display: none;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 0 12px; font-size: 1rem; }
	.nav__list a[aria-current="page"]::after { display: none; }
	.nav__list a[aria-current="page"] { background: var(--orange-soft); }
	.nav__actions { flex-direction: column; align-items: stretch; margin-top: 10px; }
	.nav__actions .btn { justify-content: center; }
}

/* ------------------------------------------------------------ typing hero */
.hero { position: relative; padding: 52px 0 46px; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px;
	background: radial-gradient(circle, rgba(255,106,0,.13) 0%, rgba(255,106,0,0) 70%);
	pointer-events: none;
}
.hero__grid { position: relative; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 7px 14px;
	border-radius: 999px; background: #fff; border: 1px solid var(--line);
	font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--ink);
	box-shadow: 0 1px 2px rgba(11,11,13,.04);
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #17A34A; box-shadow: 0 0 0 3px rgba(23,163,74,.18); animation: heroDot 2.4s ease-in-out infinite; }
@keyframes heroDot { 50% { box-shadow: 0 0 0 6px rgba(23,163,74,.06); } }

.hero__title { font-size: clamp(1.8rem, 3.9vw, 2.85rem); line-height: 1.14; margin: 0 0 .45em; max-width: 20ch; }
.typewrap {
	display: inline; color: #E85C00; font-weight: 800;   /* 3.52:1 — passes AA for large bold text */
	text-decoration: underline; text-decoration-color: rgba(255,106,0,.35);
	text-decoration-thickness: 4px; text-underline-offset: 6px;
}
.typed { white-space: pre-wrap; }
.caret {
	display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -.16em;
	background: #E85C00; border-radius: 2px; animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 26px 0 0; }
.hero__proof-item strong { display: block; font-size: 1.45rem; color: var(--black); line-height: 1.15; }
.hero__proof-item span { font-size: .82rem; color: var(--muted); }

.hero__stage { position: relative; }
.hero__slide {
	position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
	transition: opacity .5s ease, visibility .5s ease;
	border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(11,11,13,.14);
}
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hero__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,11,13,0) 62%, rgba(11,11,13,.42) 100%);
	pointer-events: none;
}
.hero__caption {
	position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
	display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
	background: rgba(11,11,13,.84); border: 1px solid rgba(255,255,255,.14);
	border-radius: 11px; padding: 9px 11px; backdrop-filter: blur(4px);
}
.hero__caption-chip {
	flex: 0 0 auto; background: var(--orange); color: var(--black); font-size: .72rem; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.hero__caption-note { color: #fff; font-size: .84rem; font-weight: 600; }

.hero__float {
	position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px;
	box-shadow: 0 10px 26px rgba(11,11,13,.12); font-size: .78rem; color: var(--ink); max-width: 246px;
}
.hero__float svg { color: var(--orange); flex: 0 0 auto; }
.hero__float strong { display: block; font-size: .8rem; color: var(--black); line-height: 1.25; }
.hero__float span { color: var(--muted); font-size: .74rem; }
.hero__float--place { left: -18px; top: 26px; animation: floaty 6s ease-in-out infinite; }
.hero__float--cert { right: -14px; bottom: 58px; animation: floaty 7s ease-in-out .8s infinite; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
@media (max-width: 1100px) {
	.hero__float--place { left: 6px; top: 10px; }
	.hero__float--cert { right: 6px; bottom: 12px; }
}
@media (max-width: 900px) {
	.hero__title { max-width: none; }
	.hero__float { display: none; }
}

/* --------------------------------------------------------------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding: 12px 0; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item {
	display: inline-flex; align-items: center; gap: 18px; padding: 0 18px;
	font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.marquee__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------- feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.feature {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8d8dd; }
.feature__icon {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
	background: var(--orange-soft); color: var(--orange-dark); margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: .4em; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ lab cards */
.labgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.labcard {
	display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.labcard::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--orange);
	transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.labcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.labcard:hover::before { transform: scaleX(1); }
.labcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.labcard__lang {
	font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
	background: var(--black); color: #fff; padding: 3px 9px; border-radius: 5px;
}
.labcard__level { font-size: .74rem; color: var(--muted); font-weight: 600; }
.labcard__title { font-size: 1.1rem; margin: 2px 0 0; }
.labcard__text { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.labcard__meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.labcard__cta {
	display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; min-height: 40px;
	font-size: .88rem; font-weight: 700; color: var(--orange-dark);
}
.labcard__cta:hover { color: var(--black); }
.labcard__cta svg { transition: transform .16s ease; }
.labcard__cta:hover svg { transform: translateX(3px); }
@media (max-width: 980px) { .labgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .labgrid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ CEO */
.ceo {
	display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 40px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px;
	box-shadow: var(--shadow);
}
.ceo__media { position: relative; }
.ceo__media img {
	width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; display: block;
	filter: saturate(.96);
}
.ceo__media::after {
	content: ""; position: absolute; inset: auto -10px -10px auto; width: 120px; height: 120px;
	border-radius: 18px; border: 3px solid var(--orange); z-index: 0; pointer-events: none;
}
.ceo__tag {
	position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
	background: rgba(11,11,13,.86); color: #fff; border-radius: 12px; padding: 10px 13px;
	display: flex; flex-direction: column; gap: 1px; backdrop-filter: blur(6px);
}
.ceo__tag strong { color: #fff; font-size: .92rem; }
.ceo__tag span { color: #C9C9CF; font-size: .76rem; }
.ceo__quote { font-size: clamp(1.25rem, 2.3vw, 1.72rem); line-height: 1.3; margin: 0 0 16px; }
.ceo__body p { color: var(--muted); font-size: .95rem; }
.ceo__sign { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.ceo__sign-name { font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 1.5rem; color: var(--black); line-height: 1.2; }
.ceo__sign-role { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 900px) { .ceo { grid-template-columns: 1fr; gap: 26px; padding: 22px; } .ceo__media { max-width: 320px; } }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; counter-reset: none; }
.steps__item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.steps__num {
	display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--orange-dark);
	background: var(--orange-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 10px;
}
.steps__item h3 { font-size: 1rem; margin-bottom: .35em; }
.steps__item p { font-size: .88rem; color: var(--muted); margin: 0; }
.steps__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------- visit band (dark, stands out) */
.visit {
	position: relative; overflow: hidden; padding: 62px 0; color: #fff;
	background:
		radial-gradient(900px 380px at 12% -10%, rgba(255,106,0,.34), rgba(255,106,0,0) 62%),
		linear-gradient(135deg, #0B0B0D 0%, #16161B 58%, #1D1D23 100%);
}
.visit::after {
	content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
	border-radius: 50%; border: 1px solid rgba(255,255,255,.09);
	box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.02);
	pointer-events: none;
}
.visit__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 48px; align-items: center; }
.visit__chip {
	display: inline-block; background: rgba(255,106,0,.16); color: #FFB27A; border: 1px solid rgba(255,106,0,.4);
	font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.visit__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.18; margin: 0 0 14px; }
.visit__lead { color: #C9C9CF; font-size: 1.02rem; max-width: 56ch; margin: 0 0 26px; }
.visit__facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.visit__facts li { display: flex; gap: 12px; align-items: flex-start; }
.visit__fact-icon {
	flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
	background: rgba(255,255,255,.08); color: #FFB27A; border: 1px solid rgba(255,255,255,.12);
}
.visit__facts strong { display: block; color: #fff; font-size: .86rem; }
.visit__facts span, .visit__facts a { color: #C9C9CF; font-size: .9rem; }
.visit__facts a { color: #FFB27A; font-weight: 700; }
.visit__facts a:hover { color: #fff; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--visit { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--visit:hover { background: #fff; color: var(--black); border-color: #fff; }
.visit__card {
	background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
	padding: 22px; backdrop-filter: blur(8px);
}
.visit__card-head { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: #E4E4E7; font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.visit__card-dot { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); animation: heroDot 2.6s ease-in-out infinite; }
.visit__card-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.visit__card-list li { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 12px; }
.visit__card-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.visit__card-list strong { color: var(--orange); font-size: 1.35rem; line-height: 1; min-width: 62px; }
.visit__card-list span { color: #C9C9CF; font-size: .86rem; }
.visit__card-note { color: #A9A9B2; font-size: .8rem; margin: 0; }
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; gap: 30px; } .visit { padding: 46px 0; } }

/* ----------------------------------------------------------- blog cards */
.postcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.postcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.postcard__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--grey); }
.postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.postcard:hover .postcard__media img { transform: scale(1.04); }
.postcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.postcard__date { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.postcard__title { font-size: 1.05rem; margin: 0; }
.postcard__text { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.postcard__link { font-size: .86rem; font-weight: 700; color: var(--orange-dark); }

/* ----------------------------------------------------------- map + card */
.mapcard { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,.75fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.mapcard__map { position: relative; min-height: 380px; }
.mapcard__side { padding: 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.mapcard__list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.mapcard__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink); }
.mapcard__list svg { color: var(--orange); flex: 0 0 auto; margin-top: 2px; }
.mapcard__side .btn { margin-top: auto; }
@media (max-width: 900px) { .mapcard { grid-template-columns: 1fr; } .mapcard__side { border-left: 0; border-top: 1px solid var(--line); } .mapcard__map { min-height: 320px; } }

.map { position: absolute; inset: 0; overflow: hidden; background: #F2F2F4; }
.map__svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.map__svg.is-dragging { cursor: grabbing; }
.map__pin { cursor: pointer; }
.map__pin:focus { outline: none; }
.map__pin:focus-visible circle:first-child { stroke: var(--black); stroke-width: 2; }
.map__pulse { animation: mapPulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes mapPulse { 0% { r: 11; opacity: .45; } 70% { r: 26; opacity: 0; } 100% { opacity: 0; } }
.map__controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.map__btn {
	width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: var(--black);
	border: 1px solid var(--line); border-radius: 9px; cursor: pointer; box-shadow: 0 2px 6px rgba(11,11,13,.08);
}
.map__btn:hover { background: var(--grey); }
.map__hint {
	position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94);
	border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .74rem; color: var(--muted);
}
.map__card {
	position: absolute; left: 12px; top: 12px; width: min(280px, calc(100% - 70px));
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
	box-shadow: 0 12px 30px rgba(11,11,13,.16); display: flex; flex-direction: column; gap: 5px;
}
.map__card[hidden] { display: none; }
.map__card strong { color: var(--black); font-size: .92rem; }
.map__card span { font-size: .8rem; color: var(--muted); }
.map__card .btn { margin-top: 6px; align-self: flex-start; }

/* --------------------------------------------------------------- popups */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(11,11,13,.62); backdrop-filter: blur(3px); animation: fadeIn .22s ease; }
.modal__panel {
	position: relative; z-index: 1; width: min(880px, 100%); max-height: min(92vh, 720px); overflow: auto;
	background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(11,11,13,.35);
	display: grid; grid-template-columns: 320px minmax(0,1fr); animation: popIn .26s ease;
}
.modal__panel--slim { grid-template-columns: 1fr; width: min(520px, 100%); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.modal__close {
	position: absolute; right: 12px; top: 12px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center;
	background: #fff; color: var(--black); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.modal__close:hover { background: var(--grey); }
.modal__aside {
	background: linear-gradient(160deg, #0B0B0D 0%, #1B1B21 100%); color: #fff; padding: 30px 24px;
	display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.modal__aside::after {
	content: ""; position: absolute; right: -60px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 26px rgba(255,255,255,.04);
}
.modal__chip {
	align-self: flex-start; background: var(--orange); color: var(--black); font-size: .7rem; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.modal__aside-title { color: #fff; font-size: 1.32rem; line-height: 1.25; margin: 0; }
.modal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.modal__list li { color: #D8D8DE; font-size: .86rem; padding-left: 22px; position: relative; }
.modal__list li::before {
	content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800;
}
.modal__aside-foot { margin: auto 0 0; color: #fff; font-weight: 700; font-size: .92rem; position: relative; z-index: 1; }
.modal__aside-foot span { color: #A9A9B2; font-weight: 500; font-size: .8rem; }
.modal__body { padding: 30px 28px 26px; }
.modal__title { font-size: 1.45rem; line-height: 1.22; margin: 0 0 8px; }
.modal__lead { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal__tiny { font-size: .76rem; color: var(--muted); margin: 12px 0 0; }
.modal__badge {
	align-self: flex-start; display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em;
	text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.modal__badge--warn { background: #FEF3F2; color: #B42318; border: 1px solid #FDA29B; }
.modal__courses { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.modal__courses li {
	display: flex; justify-content: space-between; gap: 12px; font-size: .9rem;
	border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--grey);
}
.modal__courses strong { color: var(--black); }
.modal.is-open { display: grid; }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) {
	.modal__panel { grid-template-columns: 1fr; max-height: 88vh; }
	.modal__aside { display: none; }
	.modal__body { padding: 26px 18px 20px; }
	.modal__row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ weekend classes */
.weekend-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 34px; align-items: start; }
.weekend-hero__chip {
	display: inline-block; background: var(--black); color: #fff; font-size: .72rem; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; margin-bottom: 14px;
}
.weekend-hero__title { font-size: clamp(1.5rem, 2.7vw, 2rem); margin: 0 0 12px; }
.weekend-hero__copy p { color: var(--muted); }
.weekend-hero__list { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; gap: 9px; }
.weekend-hero__list li { position: relative; padding-left: 26px; font-size: .92rem; }
.weekend-hero__list li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%;
	background: var(--orange-soft); border: 3px solid var(--orange);
}
.weekend-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.weekend-hero__side { display: grid; gap: 10px; }
.weekend-slot {
	display: grid; grid-template-columns: 52px minmax(0,1fr); grid-template-rows: auto auto;
	column-gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line);
	border-radius: 12px; padding: 12px 14px;
}
.weekend-slot__day {
	grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
	background: var(--black); color: #fff; font-weight: 800; font-size: .84rem; letter-spacing: .04em;
}
.weekend-slot strong { color: var(--black); font-size: .96rem; }
.weekend-slot span:last-child { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) { .weekend-hero { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- compilers */
.compiler-preview { background: #0F1115; border-radius: 16px; overflow: hidden; border: 1px solid #23262F; box-shadow: 0 18px 40px rgba(11,11,13,.22); }
.compiler-preview__bar {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #151821;
	border-bottom: 1px solid #23262F; color: #9AA0AE; font-size: .8rem;
}
.compiler-preview__file { font-weight: 700; color: #E7E9EE; }
.compiler-preview__run {
	display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: var(--black);
	border-radius: 7px; padding: 5px 12px; font-weight: 800; font-size: .78rem; margin: 0 auto;
}
.compiler-preview__meta { display: inline-flex; align-items: center; gap: 8px; }
.compiler-preview__theme { width: 34px; height: 18px; border-radius: 999px; background: #2F323D; position: relative; }
.compiler-preview__theme::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.compiler-preview__split { display: grid; grid-template-columns: minmax(0,1fr) 8px minmax(0,.85fr); min-height: 230px; }
.compiler-preview__code, .compiler-preview__out {
	margin: 0; padding: 18px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .84rem; line-height: 1.7; color: #E7E9EE; white-space: pre;
}
.compiler-preview__out { background: #0B0D11; color: #C9CFDA; border-left: 1px solid #23262F; }
.compiler-preview__handle { background: #23262F; cursor: col-resize; }
.compiler-preview__handle:hover { background: var(--orange); }
.c-key { color: #FF9C5B; }
.c-fn { color: #8FD3FF; }
.c-str { color: #A6E3A1; }
.c-prompt { color: var(--orange); }
.c-ok { color: #7FD99A; }
@media (max-width: 700px) {
	.compiler-preview__split { grid-template-columns: 1fr; }
	.compiler-preview__handle { display: none; }
	.compiler-preview__out { border-left: 0; border-top: 1px solid #23262F; }
	.compiler-preview__bar { flex-wrap: wrap; }
}

.langgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.langgrid__item {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
	transition: border-color .16s ease, transform .16s ease;
}
.langgrid__item:hover { border-color: var(--orange); transform: translateY(-2px); }
.langgrid__ext {
	grid-row: 1 / span 2; display: grid; place-items: center; min-width: 42px; height: 34px; padding: 0 6px;
	border-radius: 8px; background: var(--black); color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: .78rem;
}
.langgrid__item strong { font-size: .9rem; color: var(--black); }
.langgrid__note { font-size: .74rem; color: var(--muted); }
@media (max-width: 900px) { .langgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .langgrid { grid-template-columns: 1fr; } }

/* a course card carrying a corner flag (e.g. "Weekend") */
.card--flag { position: relative; }
.card__corner {
	position: absolute; right: 0; top: 0; z-index: 1;
	background: var(--black); color: #fff; font-size: .66rem; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px;
	border-radius: 0 0 0 9px;
}

/* --------------------------------------------------- numbered step lists */
.step-list { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.step-list > li {
	position: relative; counter-increment: step; padding-left: 42px; font-size: .92rem; color: var(--ink);
}
.step-list > li::before {
	content: counter(step); position: absolute; left: 0; top: -1px;
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--orange-soft); color: var(--orange-ink); font-weight: 800; font-size: .82rem;
	border: 1px solid #F5D8C2;
}
.step-list > li strong { color: var(--black); }

/* ------------------------------------------------------------ legal pages */
.pagehead__meta { margin: 12px 0 0; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

.legal__inner { max-width: 74ch; }
.legal__inner h2 { font-size: 1.22rem; margin: 30px 0 10px; }
.legal__inner h2:first-child { margin-top: 0; }
.legal__inner p, .legal__inner li { color: var(--ink); font-size: .96rem; }
.legal__inner ul { margin: 0 0 14px; padding-left: 20px; }
.legal__inner li { margin-bottom: 7px; }
.legal__meta {
	margin: -6px 0 26px; font-size: .8rem; color: var(--muted); letter-spacing: .02em;
	padding-bottom: 14px; border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------- footer (LTR) */
.footer .brand__text strong, .footer .brand__text span { color: #fff; }
.footer .brand__text span { color: #A9A9B2; }
.footer .brand__mark { width: 40px; height: 40px; }

.footer__about { font-size: .88rem; color: #A9A9B2; margin: 0 0 14px; max-width: 34ch; }
.footer__contact { display: grid; gap: 9px; }
.footer__contact li { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: #C9C9CF; }
.footer__contact svg { color: var(--orange); flex: 0 0 auto; margin-top: 3px; }
.footer__contact a { color: #C9C9CF; }
.footer__contact a:hover { color: var(--orange); }
.footer__links { display: grid; gap: 8px; }
.footer__base { flex-wrap: wrap; row-gap: 12px; }
.footer__copy { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: #A9A9B2; font-size: .82rem; }
.footer__legal a:hover { color: var(--orange); }
.footer__staff {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 7px;
	border: 1px solid #2A2A31; color: #8C8C96; font-size: .76rem; letter-spacing: .04em;
}
.footer__staff:hover { color: #fff; border-color: #46464F; }
@media (max-width: 900px) {
	.footer__base { flex-direction: column; align-items: flex-start; }
}

/* ghost buttons sit on the grey band too — give them a white plate there so
   they still read as buttons instead of floating text */
.section--grey .btn--ghost, .cta-band .btn--ghost { background: #fff; }
.section--grey .btn--ghost:hover { background: #FAFAFB; }

/* ------------------------------------------------ contrast safety net */
.on-dark, .visit, .footer, .modal__aside { --ink: #E4E4E7; --muted: #B4B4BD; }
.visit a:not(.btn), .footer a:not(.btn) { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ------------------------------------------------------- print (popups) */
@media print {
	.modal, .map__controls, .wa-float { display: none !important; }
}
