/* SkillBridge design system
   Tokens -> base -> components -> app shell -> marketing -> dashboard -> settings -> checkout -> learning screens */

:root {
  --brand: #5b4cf0; --brand-ink: #4b3ce0; --brand-deep: #3b2db8; --brand-50: #f4f2ff; --brand-100: #e9e5ff; --brand-200: #d4ccff;
  --violet: #8b5cf6; --pink: #ec4899; --amber: #f59e0b; --sky: #0ea5e9; --mint: #10b981; --rose: #f43f5e;
  --grad: linear-gradient(135deg, #5b4cf0 0%, #8b5cf6 55%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, #f4f2ff 0%, #f8f0ff 55%, #fff0f7 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --grad-mint: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --grad-coral: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  --grad-sky: linear-gradient(135deg, #38bdf8 0%, #5b4cf0 100%);
  --text: #15121f; --ink-2: #3b3750; --muted: #6c6880; --faint: #9a96ab;
  --line: #ebe9f2; --line-2: #dcd9e6; --bg: #ffffff; --bg-soft: #f8f7fc; --soft: #f3f2f8;
  --good: #0b8f63; --good-bg: #e8f8f1; --bad: #e11d48; --bad-bg: #fff1f3; --warn: #b45309; --warn-bg: #fff7e8;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(21, 18, 31, .06);
  --shadow-sm: 0 1px 2px rgba(21, 18, 31, .05), 0 2px 10px rgba(21, 18, 31, .05);
  --shadow: 0 1px 3px rgba(21, 18, 31, .05), 0 10px 30px rgba(21, 18, 31, .07);
  --shadow-lg: 0 30px 70px rgba(21, 18, 31, .16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --topbar-h: 64px;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.5; background: var(--bg-soft);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.marketing { background: #fff; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { font-size: .9em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); }
h1 { font-weight: 800; font-size: 34px; line-height: 1.15; margin: 8px 0 18px; letter-spacing: -.8px; }
h2 { font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.4px; }
h3 { font-weight: 700; font-size: 18px; margin: 0 0 6px; letter-spacing: -.2px; }
p { margin: 0 0 12px; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
#app > .appfoot, #app > .mfoot { margin-top: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); }
:focus-visible { outline: 3px solid rgba(91, 76, 240, .35); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--brand-100); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--brand); --s: var(--brand-deep); border: 0; border-radius: var(--r); padding: 12px 22px; font-weight: 700; font-size: 15px;
  letter-spacing: .1px; cursor: pointer; color: #fff; background: var(--b); box-shadow: 0 3px 0 var(--s); display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; line-height: 1.2; text-decoration: none; transition: transform .08s, box-shadow .08s, filter .15s, background .15s;
  white-space: nowrap; position: relative; top: 0; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--s); }
.btn.blue { --b: var(--sky); --s: #0284c7; }
.btn.red { --b: var(--rose); --s: #be123c; }
.btn.gold { --b: var(--amber); --s: #c2780a; }
.btn.green { --b: #12b886; --s: #0b8f63; }
.btn.dark { --b: #1c1830; --s: #000; }
.btn.ghost { --b: #fff; --s: var(--line-2); color: var(--text); border: 1.5px solid var(--line-2); }
.btn.ghost:hover { --b: var(--bg-soft); filter: none; }
.btn.ghost.dark { color: var(--muted); }
.btn.ghost.danger { color: var(--bad); }
.btn.quiet { --b: transparent; --s: transparent; color: var(--muted); box-shadow: none; }
.btn.quiet:hover { --b: var(--soft); color: var(--text); filter: none; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 11px; box-shadow: 0 2px 0 var(--s); }
.btn.small:active { transform: translateY(2px); }
.btn.lg { padding: 16px 28px; font-size: 17px; border-radius: 16px; box-shadow: 0 4px 0 var(--s); }
.btn.lg:active { transform: translateY(4px); }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled, .btn.ghost:disabled { --b: #eeedf3; --s: #dcdae5; color: #a29fb3; border-color: #e3e1ea; cursor: not-allowed; filter: none; transform: none; }
.backbtn { border: 1.5px solid var(--line-2); background: #fff; border-radius: 11px; padding: 7px 12px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 0 var(--line-2); white-space: nowrap; }
.backbtn:hover { background: var(--bg-soft); color: var(--text); }
.backbtn:active { transform: translateY(2px); box-shadow: none; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
.iconbtn { width: 38px; height: 38px; border-radius: 11px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 18px; }
.iconbtn:hover { background: var(--soft); color: var(--text); }

/* ---------------------------------------------------------------- form controls */
.input, textarea.input, select.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 15px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 76, 240, .12); }
.input[readonly] { background: var(--bg-soft); color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 200px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(91, 76, 240, .35); outline-offset: 2px; }

/* ---------------------------------------------------------------- generic components */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-xs); }
.panel h2 { font-size: 19px; }
.bar { height: 12px; background: #eceaf3; border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.bar.thin { height: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft);
  color: var(--muted); white-space: nowrap; line-height: 1.5; }
.pill.ok { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--bad-bg); color: var(--bad); }
.pill.brand { background: var(--brand-50); color: var(--brand); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(91, 76, 240, .18); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; vertical-align: middle; flex: none; }
.btn .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f0eff5 25%, #f7f6fb 50%, #f0eff5 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5;
  background: var(--brand-50); color: var(--ink-2); border: 1px solid var(--brand-100); }
.notice.warn { background: var(--warn-bg); border-color: #fde7bf; }
.notice.err { background: var(--bad-bg); border-color: #ffd5dd; color: #9f1239; }
.notice .ni { font-size: 18px; line-height: 1.2; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.kbd { font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0 5px; color: var(--muted); }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 50%; top: 18px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: min(560px, calc(100vw - 24px)); }
.toast { pointer-events: auto; background: #1c1830; color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .25s cubic-bezier(.2, .9, .3, 1.2); max-width: 100%; }
.toast.error { background: #9f1239; }
.toast.success { background: #0b7a55; }
.toast .tx { flex: 1; }
.toast button { border: 0; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; font-size: 16px; padding: 0 2px; }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }
.flash { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; background: #1c1830; color: #fff; padding: 12px 22px; border-radius: 14px;
  font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(21, 18, 31, .5); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: center;
  justify-content: center; padding: 20px; animation: fadeIn .15s; }
.modal-card { background: #fff; border-radius: 22px; max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; overflow-x: hidden; padding: 28px 30px;
  position: relative; box-shadow: var(--shadow-lg); animation: popIn .2s cubic-bezier(.2, .9, .3, 1.15); }
.modal.narrow .modal-card { max-width: 460px; }
.modal-x { position: absolute; top: 14px; right: 14px; border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; color: var(--muted);
  cursor: pointer; font-size: 14px; }
.modal-x:hover { background: var(--line); color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog h2 { font-size: 22px; margin: 2px 0 8px; padding-right: 30px; }
.dialog p { color: var(--muted); line-height: 1.55; }
.dialog-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px;
  background: var(--brand-50); }
.dialog-ico.danger { background: var(--bad-bg); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- app shell */
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 24px; height: var(--topbar-h); position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.6px; cursor: pointer; color: var(--text); display: inline-flex;
  align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logomark { width: 30px; height: 30px; flex: none; }
.topnav { display: flex; gap: 4px; margin-left: 18px; }
.topnav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.topnav a:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.topnav a.on { color: var(--text); background: var(--soft); }
.topbar .spacer { flex: 1; }
.stat { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: var(--warn-bg); color: #b45309; padding: 6px 12px;
  border-radius: 99px; font-size: 14px; white-space: nowrap; }
.stat.fire { background: #fff1ea; color: #ea580c; }
.stat.fire.off { background: var(--soft); color: var(--faint); }
.account { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 99px; }
.avatar-btn:hover { background: var(--soft); }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: flex; align-items: center;
  justify-content: center; font-size: 14px; flex: none; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 26px; flex: none; font-family: var(--display); }
.acct-name { font-weight: 600; font-size: 14px; color: var(--ink-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--faint); font-size: 11px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 30; animation: popIn .15s; }
.menu.open { display: block; }
.menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head b { display: block; font-size: 14px; }
.menu-head span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.menu .sep { height: 1px; background: var(--line); margin: 4px 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 32px 28px 64px; }
.page.narrow { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 4px 0 0; }
.appfoot { border-top: 1px solid var(--line); padding: 22px 28px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px;
  color: var(--faint); background: #fff; }
.appfoot a { color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ei { font-size: 40px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- marketing (landing, legal) */
.mnav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .2s; }
.mnav.scrolled { border-bottom-color: var(--line); }
.mnav-in { max-width: 1200px; margin: 0 auto; height: 70px; display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.mnav-links { display: flex; gap: 2px; margin-left: 22px; }
.mnav-links button, .mnav-links a { border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.mnav-links button:hover, .mnav-links a:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(600px 340px at 78% 30%, rgba(139, 92, 246, .14), transparent 70%), radial-gradient(520px 320px at 12% 10%, rgba(14, 165, 233, .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.chip-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.chip-eyebrow b { background: var(--grad); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -2.2px; margin: 20px 0 18px; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.fine span::before { content: "✓ "; color: var(--good); font-weight: 800; }

/* hero illustration: a mini lesson */
.hero-art { position: relative; height: 520px; }
.art-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.art-main { left: 6%; right: 4%; top: 52px; padding: 22px 22px 26px; }
.art-main .crumb { margin-bottom: 6px; }
.art-q { font-weight: 700; font-size: 17px; margin-bottom: 14px; font-family: var(--display); }
.art-opt { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 11px 14px; margin-bottom: 9px; display: flex; gap: 10px; align-items: center;
  font-size: 15px; font-weight: 500; box-shadow: 0 2px 0 var(--line-2); }
.art-opt .k { width: 26px; height: 26px; border-radius: 8px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 800;
  font-size: 13px; color: var(--muted); flex: none; }
.art-opt.right { border-color: #6ee7b7; background: var(--good-bg); box-shadow: 0 2px 0 #a7f3d0; }
.art-opt.right .k { background: var(--mint); color: #fff; }
.art-fb { margin-top: 12px; background: var(--good-bg); color: var(--good); font-weight: 800; border-radius: 14px; padding: 12px 14px; display: flex;
  justify-content: space-between; align-items: center; font-family: var(--display); }
.art-fb span { background: var(--good); color: #fff; padding: 6px 14px; border-radius: 10px; font-size: 13px; }
.art-tutor { left: -3%; bottom: -6px; width: 240px; padding: 14px; animation: float 6s ease-in-out infinite; }
.art-tutor .who { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.art-tutor .who i { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.art-tutor p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.45; }
.art-streak { right: 0; top: 0; padding: 10px 14px; display: flex; gap: 8px; align-items: center; font-weight: 800; font-family: var(--display);
  animation: float 7s ease-in-out infinite reverse; }
.art-streak .f { font-size: 22px; }
.art-path { right: -2%; bottom: 0; padding: 12px 14px; display: flex; flex-direction: row; align-items: center; gap: 10px; animation: float 8s ease-in-out infinite; }
.art-path small { display: none; }
.art-path .n { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.art-path .n.d { background: var(--grad-gold); }
.art-path .n.c { background: var(--brand); box-shadow: 0 0 0 6px var(--brand-100), 0 3px 0 var(--brand-deep); }
.art-path .n.l { background: var(--soft); filter: grayscale(1); opacity: .7; }
.art-path small { font-weight: 700; font-size: 11px; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
@keyframes float { 50% { transform: translateY(-10px); } }

.subjects { padding: 26px 0 8px; text-align: center; }
.subjects p { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 14px; }
.subject-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.subject { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--ink-2); }

.msection { padding: 88px 0; }
.msection.soft { background: var(--bg-soft); }
.mhead { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.mhead h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.2px; line-height: 1.1; margin: 10px 0 14px; }
.mhead p { font-size: 18px; color: var(--muted); line-height: 1.6; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 34px 0; }
.feature.flip .f-text { order: 2; }
.f-text h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.9px; line-height: 1.15; margin: 10px 0 14px; }
.f-text p { font-size: 17px; color: var(--muted); line-height: 1.65; }
.f-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.f-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 800;
  font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.f-art { border-radius: 28px; padding: 30px; min-height: 340px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.f-art.a1 { background: linear-gradient(160deg, #eef2ff, #f5f3ff); }
.f-art.a2 { background: linear-gradient(160deg, #ecfdf5, #f0fdfa); }
.f-art.a3 { background: linear-gradient(160deg, #fdf2f8, #faf5ff); }
.f-art.a4 { background: linear-gradient(160deg, #eff6ff, #ecfeff); }
.f-art.a5 { background: linear-gradient(160deg, #fffbeb, #fff7ed); }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; width: 100%; max-width: 420px; }
.mock + .mock { margin-top: 12px; }
.mock .mrow { display: flex; gap: 10px; align-items: center; }
.mock .tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.mock .line { height: 9px; border-radius: 6px; background: #eceaf3; margin: 8px 0; }
.mock .line.s { width: 60%; } .mock .line.m { width: 82%; }
.mock .bubble { padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 1.45; margin: 6px 0; max-width: 88%; }
.mock .bubble.ai { background: var(--bg-soft); border: 1px solid var(--line); border-top-left-radius: 5px; }
.mock .bubble.me { background: var(--brand); color: #fff; margin-left: auto; border-top-right-radius: 5px; }
.mock .partin { display: grid; grid-template-columns: 32px 1fr 110px; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--muted); }
.mock .partin b { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mock .partin i { font-style: normal; border: 1.5px solid var(--line-2); border-radius: 9px; padding: 5px 9px; color: var(--text); font-weight: 600; }
.mock .res { display: grid; grid-template-columns: 80px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; margin: 9px 0; }
.mock .ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mock .ways span { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock .ways span b { display: block; font-size: 20px; margin-bottom: 2px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step3 { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; position: relative; box-shadow: var(--shadow-xs); }
.step3 .num { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-family: var(--display); font-size: 18px; margin-bottom: 16px; }
.step3 h3 { font-size: 20px; }
.step3 p { color: var(--muted); margin: 0; line-height: 1.6; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { text-align: center; padding: 24px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 14px; font-weight: 500; }
.price-card { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 34px;
  position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad); }
.price { font-family: var(--display); font-size: 60px; font-weight: 800; letter-spacing: -2px; line-height: 1; margin: 14px 0 4px; }
.price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 17px; position: relative; font-family: var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.65; padding-right: 30px; }
.cta-band { margin: 0 28px 72px; border-radius: 32px; background: #17132b; color: #fff; padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 20% 0%, rgba(139, 92, 246, .45), transparent 70%),
  radial-gradient(500px 260px at 85% 100%, rgba(236, 72, 153, .35), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.2px; margin: 0 0 12px; }
.cta-band p { color: rgba(255, 255, 255, .72); font-size: 18px; margin-bottom: 26px; }
.mfoot { border-top: 1px solid var(--line); padding: 48px 0 36px; background: #fff; }
.mfoot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.mfoot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin: 0 0 12px; font-family: var(--font); }
.mfoot a, .mfoot button { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 500; }
.mfoot .logo { display: inline-flex; font-size: 22px; padding: 0; color: var(--text); }
.mfoot a:hover, .mfoot button:hover { color: var(--brand); text-decoration: none; }
.mfoot .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 48px 28px 80px; }
.legal-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.legal-toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin-bottom: 10px; }
.legal-toc a { display: block; padding: 5px 0; color: var(--muted); }
.legal-toc a:hover { color: var(--brand); text-decoration: none; }
.legal article { max-width: 720px; }
.legal article h1 { font-size: 42px; letter-spacing: -1.4px; margin-bottom: 8px; }
.legal article h2 { font-size: 22px; margin: 36px 0 10px; scroll-margin-top: 90px; }
.legal article p, .legal article li { color: var(--ink-2); line-height: 1.75; font-size: 16px; }
.legal article ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal .summary-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 16px; padding: 18px 20px; margin: 18px 0 8px; }
.legal .summary-box p { margin: 0; }

/* sign in */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-side { background: #17132b; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 10% 0%, rgba(139, 92, 246, .5), transparent 70%),
  radial-gradient(420px 300px at 100% 100%, rgba(236, 72, 153, .35), transparent 70%); }
.auth-side > * { position: relative; }
.auth-side .logo { color: #fff; }
.auth-side h2 { color: #fff; font-size: 38px; line-height: 1.1; letter-spacing: -1.2px; margin: auto 0 18px; max-width: 460px; }
.auth-side ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 12px; color: rgba(255, 255, 255, .8); }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin: 0 0 6px; font-size: 32px; }
.auth-sub { margin: 0 0 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 12px; font-weight: 600;
  color: var(--text); text-decoration: none; background: #fff; box-shadow: 0 2px 0 var(--line-2); }
.gbtn:hover { background: var(--bg-soft); text-decoration: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-err { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.auth-legal { font-size: 12px; color: var(--faint); text-align: center; margin-top: 18px; line-height: 1.5; }
.auth-back { position: absolute; top: 20px; right: 24px; }

/* ---------------------------------------------------------------- dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 32px 28px 64px; }
.greet h1 { font-size: 32px; margin: 4px 0 6px; }
.greet p { margin: 0 0 24px; }
.resume { display: grid; grid-template-columns: 230px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 36px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.resume:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(21, 18, 31, .1); }
.resume .cover { min-height: 220px; border-radius: 0; }
.resume-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.resume-body h2 { font-size: 24px; margin: 2px 0 2px; }
.next-step { display: flex; gap: 12px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 10px 0 14px; }
.next-step .ni { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex: none; box-shadow: 0 3px 0 var(--brand-deep); }
.next-step .nt { min-width: 0; }
.next-step .nt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-step .nt span { font-size: 13px; color: var(--muted); }
.resume-foot { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.resume-foot .bar { flex: 1; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 14px; gap: 12px; }
.sec-head h2 { margin: 0; font-size: 21px; }
.sec-head a { font-weight: 600; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-bottom: 36px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s; box-shadow: var(--shadow-xs); }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(21, 18, 31, .1); border-color: var(--line-2); }
.ccard .cover { height: 128px; }
.ccard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ccard-body h3 { font-size: 17px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-body .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 10px; gap: 8px; }
.ccard .bar { margin-top: 6px; }
.ccard.new { align-items: center; justify-content: center; text-align: center; padding: 28px; border: 2px dashed var(--line-2); background: transparent;
  box-shadow: none; min-height: 250px; gap: 8px; }
.ccard.new:hover { border-color: var(--brand-200); background: var(--brand-50); }
.ccard.new .plus { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 28px; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 0 var(--brand-deep); margin-bottom: 6px; }
.ccard.new b { font-family: var(--display); font-size: 17px; }
.ccard.new span { font-size: 13px; color: var(--muted); }
.cover { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; color: #fff; }
.cover svg.pat { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .glyph { position: relative; font-size: 34px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.cover .badge { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.side-card h3 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.streak-big { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.streak-big .flame { font-size: 40px; line-height: 1; }
.streak-big .flame.off { filter: grayscale(1); opacity: .45; }
.streak-big b { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; display: block; }
.streak-big span { font-size: 13px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--faint); }
.week i { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; }
.week .on i { background: var(--grad-gold); color: #fff; box-shadow: 0 2px 0 #c2780a; }
.week .today { color: var(--text); }
.week .today i { outline: 2px solid var(--amber); outline-offset: 2px; }
.level { display: flex; align-items: center; gap: 14px; }
.level-ring { width: 64px; height: 64px; flex: none; position: relative; }
.level-ring svg { transform: rotate(-90deg); }
.level-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 800; }
.tip-list { display: grid; gap: 10px; }
.tip-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.tip-item i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; flex: none; }
.tip-item b { display: block; color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { border-radius: 20px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.tile .ti { font-size: 26px; margin-bottom: 10px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tile h3 { font-size: 16px; }
.tile p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.welcome { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  align-items: center; margin-bottom: 36px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.welcome h2 { font-size: 32px; letter-spacing: -1px; line-height: 1.15; margin: 8px 0 12px; }
.welcome p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.welcome ol { padding: 0; margin: 18px 0 24px; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.welcome li { display: flex; gap: 12px; align-items: center; font-weight: 600; counter-increment: s; }
.welcome li::before { content: counter(s); width: 28px; height: 28px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.welcome-art { height: 260px; border-radius: 22px; position: relative; overflow: hidden; }
.welcome-art > .cover { position: absolute; inset: 0; }
.mobile-only { display: none !important; }

/* ---------------------------------------------------------------- new-course wizard */
.stepper { display: flex; gap: 6px; margin: 0 0 24px; flex-wrap: wrap; }
.stepper div { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper div i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; }
.stepper div.on { color: var(--text); border-color: var(--brand-200); }
.stepper div.on i { background: var(--brand); color: #fff; }
.stepper div.done i { background: var(--good); color: #fff; }
.wstep { position: relative; }
.wstep .wnum { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.book { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; margin: 8px 0; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; background: #fff; }
.book:hover { border-color: var(--line-2); background: var(--bg-soft); }
.book.sel { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(91, 76, 240, .12); }
.book .ico { width: 44px; height: 54px; border-radius: 6px 10px 10px 6px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex: none; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .15); }
.book .bt { min-width: 0; flex: 1; }
.book .bt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book .check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.book.sel .check { background: var(--brand); border-color: var(--brand); }
.dropzone { border: 2px dashed var(--line-2); border-radius: 16px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s;
  display: block; margin-top: 12px; background: var(--bg-soft); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.dropzone b { color: var(--text); }
.unitrow { border: 1.5px solid var(--line); border-radius: 16px; margin: 10px 0; background: #fff; transition: border-color .15s; }
.unitrow:has(.uck:checked) { border-color: var(--brand-200); background: #fdfcff; }
.unitrow > label { display: flex; gap: 12px; padding: 14px 16px; align-items: center; font-weight: 700; cursor: pointer; }
.unitrow .why { font-weight: 500; color: var(--muted); font-size: 13px; }
.unitrow .secs { padding: 0 16px 14px 46px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.unitrow .secs label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.pricenote { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-size: 15px; display: flex;
  gap: 12px; align-items: center; }
.wizard-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- checkout (placeholder) */
.checkout { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr; background: #fff; animation: fadeIn .2s; overflow-y: auto; }
.co-left { background: #f6f5fa; border-right: 1px solid var(--line); display: flex; justify-content: flex-end; padding: 48px 56px; }
.co-right { display: flex; justify-content: flex-start; padding: 48px 56px; }
.co-col { width: 100%; max-width: 420px; }
.co-back { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 15px; padding: 0; }
.co-back:hover { color: var(--text); }
.testmode { background: #fff3d6; color: #9a5b00; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.co-amount { margin: 34px 0 26px; }
.co-amount span { color: var(--muted); font-weight: 600; font-size: 15px; }
.co-amount b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -1px; margin-top: 4px; font-family: var(--font); }
.co-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.co-item .thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; }
.co-item .thumb .cover { width: 100%; height: 100%; padding: 0; justify-content: center; align-items: center; }
.co-item .thumb .glyph { font-size: 20px; }
.co-item .it { flex: 1; min-width: 0; }
.co-item .it b { display: block; font-size: 15px; }
.co-item .it span { font-size: 13px; color: var(--muted); }
.co-sum { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 14px; display: grid; gap: 10px; font-size: 14px; }
.co-sum div { display: flex; justify-content: space-between; }
.co-sum .tot { font-weight: 700; font-size: 15px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.co-incl { margin-top: 26px; font-size: 13px; color: var(--muted); display: grid; gap: 7px; }
.co-incl div::before { content: "✓  "; color: var(--good); font-weight: 800; }
.co-right h2 { font-family: var(--font); font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.co-field { margin-bottom: 16px; }
.co-field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.co-group { border: 1px solid #d8d6e0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 1px rgba(0, 0, 0, .03); }
.co-group input, .co-group select { border: 0; width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; background: #fff; outline: none; color: var(--text); }
.co-group input[readonly] { color: #4a4760; }
.co-group .split2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d8d6e0; }
.co-group .split2 input + input { border-left: 1px solid #d8d6e0; }
.co-group .row-ico { display: flex; align-items: center; }
.co-group .row-ico span { padding: 0 12px; display: flex; gap: 4px; }
.co-group .row-ico span i { width: 26px; height: 17px; border-radius: 3px; display: block; }
.co-pay { width: 100%; border: 0; border-radius: 8px; padding: 14px; font-size: 16px; font-weight: 600; color: #fff; background: var(--brand); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); transition: filter .15s; }
.co-pay:hover { filter: brightness(1.08); }
.co-pay:disabled { cursor: default; filter: none; opacity: .85; }
.co-pay.ok { background: var(--good); }
.co-demo { margin-top: 16px; }
.co-secure { margin-top: 22px; text-align: center; font-size: 12px; color: var(--faint); display: flex; gap: 6px; justify-content: center; align-items: center; }
.co-secure a { color: var(--faint); text-decoration: underline; }
.co-err { color: var(--bad); font-size: 14px; margin-top: 10px; font-weight: 500; }
.co-check { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.snav { position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.snav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.snav a:hover { background: #fff; text-decoration: none; }
.snav a.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.snav a i { font-style: normal; width: 22px; text-align: center; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 18px; box-shadow: var(--shadow-xs); overflow: hidden; }
.scard-head { padding: 20px 24px 0; }
.scard-head h2 { font-size: 18px; margin: 0 0 4px; }
.scard-head p { color: var(--muted); font-size: 14px; margin: 0; }
.scard-body { padding: 20px 24px 22px; }
.scard-foot { padding: 14px 24px; background: var(--bg-soft); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.scard.danger { border-color: #ffd0d9; }
.scard.danger .scard-foot { background: var(--bad-bg); border-top-color: #ffd0d9; }
.srow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; padding-top: 0; }
.srow:last-child { padding-bottom: 0; }
.srow .sr-main { flex: 1; min-width: 0; }
.srow .sr-main b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .sr-main span { font-size: 13px; color: var(--muted); display: block; }
.srow .sr-main b .pill { display: inline-flex; vertical-align: 2px; margin-left: 4px; }
.srow .sr-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.srow .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; }
.srow .thumb .cover { width: 100%; height: 100%; padding: 0; align-items: center; justify-content: center; }
.srow .thumb .glyph { font-size: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; padding: 0 10px 10px; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; text-align: right; }
.plan { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--brand-100); }
.plan .pi { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.plan b { font-family: var(--display); font-size: 18px; }

/* ---------------------------------------------------------------- course path */
.pathwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; max-width: 1100px; margin: 0 auto; padding: 18px 28px 80px; }
.side { position: sticky; top: calc(var(--topbar-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 16px; }
.side .panel { margin: 0; }
.unitbanner { color: #fff; border-radius: 20px; padding: 18px 22px; display: flex; align-items: center; gap: 14px; margin: 30px 0 10px; flex-wrap: wrap;
  background: var(--grad); box-shadow: 0 4px 0 rgba(59, 45, 184, .55); position: relative; overflow: hidden; scroll-margin-top: 90px; }
.unitbanner::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.unitbanner.c1 { background: linear-gradient(135deg, #0ea5e9, #5b4cf0); box-shadow: 0 4px 0 #2b5fb0; }
.unitbanner.c2 { background: linear-gradient(135deg, #ec4899, #f59e0b); box-shadow: 0 4px 0 #b64b4a; }
.unitbanner.c3 { background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 4px 0 #0f8a77; }
.unitbanner.c4 { background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 4px 0 #8a3aa8; }
.unitbanner .t1 { font-size: 12px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.unitbanner .t2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; font-family: var(--display); }
.unitbanner .grow { flex: 1; position: relative; z-index: 1; min-width: 200px; }
.unitbanner .btn.ghost { --b: rgba(255, 255, 255, .18); --s: rgba(0, 0, 0, .15); color: #fff; border-color: rgba(255, 255, 255, .45); position: relative; z-index: 1; }
.unitbanner .btn.ghost:hover { --b: rgba(255, 255, 255, .28); }
.sechead { text-align: center; margin: 26px 0 30px; width: 100%; color: var(--muted); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.sechead::before, .sechead::after { content: ""; flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.nodes { display: flex; flex-direction: column; align-items: center; }
.node { position: relative; width: 70px; height: 70px; margin: 10px 0; border-radius: 50%; border: 0; font-size: 27px; cursor: pointer; background: var(--brand);
  box-shadow: 0 6px 0 var(--brand-deep); display: flex; align-items: center; justify-content: center; transition: filter .15s; }
.node:hover { filter: brightness(1.08); }
.node:active { box-shadow: 0 2px 0 var(--brand-deep); margin-top: 14px; margin-bottom: 6px; }
.node.locked { background: #e9e7f1; box-shadow: 0 6px 0 #cfccdc; filter: grayscale(.6); }
.node.locked:hover { filter: grayscale(.2); }
.node.done { background: var(--amber); box-shadow: 0 6px 0 #c2780a; }
.node.exam { width: 84px; height: 84px; }
.node.current { animation: glow 2s ease-in-out infinite; margin-top: 44px; }
@keyframes glow { 50% { box-shadow: 0 6px 0 var(--brand-deep), 0 0 0 12px rgba(91, 76, 240, .14); } }
.node .tip { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--brand); font-weight: 800; font-size: 12px;
  letter-spacing: 1px; padding: 6px 12px; border-radius: 10px; white-space: nowrap; border: 1.5px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2);
  animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.node .lbl { position: absolute; left: 88px; top: 50%; transform: translateY(-50%); width: 180px; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--muted);
  text-align: left; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font); }
.node.flip .lbl { left: auto; right: 88px; text-align: right; }
.node.current .lbl { color: var(--text); }
.node.labnode { background: linear-gradient(135deg, #0ea5e9, #5b4cf0 60%, #ec4899); border-radius: 22px; box-shadow: 0 6px 0 #3b2db8; }
.node.labnode.locked { background: #e9e7f1; box-shadow: 0 6px 0 #cfccdc; }
.node.labnode.done { background: var(--amber); box-shadow: 0 6px 0 #c2780a; }
.genbox { text-align: center; padding: 26px; border: 2px dashed var(--line-2); border-radius: 20px; color: var(--muted); margin: 14px 0; background: #fff; }
.topic-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; margin: 0 -10px; cursor: pointer; font-weight: 600;
  font-size: 14px; border-radius: 10px; }
.topic-row:hover { background: var(--bg-soft); }

/* paywall on the path */
.paywall { position: relative; border-radius: 24px; padding: 2px; margin: 34px 0 10px; background: var(--grad); box-shadow: 0 20px 50px rgba(91, 76, 240, .2); overflow: hidden; }
.pw-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .35), transparent 30%); animation: spin 6s linear infinite; }
.pw-in { position: relative; background: #fff; border-radius: 22px; padding: 28px; text-align: center; }
.pw-kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pink); }
.pw-in h2 { font-size: 26px; margin: 8px 0 8px; }
.pw-in p { color: var(--muted); line-height: 1.55; max-width: 520px; margin: 0 auto 18px; }
.pw-fine { font-size: 12px; color: var(--muted); margin-top: 12px; }
.unitbanner.lockedban { filter: grayscale(.85); opacity: .6; }
.lockchip { position: relative; z-index: 1; background: rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; }

/* ---------------------------------------------------------------- lesson split (tutor 1/3 | textbook 2/3) */
.split { display: grid; grid-template-columns: minmax(300px, 1fr) 2fr; height: 100vh; height: 100dvh; }
.tutor { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-width: 0; background: var(--bg-soft); border-right: 1px solid var(--line); }
.tutor-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); min-height: 68px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.tutor-head b { font-weight: 700; }
.tutor-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.ai { background: #fff; align-self: flex-start; border-top-left-radius: 5px; border: 1px solid var(--line); }
.msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-top-right-radius: 5px; }
.msg.sys { align-self: center; background: none; color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--brand); }
.chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.tutor-input { display: flex; gap: 8px; padding: 10px 16px 16px; }
.tutor-input textarea { flex: 1; resize: none; height: 52px; background: #fff; line-height: 1.45; }
.tutor-input .btn { padding: 0 16px; }
.tutor.locked .tutor-msgs { align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 600; }
body.no-chips .chips { display: none; }

.main { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-width: 0; background: #fff; }
.lesson-top { display: flex; align-items: center; gap: 14px; padding: 0 24px; min-height: 68px; border-bottom: 1px solid var(--line); }
.xbtn { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; color: var(--muted); cursor: pointer; font-weight: 800; flex: none; }
.xbtn:hover { background: var(--line); color: var(--text); }
.lesson-top .bar { flex: 1; }
.lesson-body { flex: 1; overflow-y: auto; padding: 20px 32px 32px; }
.lesson-body > h2 { font-size: 26px; margin-bottom: 14px; }
.crumb { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.focus { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px; padding: 14px 18px; margin: 6px 0 18px; line-height: 1.55; }
.focus b { color: var(--brand); }
.pages { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.pageimg { width: 100%; max-width: 900px; border-radius: 10px; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.pagelbl { font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: -10px; }
.pagewrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.exampleimg { width: 100%; max-width: 900px; border-radius: 12px; box-shadow: var(--shadow); display: block; margin: 6px 0 18px; background: #fff; border: 1px solid var(--line); }
.qcard { background: #fff; border-radius: 16px; padding: 18px 20px; margin: 6px 0 16px; line-height: 1.6; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.qcard .src { font-size: 12px; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.qcard .prompt p { margin: 0 0 8px; }
.choices { display: grid; gap: 10px; margin-top: 12px; }
.choice { text-align: left; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 16px; background: #fff; cursor: pointer; font: inherit; font-weight: 500;
  display: flex; gap: 12px; align-items: center; transition: background .12s, border-color .12s; box-shadow: 0 2px 0 var(--line-2); }
.choice:hover { background: var(--bg-soft); }
.choice:active { transform: translateY(2px); box-shadow: none; }
.choice .k { border-radius: 9px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted);
  background: var(--soft); flex: none; }
.choice.sel { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 2px 0 var(--brand-200); }
.choice.sel .k { background: var(--brand); color: #fff; }
.answer-area { display: flex; flex-direction: column; gap: 12px; }
.answer-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.partrow { display: grid; grid-template-columns: 44px 1fr minmax(160px, 260px); gap: 10px; align-items: center; }
.partrow .plbl { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.partrow .pask { font-size: 14px; color: var(--muted); }
.photo { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.photo img { height: 56px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.photo label { cursor: pointer; color: var(--brand); }
.footer { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; align-items: center; gap: 12px; background: #fff; transition: background .2s; min-height: 76px; flex-wrap: wrap; }
.footer .grow { flex: 1; min-width: 180px; }
.footer.good { background: var(--good-bg); border-top-color: #c9eedd; }
.footer.bad { background: var(--bad-bg); border-top-color: #ffd5dd; }
.fb-title { font-weight: 800; font-size: 20px; font-family: var(--display); }
.footer.good .fb-title { color: var(--good); }
.footer.bad .fb-title { color: var(--bad); }
.fb-text { font-size: 15px; line-height: 1.5; max-height: 120px; overflow-y: auto; }
.solution { background: #fffaf0; border-radius: 14px; padding: 14px 18px; margin: 10px 0; line-height: 1.6; border: 1px solid #fde7bf; }
.solution h4 { margin: 0 0 6px; color: #b45309; }
details > summary { cursor: pointer; }

/* review / exam */
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.qdot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: 12px; cursor: pointer; color: var(--muted); }
.qdot.cur { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 76, 240, .15); }
.qdot.ok { background: var(--mint); border-color: transparent; color: #fff; }
.qdot.no { background: var(--rose); border-color: transparent; color: #fff; }
.qdot.ans { background: var(--brand); border-color: transparent; color: #fff; }
.results { max-width: 720px; margin: 0 auto; }
.resrow { display: grid; grid-template-columns: 1fr 140px 96px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.big { font-size: 50px; }
.eq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.eq .nm { font-weight: 700; font-size: 14px; } .eq .mn { font-size: 13px; color: var(--muted); }
.eqsub { margin: 18px 0 4px; font-weight: 800; color: var(--brand); }

/* explain your answer: typed or spoken */
.explain { margin-top: 4px; }
.explain-head { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.explain-box { position: relative; }
.explain-box textarea { padding-right: 58px; resize: vertical; }
.micbtn { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; font-size: 18px; background: var(--brand-50);
  transition: background .12s; }
.micbtn:hover { background: var(--brand-100); }
.micbtn.rec { background: var(--rose); animation: pulse 1.2s ease-in-out infinite; }
.micbtn.off { background: var(--soft); filter: grayscale(1); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(244, 63, 94, .18); } }
.miclive { font-size: 13px; min-height: 18px; margin-top: 4px; font-style: italic; }

/* labs */
.lesson-body.labbody { padding: 0; overflow: hidden; position: relative; }
.labframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* skip ahead */
.skipwarn { text-align: center; padding: 6px 4px 2px; }
.skip-icon { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--warn-bg); }
.skipwarn h2 { font-size: 24px; margin: 10px 0 8px; }
.skipwarn p { max-width: 460px; margin: 0 auto 12px; line-height: 1.5; }
.skipwarn ul { text-align: left; max-width: 440px; margin: 0 auto 20px; padding-left: 20px; color: var(--muted); line-height: 1.6; font-size: 15px; }
.skip-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-grid, .feature, .welcome { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .f-text { order: 0; }
  .hero-art { height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
  .dash { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .mfoot-grid { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .co-left { justify-content: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .co-right { justify-content: center; padding: 28px 24px 48px; }
  .co-amount { margin: 20px 0 10px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; height: auto; }
  .tutor { height: 45vh; order: 2; }
  .main { height: auto; min-height: 55vh; }
  .pathwrap { grid-template-columns: 1fr; padding: 16px; }
  .side { position: static; }
  .node .lbl { display: none; }
  .page { padding: 20px 16px 48px; }
  .partrow { grid-template-columns: 40px 1fr; }
  .partrow input { grid-column: 1 / -1; }
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .snav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .snav a { white-space: nowrap; }
  .legal { grid-template-columns: 1fr; padding-top: 28px; }
  .legal-toc { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .mobile-only { display: inline-flex !important; }
  .steps3, .tiles { grid-template-columns: 1fr; }
  .topnav, .mnav-links { display: none; }
  .resume { grid-template-columns: 1fr; }
  .resume .cover { min-height: 120px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 8px; }
  .acct-name, .caret, .hide-sm { display: none !important; }
  .dash { padding: 20px 16px 48px; }
  .wrap, .mnav-in { padding: 0 18px; }
  .msection { padding: 60px 0; }
  .hero { padding-top: 36px; }
  .hero-art { height: 420px; }
  .art-tutor { width: 220px; }
  .cta-band { margin: 0 12px 48px; padding: 48px 22px; }
  .lesson-body { padding: 16px; }
  .welcome { padding: 26px; }
  .srow { flex-wrap: wrap; }
  .srow .sr-actions { width: 100%; justify-content: flex-start; }
  .resrow { grid-template-columns: 1fr 90px; }
  .resrow .bar { display: none; }
}

/* user preference: reduce motion (Settings -> Preferences, or the OS setting) */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
