/* Aesori Academy — brand stylesheet (rose #f43f5e, from aesori.co.uk) */
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces/fraunces-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces/fraunces-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --rose: #f43f5e; --rose-600: #e11d48; --rose-700: #be123c; --rose-800: #9f1239;
  --rose-50: #fff1f2; --rose-100: #ffe4e6; --rose-200: #fecdd3;
  --ink: #1f1720; --ink-2: #3d3138; --muted: #75656c; --line: #efe4e6; --line-2: #e4d5d8;
  --bg: #fcf8f7; --surface: #ffffff; --surface-2: #fdf6f5;
  --good: #047857; --good-bg: #ecfdf5; --warn: #b45309; --warn-bg: #fffbeb; --bad: #be123c; --bad-bg: #fff1f2; --info: #1d4ed8; --info-bg: #eff6ff;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31,23,32,.04), 0 4px 16px rgba(31,23,32,.05);
  --shadow-lg: 0 12px 40px rgba(159,18,57,.12);
  --font: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--rose-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code { background: var(--rose-50); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-lg { margin-top: 28px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(244,63,94,.45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #fb7185, var(--rose-600)); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 20px; box-shadow: 0 6px 16px rgba(244,63,94,.35); }
.logo-word { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.logo-word em { font-style: italic; color: var(--rose); font-weight: 500; }
.logo-sub { display: block; font-family: var(--font); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: -2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--rose-200); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 4px 14px rgba(244,63,94,.28); }
.btn-primary:hover { background: var(--rose-600); border-color: var(--rose-600); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #33262f; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--rose-50); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: #fecdd3; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--rose-700); font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font: 15px/1.4 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(244,63,94,.12); }
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 280px; font-size: 14.5px; }
input[type=color] { width: 56px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--rose); flex: none; }
.checks { display: grid; gap: 8px; max-height: 240px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--muted); font-weight: 600; }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.errors { background: var(--bad-bg); border: 1px solid #fecdd3; color: var(--bad); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.dropzone { position: relative; border: 2px dashed var(--rose-200); border-radius: var(--radius); background: var(--rose-50); padding: 26px; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--rose); background: #ffe9ec; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--rose); box-shadow: var(--shadow); }
.dropzone strong { display: block; }
.dz-list { list-style: none; margin: 12px 0 0; padding: 0; text-align: left; font-size: 13px; }
.dz-list li { padding: 6px 10px; background: #fff; border-radius: 8px; margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Flash / callouts ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.flash-success { background: var(--good-bg); color: var(--good); border: 1px solid #a7f3d0; }
.flash-error { background: var(--bad-bg); color: var(--bad); border: 1px solid #fecdd3; }
.callout { padding: 16px 18px; border-radius: var(--radius); background: var(--rose-50); border: 1px solid var(--rose-100); margin-bottom: 20px; }
.callout-warn { background: var(--warn-bg); border-color: #fde68a; }
.callout-info { background: var(--info-bg); border-color: #bfdbfe; }
.callout h3 { margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Badges, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #f3eff0; color: var(--muted); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--rose-50); color: var(--rose-800); font-size: 12px; font-weight: 600; margin: 2px 4px 2px 0; }
.chip-plain { background: #f3eff0; color: var(--ink-2); }

/* ---------- Cards, grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card-tight { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-tight .card-head { padding: 18px 22px 0; }
.grid { display: grid; gap: 20px; }
.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)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--serif); font-size: 32px; font-weight: 600; margin-top: 4px; line-height: 1.1; }
.stat-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat-accent { background: linear-gradient(135deg, var(--rose), var(--rose-700)); color: #fff; border: 0; }
.stat-accent .stat-label, .stat-accent .stat-note { color: rgba(255,255,255,.85); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--rose-50); color: var(--rose); display: grid; place-items: center; margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }

/* ---------- Tables / lists ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffbfb; }
.table .name { font-weight: 600; color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.list li:last-child { border-bottom: 0; }
.list-title { font-weight: 600; }
.person { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rose-100); color: var(--rose-800); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 500; }

/* ---------- Progress ---------- */
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--rose-100); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--rose-100); border-radius: 99px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #fb7185, var(--rose-600)); border-radius: 99px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #fb7185, var(--rose-600)); border-radius: 99px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--rose-700); border-bottom-color: var(--rose); }
.tabs .count { background: var(--rose-50); color: var(--rose-700); border-radius: 99px; padding: 1px 7px; font-size: 11.5px; margin-left: 4px; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .logo { padding: 4px 8px 18px; }
.side-academy { margin: 0 6px 16px; padding: 12px; border-radius: 12px; background: var(--rose-50); }
.side-academy strong { display: block; font-size: 13.5px; line-height: 1.3; }
.side-academy span { font-size: 12px; color: var(--muted); }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #a8969c; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--rose-50); color: var(--rose-800); font-weight: 600; }
.nav a.active svg { color: var(--rose); }
.nav svg { width: 18px; height: 18px; flex: none; color: #a8969c; }
.nav .pill { margin-left: auto; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.side-user .who { min-width: 0; }
.side-user .who strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 12px; color: var(--muted); }
.main { min-width: 0; }
.topbar { display: none; }
.content { max-width: 1180px; margin: 0 auto; padding: 32px 36px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .lede { color: var(--muted); margin: 6px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.view-as-bar { background: var(--ink); color: #fff; padding: 10px 20px; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 30; }
.view-as-bar .btn { padding: 6px 14px; font-size: 13px; }

/* ---------- Course outline / lessons ---------- */
.module { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.module-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.module-head h3 { margin: 0; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row .grow { flex: 1; min-width: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.tick.done { background: var(--good); border-color: var(--good); }
.tick svg { width: 12px; height: 12px; }
.prose { font-size: 15.5px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: #fff; }
.file-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--rose-50); color: var(--rose-700); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; flex: none; }
.file-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.media-grid a, .media-grid figure { display: block; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.media-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-grid figcaption { font-size: 12px; padding: 6px 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
video.player { width: 100%; border-radius: var(--radius); background: #000; }
.feedback { border-left: 4px solid var(--rose); background: var(--rose-50); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.course-cover { height: 96px; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 40%), linear-gradient(135deg, #fda4af, var(--rose-600)); position: relative; }
.course-cover.c1 { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.3), transparent 40%), linear-gradient(135deg, #fecdd3, #be185d); }
.course-cover.c2 { background: radial-gradient(circle at 70% 70%, rgba(255,255,255,.3), transparent 45%), linear-gradient(135deg, #fbcfe8, #9f1239); }
.course-cover .code { position: absolute; left: 16px; bottom: 12px; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .08em; background: rgba(0,0,0,.18); padding: 3px 9px; border-radius: 99px; }
.course-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.course-body h3 { margin: 0; font-size: 16px; }
.course-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.course-body .spacer { flex: 1; }

/* ---------- Charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 46px; background: linear-gradient(180deg, #fb7185, var(--rose-600)); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.bars .bar span { font-size: 12px; color: var(--muted); }
.bars .bar b { font-size: 12px; }

/* ---------- Public site ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(252,248,247,.86); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav nav { display: flex; gap: 6px; align-items: center; }
.site-nav nav a.link { color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 99px; }
.site-nav nav a.link:hover { background: var(--rose-50); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(244,63,94,.18), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--rose-100); color: var(--rose-700); font-size: 13px; font-weight: 600; margin-bottom: 20px; box-shadow: var(--shadow); }
.hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { color: var(--rose); font-weight: 500; }
.hero .lead { font-size: 18.5px; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.hero-points span { display: inline-flex; gap: 6px; align-items: center; }
.hero-points svg { color: var(--rose); width: 16px; height: 16px; }
.mock { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 18px; transform: rotate(1deg); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rose-100); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.mock-row .grow { flex: 1; }
.mock-row strong { display: block; font-size: 14px; }
.mock-row span { font-size: 12px; color: var(--muted); }
.mock-thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #fecdd3, var(--rose)); flex: none; }
.section { padding: 72px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 38px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 17px; }
.feature { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--rose-50); color: var(--rose); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 28px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.role h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.role ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.role li { margin-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--rose); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.plan .price { font-family: var(--serif); font-size: 42px; font-weight: 600; margin: 14px 0 0; }
.plan .price small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--rose-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2L11.5 6' stroke='%23e11d48' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-bottom: 28px; }
.toggle a, .toggle label { padding: 8px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; margin: 0; text-decoration: none; }
.toggle a.on, .toggle input:checked + label { background: var(--ink); color: #fff; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.trust strong { display: block; margin-bottom: 4px; }
.cta-band { background: linear-gradient(135deg, var(--rose), var(--rose-800)); color: #fff; border-radius: 26px; padding: 52px; text-align: center; }
.cta-band h2 { color: #fff; font-family: var(--serif); font-size: 36px; font-weight: 600; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; }
.cta-band .btn { background: #fff; color: var(--rose-800); border-color: #fff; }
.site-foot { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); margin-left: 18px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 40%), linear-gradient(150deg, #fb7185, var(--rose-700) 60%, var(--rose-800)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .logo { color: #fff; }
.auth-art .logo-mark { background: #fff; color: var(--rose); }
.auth-art .logo-sub { color: rgba(255,255,255,.75); }
.auth-art blockquote { font-family: var(--serif); font-size: 30px; line-height: 1.25; margin: 0; font-weight: 500; }
.auth-art p { color: rgba(255,255,255,.85); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 32px; }
.signup-wrap { max-width: 980px; margin: 0 auto; padding: 40px 24px 80px; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-pick label { position: relative; display: block; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; background: #fff; font-weight: 500; transition: border-color .15s; margin: 0; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick input:checked + .pp { color: var(--ink); }
.plan-pick label:has(input:checked) { border-color: var(--rose); background: var(--rose-50); }
.plan-pick input:focus-visible + .pp { outline: 3px solid rgba(244,63,94,.45); outline-offset: 4px; border-radius: 8px; }
.pp strong { display: block; font-size: 16px; }
.pp .amt { font-family: var(--serif); font-size: 24px; font-weight: 600; }

/* ---------- Certificate ---------- */
.cert { max-width: 900px; margin: 30px auto; background: #fff; border: 1px solid var(--line); padding: 14px; box-shadow: var(--shadow-lg); }
.cert-inner { border: 2px solid var(--rose-200); padding: 64px 56px; text-align: center; position: relative; }
.cert-inner::before, .cert-inner::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--rose-100), transparent 70%); }
.cert-inner::before { top: -30px; left: -30px; } .cert-inner::after { bottom: -30px; right: -30px; }
.cert h1 { font-size: 44px; margin: 18px 0 4px; }
.cert .who { font-family: var(--serif); font-size: 40px; font-style: italic; color: var(--rose-700); margin: 18px 0; }
.cert .course { font-size: 22px; font-weight: 700; }
.cert .meta { display: flex; justify-content: space-around; margin-top: 46px; font-size: 13px; color: var(--muted); }
.cert .meta strong { display: block; color: var(--ink); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-main { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .content { padding: 22px 16px 48px; }
  .grid-2, .grid-3, .roles { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; gap: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 38px; }
  .site-nav nav a.link { display: none; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 30px; }
  .cta-band { padding: 36px 22px; }
  h1 { font-size: 26px; }
  .cert-inner { padding: 40px 18px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-value { font-size: 26px; }
  .trust { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; }
  .no-print, .sidebar, .topbar, .view-as-bar { display: none !important; }
  .shell { display: block; }
  .cert { box-shadow: none; border: 0; margin: 0; }
}
.block { display: block; }
.grow { flex: 1; min-width: 0; }
.btn-row.center-row { justify-content: center; }
svg { flex: none; vertical-align: middle; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg svg { width: 19px; height: 19px; }
.empty-icon svg, .dz-icon svg { width: 24px; height: 24px; }
.eyebrow svg { width: 16px; height: 16px; }
.mock svg { width: 26px; height: 26px; color: var(--rose); }
dl.facts dd { overflow-wrap: anywhere; min-width: 0; }
.table td.limits { min-width: 190px; }
.btn-row > input, .btn-row > select { width: auto; flex: 1 1 200px; }
