/* ===== Daffa — light "open sky" design system ===== */
:root {
  --ink: #0b0d12;
  --ink-2: #1c2230;
  --text: #2b3240;
  --muted: #5b6475;
  --dim: #677084;
  --line: #e3e8f0;
  --line-2: #d3dbe7;    /* decorative dividers only */
  --control: #8792a6;   /* form/control boundaries: >= 3:1 on white */
  --paper: #ffffff;
  --bg: #f6f8fc;
  --sky-1: #0a1a3d;      /* deep navy: the sea at dusk */
  --sky-2: #17418f;
  --sky-3: #8fb4ea;
  --link: #1d5bd0;       /* AA on light surfaces */
  --link-soft: #e7f0fd;
  --accent: #ff5a36;     /* decorative only */
  --accent-text: #b93a17;
  --accent-soft: #fff0eb;
  --violet: #5443d6;
  --violet-soft: #efedff;
  --mint: #12a37f;
  --radius: 22px;
  --radius-lg: 30px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -12px rgba(16,24,40,.14);
  --shadow-lg: 0 2px 4px rgba(16,24,40,.04), 0 30px 70px -24px rgba(16,40,90,.30);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Geeza Pro", "SF Arabic", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:root[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); }

/* ===== Type ===== */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
:root[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 40rem; text-wrap: pretty; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--link); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 46rem; }
.section-head.center { text-align: center; justify-items: center; margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.45rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(11,13,18,.55); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { box-shadow: var(--shadow); }
.arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
:root[dir="rtl"] .arrow { transform: scaleX(-1); }
:root[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: var(--sky-1); transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255,255,255,.8); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: #fff; }
.nav.scrolled .brand { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav:not(.scrolled) .brand-mark circle[fill], .mascot circle[fill] { fill: var(--accent); }
.nav:not(.scrolled) .brand-mark { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: #e6eeff; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav.scrolled .nav-links a:not(.btn) { color: var(--ink-2); }
.lang-switch { padding: .5rem .85rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); white-space: nowrap; }
.nav.scrolled .lang-switch { background: #fff; border-color: var(--line-2); }
.nav .btn { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; background: #fff; color: var(--ink); }
.nav.scrolled .btn { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }
@media (max-width: 380px) { .brand span { display: none; } .nav .btn { padding: 0 .9rem; font-size: .85rem; } }

/* ===== Sky ===== */
.sky { position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, #12306d 40%, var(--sky-2) 62%, var(--sky-3) 86%, var(--bg) 100%); }
.sky-top { margin-top: -72px; padding-top: 72px; }
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; filter: blur(22px); mix-blend-mode: screen;
  background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 100%);
  animation: drift 90s ease-in-out infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 70%; height: 95%; left: -28%; top: 22%; }
.cloud::after { width: 60%; height: 85%; right: -24%; top: 28%; }
.c1 { width: 300px; height: 110px; top: 18%; left: 4%; opacity: .18; }
.c2 { width: 420px; height: 140px; top: 46%; left: 66%; opacity: .16; animation-duration: 120s; animation-delay: -40s; }
.c3 { width: 240px; height: 90px; top: 72%; left: 14%; opacity: .35; animation-duration: 100s; animation-delay: -20s; }
.c4 { width: 340px; height: 120px; top: 10%; left: 76%; opacity: .12; animation-duration: 140s; animation-delay: -70s; }
@keyframes drift { 50% { transform: translateX(7vw); } }

/* ===== Hero ===== */
.hero { text-align: center; padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-inner { display: grid; justify-items: center; gap: 1.3rem; }
.mascot { width: 78px; height: 78px; filter: drop-shadow(0 14px 22px rgba(20,60,140,.3)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(22deg); } }
.hero h1 { max-width: 15ch; color: #fff; }
:root[lang="ar"] .hero h1 { max-width: 18ch; }
.hero .lede { color: #d6e2fb; }

.prompt { width: min(720px, 100%); margin-top: .8rem; background: rgba(255,255,255,.97); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1rem 1rem .85rem 1.3rem; text-align: start; display: grid; gap: .35rem; }
:root[dir="rtl"] .prompt { padding: 1rem 1.3rem .85rem 1rem; }
.prompt label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.prompt-row { display: flex; align-items: flex-end; gap: .75rem; }
.prompt textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font: 400 1.08rem/1.5 var(--font); color: var(--ink); min-height: 3.2em; padding: 0; }
.prompt textarea::placeholder { color: var(--dim); }
.prompt:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,255,255,.6); }
.prompt-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.prompt-send:hover { transform: translateY(-2px); }
:root[dir="rtl"] .prompt-send svg { transform: scaleX(-1); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.pill { border: 0; background: #fff; color: var(--ink); font: 600 .93rem/1.2 var(--font); padding: .8rem 1.1rem; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(20,60,140,.35); transition: transform .2s var(--ease), box-shadow .2s; text-decoration: none; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(20,60,140,.45); }
.hero-note { font-size: .9rem; color: #fff; margin: 0; }

/* Product shot (agent terminal) */
.shot { margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; width: min(880px, 100%); }
.term { border-radius: 20px; background: #0f1219; box-shadow: var(--shadow-lg); overflow: hidden; direction: ltr; text-align: left; }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; background: #161a23; border-bottom: 1px solid #222838; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; } .term-dot:nth-child(3) { background: #28c840; }
.term-tabs { display: flex; gap: .25rem; margin-inline-start: auto; }
.term-tab { font: 600 .72rem/1 var(--mono); color: #8a93a5; background: none; border: 1px solid transparent; border-radius: 999px; padding: .42rem .65rem; cursor: pointer; }
.term-tab[aria-pressed="true"] { color: #0f1219; border-color: #fff; background: #fff; }
.term-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.term-body { font: 400 .86rem/1.75 var(--mono); padding: 1.2rem 1.35rem 1.4rem; min-height: 330px; color: #d8dde8; white-space: pre-wrap; }
.term-body .p { color: #7fb2f4; } .term-body .c { color: #8f98ab; } .term-body .ok { color: #3ddc97; } .term-body .ag { color: #a99cff; } .term-body .warn { color: #ffb86b; }
.cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: #7fb2f4; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Cards & grids ===== */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: clamp(1.5rem, 3vw, 2rem); display: grid; gap: .7rem; align-content: start; }
.why-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--link-soft); color: var(--link); }
.why-card p { margin: 0; color: var(--muted); }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 980px) { .path { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .path { grid-template-columns: 1fr; } }
.step { padding: 1.6rem; display: grid; gap: .7rem; align-content: start; }
.step-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ===== Courses ===== */
.courses { display: grid; gap: 1.5rem; }
.course { --c: var(--accent-text); --c-soft: var(--accent-soft); display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); }
.course.agentic { --c: var(--violet); --c-soft: var(--violet-soft); }
@media (max-width: 920px) { .course { grid-template-columns: 1fr; } }
.course-intro { display: grid; gap: 1rem; align-content: start; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { font-size: .82rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; background: var(--c-soft, #eef2f7); color: var(--c, var(--ink-2)); line-height: 1.3; }
.tag.neutral { background: #f1f4f9; color: var(--ink-2); }
.course h3 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.04em; }
:root[lang="ar"] .course h3 { letter-spacing: 0; }
.course-intro p { margin: 0; color: var(--muted); }
.audience { font-size: .96rem; color: var(--text) !important; background: #f6f8fc; border-radius: 14px; padding: .9rem 1rem; }
.label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
:root[lang="ar"] .label { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%; background: var(--c, var(--ink)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
:root[lang="ar"] .checks li::before { margin-top: .35rem; }
.modules { list-style: none; margin: 0; padding: 0; counter-reset: mod; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.module { counter-increment: mod; }
.module + .module { border-top: 1px solid var(--line); }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .6rem; align-items: center; padding: 1rem 1.1rem; transition: background .2s; }
.module summary:hover { background: #f8fafd; }
.module summary::-webkit-details-marker { display: none; }
.module summary::before { content: counter(mod, decimal-leading-zero); font: 600 .82rem/1 var(--mono); color: var(--c); }
.module summary .t { font-weight: 600; color: var(--ink); }
.plus { width: 26px; height: 26px; border-radius: 50%; background: #f1f4f9; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%,-50%); }
.plus::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .25s var(--ease); }
.module details[open] .plus { background: var(--c); }
.module details[open] .plus::before, .module details[open] .plus::after { background: #fff; }
.module details[open] .plus::after { transform: translate(-50%,-50%) rotate(0); }
.module p { margin: 0; padding-block: 0 1.1rem; padding-inline: 3.8rem 1.1rem; color: var(--muted); font-size: .97rem; }

/* ===== Instructor ===== */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.person { display: grid; gap: 1rem; align-content: start; }
.avatar { width: 108px; height: 108px; border-radius: 30px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2.3rem; letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--sky-2), var(--sky-1)); box-shadow: 0 16px 30px -14px rgba(53,103,201,.7); overflow: hidden; }
.avatar picture, .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.byline-avatar { overflow: hidden; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person h3 { font-size: 1.8rem; }
.role { color: var(--muted); font-size: .96rem; margin: -.5rem 0 0; }
.person p { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; }
.links a { font-weight: 600; font-size: .9rem; text-decoration: none; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; }
.links a:hover { border-color: var(--ink); }
.proofs { display: grid; gap: .8rem; align-content: start; }
.proof { display: grid; gap: .4rem; padding: 1.2rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: #fbfcfe; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
a.proof:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.proof-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.proof strong { font-size: 1.1rem; color: var(--ink); }
.proof .tag { --c: var(--link); --c-soft: var(--link-soft); }
.proof p { margin: 0; color: var(--muted); font-size: .95rem; }
.proof .visit { font-weight: 600; font-size: .88rem; color: var(--link); }

/* ===== Waitlist ===== */
.join { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 920px) { .join { grid-template-columns: 1fr; } }
.perks { --c: var(--ink); margin-top: 1.5rem; }
.note { color: var(--muted); font-size: .88rem; margin-top: 1.2rem; }
.form { padding: clamp(1.4rem, 3.5vw, 2.3rem); display: grid; gap: 1.15rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 0; position: relative; }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"] { width: 100%; min-height: 52px; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--control); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(29,91,208,.18); }
.field textarea { width: 100%; min-height: 76px; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--control); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; resize: vertical; }
.field textarea::placeholder { color: var(--dim); }
.hint { font-size: .84rem; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: #e5484d; }
.err { color: #c62a31; font-size: .86rem; }
.err:empty { min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .5rem .7rem; border-radius: 14px; border: 1px solid var(--control); font-weight: 500; font-size: .93rem; line-height: 1.3; background: #fff; transition: all .15s; }
.opt:hover span { border-color: var(--dim); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
.status { font-size: .95rem; border-radius: 14px; padding: .9rem 1rem; }
.status:empty { padding: 0; border: 0; }
.status.error { background: #fff1f1; color: #b4232a; border: 1px solid #ffd0d2; }
.privacy { font-size: .84rem; color: var(--muted); margin: 0; text-align: center; }
.success { display: none; text-align: center; padding: 2rem 1rem; gap: 1rem; justify-items: center; }
.form.done > :not(.success) { display: none; }
.form.done .success { display: grid; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #fff; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success h3 { font-size: 1.8rem; }
.success p { color: var(--muted); margin: 0; }

/* ===== FAQ ===== */
.faq { display: grid; gap: .7rem; max-width: 50rem; margin-inline: auto; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 1.35rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--muted); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.35rem 1.35rem; color: var(--muted); }

/* ===== Closing band + footer ===== */
.band { text-align: center; padding-block: clamp(5rem, 11vw, 8.5rem); background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-1) 100%); }
.band h2 { color: #fff; }
.band.full { background: var(--bg); }
.band.full h1, .band.full h2 { color: var(--ink); }
.band h2 { max-width: 16ch; }
.band .btn { background: #fff; color: var(--ink); }
footer { background: var(--sky-1); color: #e6eeff; padding-block: 1.5rem 2.5rem; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }

/* ===== Utilities & motion ===== */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin: 0 0 1rem; } .my-1 { margin-block: 1rem; } .mx-auto { margin-inline: auto; }
.band.full { min-height: 100vh; display: grid; place-content: center; justify-items: center; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.course .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: .8rem; }
.course, .about, .join { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
@media (max-width: 920px) { .course, .about, .join { grid-template-columns: minmax(0, 1fr); } }

/* ===== Hero extras ===== */
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,54,.25); }
.byline { display: inline-flex; align-items: center; gap: .6rem; color: #e6eeff; font-size: .95rem; font-weight: 500; text-decoration: none; padding: .35rem .9rem .35rem .35rem; border-radius: 999px; background: rgba(255,255,255,.08); }
:root[dir="rtl"] .byline { padding: .35rem .35rem .35rem .9rem; }
.byline:hover { background: rgba(255,255,255,.16); }
.byline-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--ink); background: #fff; }
.term-caption { margin-top: .8rem; font-size: .88rem; color: #3a4459; text-align: center; }
.term-pause { min-width: 34px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fallback-title { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); }
.band.full .lede { color: var(--text); }
/* Global pause (user toggle or reduced motion) */
:root.paused *, :root.paused *::before, :root.paused *::after { animation-play-state: paused !important; }
@media (max-width: 380px) { .nav .btn { white-space: normal; line-height: 1.15; max-width: 9.5rem; text-align: center; padding-block: .35rem; } .nav-links { gap: .6rem; } }

/* ===== Focus on dark surfaces: white ring (>= 3:1 on navy/terminal) ===== */
.nav:not(.scrolled) :focus-visible, .hero :focus-visible, .band :focus-visible, .term :focus-visible, footer :focus-visible { outline-color: #fff; }

/* ===== Motion only when it can be stopped =====
   Without JS there is no pause control, so nothing animates (also the 404). */
:root:not(.js) *, :root:not(.js) *::before, :root:not(.js) *::after { animation: none !important; }
:root:not(.js) .term-tabs, :root:not(.js) .prompt { display: none; }
.prompt.used { opacity: .6; }
/* Controls inside the white prompt card sit on white, not on the navy sky: use the blue ring there. */
.hero .prompt :focus-visible { outline-color: var(--link); }
