/* KCA Vision D: shared styles. Look C tokens, the loved Vision C elements, and the new interactive ones.
   Prototype only: fonts are stand-ins (Source Serif 4 for the display face, Roboto Slab, Ubuntu). */
:root {
  color-scheme: light;
  --ink: #1d1b3a; --indigo: #282666; --purple: #7b36b9; --accent: #1fae9b; --accent-h: #4cc8b6; --earned: #90196d;
  --page: #eceef9; --surface: #f6f7fd; --sunken: #e4e7f6; --track: #dcdff3; --line: #d3d6ec; --line2: #c3c7e5; --muted: #55547c; --faint: #8d8cad;
  --on-ink: #f6f7fd; --on-ink-m: #b9b8d6; --ok: #1b6e4c; --danger: #b42318;
  --r-media: 16px; --r-card: 8px; --r-data: 2px; --r-callout: 12px; --r-ctl: 8px; --r-in: 4px;
  --f-display: "Source Serif 4", Georgia, serif; --f-slab: "Roboto Slab", Georgia, serif; --f-body: "Ubuntu", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.45, .5, 1);
  --shadow-1: 0 1px 2px rgba(40, 38, 102, .06), 0 2px 8px rgba(40, 38, 102, .05); --shadow-2: 0 2px 4px rgba(40, 38, 102, .05), 0 12px 32px rgba(40, 38, 102, .11); --shadow-3: 0 4px 12px rgba(40, 38, 102, .1), 0 28px 64px rgba(40, 38, 102, .24);
  --gut: 32px;
}
[dir="rtl"] { --f-body: "IBM Plex Sans Arabic", "Ubuntu", sans-serif; --f-display: "Amiri", "IBM Plex Sans Arabic", serif; --f-slab: "Amiri", "IBM Plex Sans Arabic", serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; letter-spacing: 0; } [dir="rtl"] h1 { font-size: 1.08em; }
* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.kind { font-size: 13px; font-weight: 600; color: var(--purple); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------- motion helpers ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.is-in { opacity: 1; transform: none; }
[data-words]:not(.is-split) { visibility: hidden; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-block-end: .12em; margin-block-end: -.12em; }
.word > span { display: inline-block; transform: translateY(108%); transition: transform .85s var(--ease); transition-delay: calc(var(--w, 0) * 60ms); }
.is-in .word > span, .word.is-in > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .word > span { opacity: 1 !important; transform: none !important; transition: none !important; } [data-words] { visibility: visible !important; } }

/* ---------- buttons: the rolling label and the arrow that slides in (Vision C) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-ctl); font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; overflow: hidden; background: var(--indigo); color: var(--on-ink); transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn__txt { position: relative; display: block; height: 1.1em; overflow: hidden; line-height: 1.1; }
.btn__txt > span { display: block; transition: transform .45s var(--ease); }
.btn__txt > span + span { position: absolute; inset-inline: 0; top: 100%; }
.btn:hover .btn__txt > span, .btn:focus-visible .btn__txt > span { transform: translateY(-100%); }
.btn__ar { display: inline-grid; width: 0; overflow: hidden; opacity: 0; margin-inline-start: 0; transition: width .35s var(--ease), margin .35s var(--ease), opacity .3s; }
.btn__ar svg { width: 18px; height: 18px; }
[dir="rtl"] .btn__ar svg { transform: scaleX(-1); }
.btn:hover .btn__ar, .btn:focus-visible .btn__ar { width: 18px; margin-inline-start: 8px; opacity: 1; }
.btn--accent { background: var(--accent); color: var(--ink); } .btn--accent:hover { background: var(--accent-h); }
.btn--primary:hover { background: #38358f; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); } .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: var(--on-ink); color: var(--ink); } .btn--light:hover { background: #fff; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.link:hover { color: var(--purple); border-color: var(--purple); }
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); } .link:hover svg { transform: translateX(4px); } [dir="rtl"] .link svg { transform: scaleX(-1); } [dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- header (public) ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--surface); border-block-end: 1px solid var(--line); }
.top__strip { background: var(--sunken); color: var(--muted); font-size: 13px; }
.top__strip .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-block: 7px; }
.top__strip a { text-decoration: none; } .top__strip a:hover { text-decoration: underline; }
.top__bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.nav a, .nav button { position: relative; padding: 12px 12px; font: 500 16px/1 var(--f-body); color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav a > span, .nav button > span { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); padding-block-end: 4px; }
.nav a:hover > span, .nav button:hover > span, .nav button[aria-expanded="true"] > span, .nav a[aria-current] > span { background-size: 100% 1.5px; background-position: 0 100%; }
[dir="rtl"] .nav a > span, [dir="rtl"] .nav button > span { background-position: 0 100%; } [dir="rtl"] .nav a:hover > span, [dir="rtl"] .nav button:hover > span { background-position: 100% 100%; }
.nav svg { width: 14px; height: 14px; transition: transform .3s var(--ease); } .nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
.top__end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.top__end > a:not(.btn) { text-decoration: none; font-weight: 500; padding: 10px 8px; }
.top__end > a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { border: 0; background: none; font: 500 14px var(--f-body); color: var(--muted); cursor: pointer; padding: 8px; border-radius: var(--r-in); } .lang:hover { color: var(--ink); background: var(--sunken); }

/* mega menu (Vision C) */
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-block-end: 1px solid var(--line2); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__in { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; padding-block: 32px 36px; }
.mega h5 { margin: 0 0 14px; font: 600 12.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .mega h5 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.mega__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; }
.mega__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 7px 0; text-decoration: none; opacity: 0; transform: translateX(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
[dir="rtl"] .mega__item { transform: translateX(12px); }
.mega.is-open .mega__item { opacity: 1; transform: none; }
.mega__thumb { display: block; aspect-ratio: 3/2; border-radius: var(--r-ctl); overflow: hidden; background: var(--track); } .mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mega__item:hover .mega__thumb img { transform: scale(1.1); }
.mega__item b { display: block; font-weight: 600; line-height: 1.25; } .mega__item:hover b { text-decoration: underline; text-underline-offset: 3px; }
.mega__item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mega__side { padding-inline-start: 40px; border-inline-start: 1px solid var(--line); display: grid; align-content: start; gap: 18px; }
.promo { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-media); background: var(--ink); color: var(--on-ink); text-decoration: none; transition: transform .3s var(--ease); } .promo:hover { transform: translateY(-3px); }
.promo__img { aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; } .promo__img img { width: 100%; height: 100%; object-fit: cover; }
.promo small { color: var(--on-ink-m); } .promo b { font: 700 19px/1.2 var(--f-slab); }
.promo .link { color: var(--on-ink); justify-self: start; font-size: 14px; }
@media (max-width: 960px) { .nav, .mega, .top__strip { display: none; } .top__bar { height: 64px; } }

/* ---------- search with live suggestions ---------- */
.search { position: relative; max-width: 640px; }
.search__box { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 8px 0 18px; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-callout); transition: box-shadow .25s var(--ease), border-color .2s; }
[dir="rtl"] .search__box { padding: 0 18px 0 8px; }
.search__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 174, 155, .22), var(--shadow-2); }
.search__box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 17px var(--f-body); color: var(--ink); }
.search kbd { font: 500 12px var(--f-body); color: var(--muted); border: 1px solid var(--line2); border-radius: var(--r-in); padding: 3px 7px; }
.sug { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-callout); box-shadow: var(--shadow-3); padding: 8px; max-height: 380px; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.sug.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sug a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-ctl); text-decoration: none; }
.sug a[aria-selected="true"], .sug a:hover { background: var(--sunken); }
.sug img { width: 56px; height: 38px; border-radius: 6px; object-fit: cover; }
.sug b { font-weight: 600; } .sug small { display: block; color: var(--muted); font-size: 13px; } .sug .p { font: 700 14px var(--f-slab); }
.sug mark { background: rgba(31, 174, 155, .25); color: inherit; border-radius: 2px; }
.sug__none { padding: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--surface); font: 500 14px var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); } .chip small { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } .chip[aria-pressed="true"] small { color: var(--on-ink-m); }

/* ---------- hero ---------- */
.hero { padding-block: 72px 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 78px); letter-spacing: -.012em; line-height: 1.03; }
[dir="rtl"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero__lede { margin-top: 22px; max-width: 54ch; font-size: 19px; line-height: 1.6; color: var(--muted); }
.hero .search { margin-top: 32px; } .hero .chips { margin-top: 20px; }
.arch { position: relative; width: 100%; max-width: 520px; justify-self: end; aspect-ratio: 4/5; border-radius: 999px 999px var(--r-media) var(--r-media); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; transform: scale(1.1); transition: transform 1.8s var(--ease); will-change: transform; }
.is-in .arch img, .arch.is-in img { transform: scale(1.02); }
.nstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-block: 1px solid var(--ink); }
.nstrip > div { padding: 26px 22px; border-inline-start: 1px solid var(--line2); } .nstrip > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.nstrip b { display: block; font: 700 clamp(44px, 5.4vw, 76px)/1 var(--f-slab); font-variant-numeric: tabular-nums; }
.nstrip span { display: block; margin-top: 10px; color: var(--muted); }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } .arch { justify-self: start; max-width: 380px; order: -1; } }
@media (max-width: 640px) { :root { --gut: 16px; } .hero { padding-block: 32px 24px; } .nstrip > div { padding: 16px 10px; } .nstrip b { font-size: 36px; } }

/* ---------- section heads ---------- */
.sec { padding-block: 88px; } .sec--tight { padding-block: 56px; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 20ch; } .sec__head p { color: var(--muted); max-width: 52ch; margin-top: 12px; }

/* ---------- topic tiles: hover reveals the programs inside ---------- */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--ink); color: var(--on-ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 34px -22px rgba(29, 27, 58, .75); }
.tile__img { aspect-ratio: 3/2; overflow: hidden; } .tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); } .tile:hover .tile__img img { transform: scale(1.07); }
.tile__strip { display: grid; gap: 8px; padding: 16px 16px 16px; }
.tile__strip h3 { font: 700 21px/1.15 var(--f-display); color: var(--on-ink); }
.tile__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--on-ink-m); }
.tile__peek { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.tile__peek > div { overflow: hidden; } .tile:hover .tile__peek, .tile:focus-visible .tile__peek { grid-template-rows: 1fr; }
.tile__peek ul { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(246, 247, 253, .18); display: grid; gap: 4px; font-size: 13.5px; color: var(--on-ink); }
.tile__peek li { display: flex; gap: 8px; } .tile__peek li::before { content: ""; width: 5px; height: 5px; margin-top: .6em; border-radius: 50%; background: var(--accent); flex: none; }
.tile__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--on-ink); } .tile__go svg { width: 15px; height: 15px; transition: transform .3s var(--ease); } .tile:hover .tile__go svg { transform: translateX(4px); } [dir="rtl"] .tile__go svg { transform: scaleX(-1); }
@media (max-width: 1000px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (hover: none) { .tile__peek { grid-template-rows: 1fr; } }

/* ---------- journey: a path that draws itself across Jordan ---------- */
.jny { position: relative; }
.jny__stage { position: relative; aspect-ratio: 2000 / 667; border-radius: var(--r-media); overflow: hidden; background: var(--sunken); }
.jny__stage > img { width: 100%; height: 100%; object-fit: cover; }
.jny__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jny__path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.jny__ghost { fill: none; stroke: rgba(246, 247, 253, .55); stroke-width: 5; stroke-dasharray: 2 16; stroke-linecap: round; }
.jny__st { fill: var(--surface); stroke: var(--ink); stroke-width: 4; transition: fill .4s, r .4s var(--spring); } .jny__st.on { fill: var(--accent); }
.jny__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 32px; counter-reset: s; }
.step { opacity: .38; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateY(8px); border-top: 1.5px solid var(--line2); padding-top: 16px; }
.step.on { opacity: 1; transform: none; border-color: var(--ink); }
.step b { display: block; font: 700 44px/1 var(--f-slab); color: var(--ink); margin-bottom: 10px; }
.step h3 { font: 700 18px/1.25 var(--f-slab); } .step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .jny__steps { grid-template-columns: 1fr; } .step { opacity: 1; transform: none; display: grid; grid-template-columns: 64px 1fr; gap: 12px; } .step b { grid-row: span 2; } .jny__stage { aspect-ratio: 2000/667; } }

/* ---------- program cards, verify, footer ---------- */
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .2s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line2); }
.pcard__im { aspect-ratio: 3/2; overflow: hidden; } .pcard__im img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); } .pcard:hover .pcard__im img { transform: scale(1.06); }
.pcard__bd { display: grid; gap: 8px; padding: 16px; flex: 1; } .pcard h3 { font: 700 19px/1.2 var(--f-slab); }
.pcard__ft { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; } .price { font: 700 20px var(--f-slab); } .price small { font-size: 12px; margin-inline-end: 4px; color: var(--muted); }
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.verify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.verify__sheet { padding: 28px; background: var(--sunken); border-radius: var(--r-media); position: relative; overflow: hidden; isolation: isolate; }
.verify__sheet::before { content: ""; position: absolute; inset: -30% -30% auto auto; width: 120%; aspect-ratio: 1; z-index: -1; background: url(a/ui/topo-square-light.svg) center/contain no-repeat; opacity: .8; }
.verify__sheet img { border-radius: 4px; box-shadow: var(--shadow-2); }
.field { display: grid; gap: 6px; } .field label { font-weight: 600; font-size: 14px; }
.input { height: 52px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--surface); font: 400 16px var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 174, 155, .22); }
.result { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line2); display: grid; gap: 4px; animation: pop .45s var(--spring); }
.result.ok { border-color: var(--ok); } .result.ok b { color: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .verify { grid-template-columns: 1fr; } }
.foot { position: relative; isolation: isolate; overflow: hidden; background: var(--indigo); color: var(--on-ink); padding-block: 72px 32px; margin-top: 96px; }
.foot::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 90%; z-index: -1; background: url(a/ui/waves-dark.svg) center bottom/ 1100px auto repeat-x; opacity: .9; -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 95%); mask-image: linear-gradient(to top, #000 20%, transparent 95%); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } .foot h5 { margin: 0 0 14px; font: 600 13px var(--f-body); color: var(--on-ink-m); }
.foot a { display: block; padding: 4px 0; color: var(--on-ink); text-decoration: none; font-size: 15px; opacity: .92; } .foot a:hover { text-decoration: underline; }
.foot .brand img { background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.foot small { display: block; margin-top: 56px; color: var(--on-ink-m); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- elements lab ---------- */
.lab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 16px; align-content: start; }
.demo--wide { grid-column: 1 / -1; }
.demo h3 { font: 700 20px var(--f-slab); } .demo > p { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.demo__stage { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 18px; background: var(--page); border-radius: var(--r-ctl); min-height: 90px; position: relative; }
.demo__stage--dark { background: var(--ink); color: var(--on-ink); }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }
.toggle { position: relative; display: inline-grid; grid-auto-flow: column; padding: 4px; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-ctl); }
.toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; font: 600 14px var(--f-body); color: var(--muted); cursor: pointer; transition: color .25s; border-radius: var(--r-in); }
.toggle button[aria-pressed="true"] { color: var(--on-ink); }
.toggle i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--ink); border-radius: var(--r-in); transition: transform .4s var(--spring), width .4s var(--spring); }
.acc { width: 100%; border-top: 1px solid var(--ink); }
.acc__item { border-bottom: 1px solid var(--line2); }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; border: 0; background: none; font: 600 16px var(--f-body); color: var(--ink); cursor: pointer; text-align: start; }
.acc__q svg { width: 18px; height: 18px; transition: transform .35s var(--ease); flex: none; } .acc__item.is-open .acc__q svg { transform: rotate(180deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); } .acc__a > div { overflow: hidden; } .acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a p { padding: 0 4px 16px; color: var(--muted); }
.tip { position: relative; } .tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); background: var(--ink); color: var(--on-ink); padding: 7px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.toast-host { position: fixed; z-index: 200; inset-inline-end: 24px; bottom: 24px; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-ctl); box-shadow: var(--shadow-3); font-size: 14.5px; animation: toast .45s var(--spring); }
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; } .toast svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes toast { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(29, 27, 58, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; backdrop-filter: blur(3px); }
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__box { width: min(480px, 100%); background: var(--surface); border-radius: var(--r-callout); padding: 26px; box-shadow: var(--shadow-3); transform: translateY(16px) scale(.97); transition: transform .4s var(--spring); display: grid; gap: 12px; } .modal.is-open .modal__box { transform: none; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 3px; height: 8px; width: 100%; } .seg i { background: var(--track); border-radius: 2px; transition: background-color .4s; transition-delay: calc(var(--k, 0) * 70ms); } .seg i.on { background: var(--indigo); } .demo__stage--dark .seg i { background: rgba(246, 247, 253, .18); } .demo__stage--dark .seg i.on { background: var(--accent); }
.skel { width: 100%; display: grid; gap: 10px; } .skel i { display: block; height: 14px; border-radius: 4px; background: var(--track); animation: sh 1.3s ease-in-out infinite; } .skel i:nth-child(1) { width: 60%; height: 20px; } .skel i:nth-child(3) { width: 80%; }
@keyframes sh { 50% { opacity: .45; } }
.copy { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border: 1px dashed var(--line2); border-radius: var(--r-ctl); background: var(--surface); font: 500 15px ui-monospace, Consolas, monospace; cursor: pointer; transition: border-color .2s, background .2s; } .copy:hover { border-color: var(--ink); } .copy svg { width: 16px; height: 16px; } .copy.done { border-color: var(--ok); color: var(--ok); }
.sw { position: relative; width: 52px; height: 30px; border: 0; border-radius: 99px; background: var(--line2); cursor: pointer; transition: background .3s; } .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .4s var(--spring); } .sw[aria-checked="true"] { background: var(--indigo); } .sw[aria-checked="true"]::after { transform: translateX(22px); }
.stepper { display: flex; align-items: center; gap: 0; width: 100%; } .stepper__s { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--muted); } .stepper__s i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line2); font-style: normal; font-size: 13px; background: var(--surface); transition: .4s var(--spring); } .stepper__s.on { color: var(--ink); } .stepper__s.on i { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } .stepper__s.done i { background: var(--accent); border-color: var(--accent); color: var(--ink); } .stepper__l { flex: 1; height: 2px; margin-inline: 12px; background: var(--line2); position: relative; overflow: hidden; } .stepper__l::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .6s var(--ease); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; width: 100%; } .bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 12px; color: var(--muted); } .bars i { width: 100%; max-width: 28px; border-radius: 4px 4px 2px 2px; background: var(--indigo); height: 0; transition: height .9s var(--ease); transition-delay: calc(var(--k, 0) * 80ms); } .bars .today i { background: var(--purple); }

/* ---------- the app shell: redesigned sidebar ---------- */
.app { display: grid; grid-template-columns: var(--rail, 72px) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .35s var(--ease); }
.app[data-pin="1"] { --rail: 256px; }
.rail { position: sticky; top: 0; height: 100vh; z-index: 40; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-ink-m); width: 72px; padding: 14px 12px 14px; display: flex; flex-direction: column; gap: 4px; transition: width .35s var(--ease), box-shadow .35s; }
.rail::before { content: ""; position: absolute; z-index: -1; inset: auto -40% -8% -40%; height: 62%; background: url(a/ui/flow-dark.svg) 30% 90% / 760px auto no-repeat; opacity: .8; -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 95%); mask-image: linear-gradient(to top, #000 15%, transparent 95%); }
.rail:hover, .app[data-pin="1"] .rail { width: 256px; } .rail:hover { box-shadow: var(--shadow-3); } .app[data-pin="1"] .rail { box-shadow: none; }
.rail__brand { display: flex; align-items: center; gap: 12px; height: 48px; margin-bottom: 14px; white-space: nowrap; }
.rail__mark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--r-ctl); background: rgba(246, 247, 253, .1); } .rail__mark img { width: 32px; height: 32px; filter: brightness(0) invert(.95); }
.rail__name { font: 700 14px/1.2 var(--f-slab); color: var(--on-ink); } .rail__name small { display: block; font: 500 11.5px var(--f-body); color: var(--on-ink-m); }
.rail__pin { margin-inline-start: auto; width: 32px; height: 32px; border: 0; border-radius: var(--r-in); background: none; color: var(--on-ink-m); cursor: pointer; display: grid; place-items: center; } .rail__pin svg { width: 18px; height: 18px; } .rail__pin:hover { background: rgba(246, 247, 253, .1); color: var(--on-ink); } .rail__pin[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); }
.rail__txt, .rail__pin, .rail__name { opacity: 0; transition: opacity .2s; } .rail:hover .rail__txt, .rail:hover .rail__pin, .rail:hover .rail__name, .app[data-pin="1"] .rail__txt, .app[data-pin="1"] .rail__pin, .app[data-pin="1"] .rail__name { opacity: 1; transition-delay: .08s; }
.rail__nav { position: relative; display: grid; gap: 4px; }
.rail__hl { position: absolute; z-index: 0; inset-inline: 0; top: 0; height: 44px; border-radius: var(--r-ctl); background: rgba(246, 247, 253, .1); opacity: 0; transform: translateY(var(--y, 0)); transition: transform .35s var(--spring), opacity .2s; pointer-events: none; }
.rail__item { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; height: 44px; padding-inline: 13px; border-radius: var(--r-ctl); color: var(--on-ink-m); font: 500 15px var(--f-body); text-decoration: none; white-space: nowrap; border: 0; background: none; cursor: pointer; width: 100%; text-align: start; transition: color .2s; }
.rail__item svg { width: 22px; height: 22px; flex: none; } .rail__item:hover { color: var(--on-ink); }
.rail__item[aria-current="page"] { background: var(--on-ink); color: var(--ink); font-weight: 700; }
.rail__item .n { margin-inline-start: auto; min-width: 24px; height: 22px; padding-inline: 6px; border-radius: var(--r-in); background: rgba(246, 247, 253, .14); color: var(--on-ink); font: 700 12.5px/22px var(--f-slab); text-align: center; } .rail__item[aria-current="page"] .n { background: var(--ink); }
.rail__sep { height: 1px; margin: 12px 8px; background: rgba(246, 247, 253, .22); }
.rail:not(:hover) .rail__item[data-tip]:hover::after, .app:not([data-pin="1"]) .rail:not(:hover) .rail__item:hover::after { content: attr(data-tip); position: fixed; inset-inline-start: 84px; background: var(--surface); color: var(--ink); padding: 7px 10px; border-radius: 6px; font-size: 13px; box-shadow: var(--shadow-2); }
.rail__foot { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(246, 247, 253, .16); position: relative; }
.rail__user { display: flex; align-items: center; gap: 12px; height: 52px; padding-inline: 4px; border-radius: var(--r-ctl); color: var(--on-ink); font: 600 14px var(--f-body); border: 0; background: none; cursor: pointer; white-space: nowrap; width: 100%; text-align: start; } .rail__user:hover { background: rgba(246, 247, 253, .09); }
.av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--indigo); color: var(--on-ink); font: 700 14px var(--f-body); }
.pop { position: absolute; inset-inline-start: 4px; bottom: calc(100% + 8px); width: 230px; background: var(--surface); color: var(--ink); border-radius: var(--r-callout); box-shadow: var(--shadow-3); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom left; transition: opacity .2s, transform .3s var(--spring), visibility 0s .3s; }
.pop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } .pop button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-ctl); font: 500 14.5px var(--f-body); color: var(--ink); cursor: pointer; text-align: start; } .pop button:hover { background: var(--sunken); } .pop svg { width: 18px; height: 18px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 64px; padding-inline: 40px; background: var(--surface); border-block-end: 1px solid var(--line); }
.topbar h1, .topbar__title { margin: 0; font: 700 18px var(--f-slab); color: var(--ink); } .topbar .grow { flex: 1; }
.kbtn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; width: min(420px, 100%); border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--sunken); color: var(--muted); font: 400 15px var(--f-body); cursor: pointer; transition: border-color .2s; } .kbtn:hover { border-color: var(--ink); } .kbtn svg { width: 18px; height: 18px; } .kbtn kbd { margin-inline-start: auto; font: 500 12px var(--f-body); border: 1px solid var(--line2); border-radius: var(--r-in); padding: 2px 6px; }
.hband { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: 56px 0 150px; }
.hband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(a/ui/topo-wide-dark.svg) right top / cover no-repeat; opacity: .75; -webkit-mask-image: radial-gradient(ellipse 80% 120% at 82% 28%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 120% at 82% 28%, #000 30%, transparent 100%); }
[dir="rtl"] .hband::before { background-position: left top; transform: scaleX(-1); }
.hband .wrap { max-width: 1200px; padding-inline: 40px; }
.hband .date { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-m); } [dir="rtl"] .hband .date { letter-spacing: 0; text-transform: none; }
.hband h1 { margin-top: 6px; font-size: clamp(36px, 4.4vw, 60px); color: var(--on-ink); } .hband .sub { margin-top: 10px; color: var(--on-ink-m); font-size: 18px; }
.lstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-block: 1px solid rgba(246, 247, 253, .28); }
.lstats > div { padding: 22px 20px; border-inline-start: 1px solid rgba(246, 247, 253, .18); } .lstats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.lstats b { display: block; font: 700 clamp(34px, 4vw, 58px)/1 var(--f-slab); font-variant-numeric: tabular-nums; } .lstats b small { font-size: .5em; color: var(--on-ink-m); font-weight: 500; } .lstats span { display: block; margin-top: 6px; color: var(--on-ink-m); font-size: 15px; }
.content { max-width: 1200px; margin-inline: auto; padding-inline: 40px; }
.cont { position: relative; z-index: 2; margin-top: -110px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); box-shadow: var(--shadow-3); }
.cont__pic { position: relative; aspect-ratio: 16/9; border-radius: var(--r-media); overflow: hidden; background: var(--ink); display: block; } .cont__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); } .cont__pic:hover img { transform: scale(1.04); }
.cont__play { position: absolute; inset-inline-start: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(10, 10, 40, .4); transition: transform .3s var(--spring), background .2s; } .cont__pic:hover .cont__play { transform: scale(1.1); background: var(--accent-h); } .cont__play svg { width: 24px; height: 24px; }
.cont__copy { display: grid; gap: 12px; padding-inline-end: 18px; } .cont__copy h2 { font-size: 32px; } .cont__copy .cont__lesson { color: var(--muted); }
.cont__pct { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; } .cont__pct b { font: 700 24px var(--f-slab); color: var(--ink); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 56px; padding-bottom: 80px; align-items: start; }
.blk-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; } .blk-h h2 { font: 700 22px var(--f-slab); }
.tabs { display: inline-grid; grid-auto-flow: column; position: relative; padding: 4px; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-ctl); margin-bottom: 14px; }
.rows { border-top: 1px solid var(--ink); }
.crs { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line2); border-radius: 0; transition: background-color .25s, padding .3s var(--ease); text-decoration: none; }
.crs:hover { background: var(--surface); padding-inline: 16px; } .crs[hidden] { display: none; }
.crs__pic { aspect-ratio: 3/2; border-radius: var(--r-ctl); overflow: hidden; } .crs__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .crs:hover .crs__pic img { transform: scale(1.08); }
.crs h3 { font: 700 18px/1.25 var(--f-slab); } .crs .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.crs .next { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); font-size: 13.5px; } .crs .next > div { overflow: hidden; } .crs:hover .next { grid-template-rows: 1fr; } .crs .next span { display: block; padding-top: 6px; color: var(--ink); }
.crs__go { text-align: end; display: grid; gap: 8px; justify-items: end; } .crs__go b { font: 700 22px var(--f-slab); } .crs__go b small { font-size: .55em; color: var(--muted); font-weight: 500; }
.crs .seg { height: 5px; margin-top: 12px; }
.week { padding-top: 20px; border-top: 1px solid var(--ink); } .week p { color: var(--muted); margin-bottom: 14px; } .week p b { font: 700 18px var(--f-slab); color: var(--ink); }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } .cont { grid-template-columns: 1fr; } .lstats { grid-template-columns: repeat(2, 1fr); } .app { grid-template-columns: 0 minmax(0, 1fr); } .rail { display: none; } .topbar, .content, .hband .wrap { padding-inline: 16px; } }

/* command palette */
.cmd { position: fixed; inset: 0; z-index: 180; display: grid; justify-items: center; align-content: start; padding: 12vh 16px 0; background: rgba(29, 27, 58, .5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.cmd.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cmd__box { width: min(620px, 100%); background: var(--surface); border-radius: var(--r-callout); box-shadow: var(--shadow-3); overflow: hidden; transform: translateY(-14px) scale(.98); transition: transform .35s var(--spring); } .cmd.is-open .cmd__box { transform: none; }
.cmd input { width: 100%; height: 60px; border: 0; border-bottom: 1px solid var(--line); padding: 0 20px; font: 400 18px var(--f-body); background: none; color: var(--ink); outline: 0; }
.cmd ul { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow: auto; } .cmd li a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-ctl); text-decoration: none; cursor: pointer; } .cmd li a[aria-selected="true"] { background: var(--sunken); } .cmd li small { margin-inline-start: auto; color: var(--muted); } .cmd li svg { width: 18px; height: 18px; color: var(--muted); }
.cmd__h { padding: 10px 14px 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-block: 40px 96px; }
.co h1 { font-size: 44px; } .co h2 { font: 700 22px var(--f-slab); margin-bottom: 14px; }
.meth { display: grid; gap: 12px; }
.meth > label { display: grid; grid-template-columns: 24px 44px 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1.5px solid var(--line2); border-radius: var(--r-callout); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .3s var(--ease), transform .25s var(--ease); }
.meth > label:hover { border-color: var(--ink); transform: translateY(-1px); } .meth > label > input { accent-color: var(--ink); width: 18px; height: 18px; }
.meth > label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 27, 58, .08); }
.meth .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--sunken); } .meth .ic svg { width: 22px; height: 22px; }
.meth b { display: block; } .meth small { color: var(--muted); } .meth .logos { display: flex; gap: 6px; } .meth .logos img { height: 26px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 2px 6px; }
.panelx { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); } .panelx > div { overflow: hidden; } .panelx.is-open { grid-template-rows: 1fr; }
.card3d { perspective: 900px; margin-block: 8px 20px; max-width: 360px; } .card3d__in { position: relative; aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform .8s var(--spring); } .card3d.flip .card3d__in { transform: rotateY(180deg); }
.cardf { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; padding: 20px; display: grid; align-content: space-between; color: var(--on-ink); background: var(--indigo); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-2); }
.cardf::before { content: ""; position: absolute; inset: -20% -20% auto auto; width: 90%; aspect-ratio: 1; z-index: -1; background: url(a/ui/flow-dark.svg) center/ contain no-repeat; opacity: .9; }
.cardf--back { transform: rotateY(180deg); background: var(--ink); align-content: start; padding: 24px 0; } .cardf--back .strip { height: 40px; background: #0d0c20; margin-bottom: 18px; } .cardf--back .cvv { margin-inline: 20px; background: #fff; color: var(--ink); height: 34px; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-inline: 10px; font: 600 15px ui-monospace, monospace; }
.cardf .num { font: 500 21px ui-monospace, Consolas, monospace; letter-spacing: .08em; } .cardf .row { display: flex; justify-content: space-between; font-size: 13px; } .cardf small { display: block; opacity: .7; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.cardf .chipx { width: 40px; height: 30px; border-radius: 6px; background: #c3c7e5; }
.sum { position: sticky; top: 100px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-callout); display: grid; gap: 14px; }
.sum__prog { display: grid; grid-template-columns: 76px 1fr; gap: 14px; } .sum__prog img { border-radius: 8px; aspect-ratio: 3/2; object-fit: cover; } .sum hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sum .line { display: flex; justify-content: space-between; color: var(--muted); } .sum .total { font: 700 24px var(--f-slab); color: var(--ink); }
.proc { display: none; place-items: center; gap: 14px; text-align: center; padding: 48px 20px; } .proc.is-on { display: grid; }
.spin { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--track); border-top-color: var(--accent); animation: sp 0.9s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }
.okmark { width: 72px; height: 72px; } .okmark circle { fill: var(--accent); transform-origin: center; animation: pop .5s var(--spring); } .okmark path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: dr .6s .35s var(--ease) forwards; } @keyframes dr { to { stroke-dashoffset: 0; } }
@media (max-width: 960px) { .co { grid-template-columns: 1fr; } .sum { position: static; } }

/* real sandbox pages gallery */
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } .flow figure { margin: 0; } .flow img { border: 1px solid var(--line2); border-radius: 6px; width: 100%; } .flow figcaption { margin-top: 8px; color: var(--muted); font-size: 14.5px; } .flow b { color: var(--ink); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.tagx { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); } .tagx::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; } .tagx.ok::before { background: var(--ok); } .tagx.ink::before { background: var(--ink); } .tagx.ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.dtbl { width: 100%; border-collapse: collapse; font-size: 15px; } .dtbl th, .dtbl td { text-align: start; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .dtbl th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--ink); } .dtbl td:first-child { font-weight: 600; }

/* prototype navigation */
.dnav { position: fixed; z-index: 120; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; background: var(--ink); color: var(--on-ink); border-radius: 99px; box-shadow: var(--shadow-3); max-width: calc(100vw - 20px); overflow-x: auto; }
.dnav b { font: 700 13px var(--f-slab); padding: 0 12px; color: var(--accent); } .dnav a { padding: 8px 12px; border-radius: 99px; font: 500 13.5px var(--f-body); color: var(--on-ink-m); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; } .dnav a:hover { color: var(--on-ink); background: rgba(246, 247, 253, .1); } .dnav a[aria-current] { background: var(--on-ink); color: var(--ink); font-weight: 600; }

/* small screens */
.hero__grid > *, .lab > *, .demo, .demo__stage, .co > * { min-width: 0; }
.lab--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plist { grid-template-columns: 200px 1fr auto; }
@media (max-width: 900px) { .lab--3 { grid-template-columns: minmax(0, 1fr); } .plist { grid-template-columns: 1fr; gap: 8px; } .plist .link { justify-self: start; } }
@media (max-width: 640px) {
  .stepper__s { font-size: 0; gap: 0; } .stepper__s i { font-size: 13px; } .stepper__l { margin-inline: 6px; }
  [data-co-steps] { max-width: none !important; margin-inline: 0 !important; flex: 1; } .top__bar { gap: 12px; }
  .co h1 { font-size: 34px; } .meth label { grid-template-columns: 24px 40px 1fr; } .meth .logos { display: none; }
  .hero__lede { font-size: 17px; } .search__box { height: 56px; } .search kbd { display: none; }
  .demo__stage { flex-wrap: wrap; } .flow figcaption { font-size: 13.5px; }
}

/* ---------- how it works: a sticky stage that shows the real thing each step is about ---------- */
.how { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.how__list { list-style: none; margin: 0; padding: 0 0 18vh; }
.how__step { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; min-height: 42vh; padding-top: 22px; border-top: 1.5px solid var(--line2); opacity: .32; transition: opacity .5s var(--ease), border-color .5s; cursor: pointer; }
.how__step.on { opacity: 1; border-color: var(--ink); }
.how__step > b { font: 700 64px/1 var(--f-slab); color: var(--ink); }
.how__step h3 { font: 700 26px/1.2 var(--f-slab); } .how__step p { margin-top: 10px; color: var(--muted); max-width: 40ch; }
.how__in { display: none; margin-top: 18px; }
.how__stage { position: sticky; top: 112px; height: min(580px, calc(100vh - 150px)); border-radius: var(--r-media); background: var(--sunken); overflow: hidden; isolation: isolate; }
.how__print { position: absolute; inset: 0; z-index: -1; background: url(a/ui/topo-square-light.svg) 70% 30% / 900px auto no-repeat; opacity: .9; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, #000 40%, transparent 100%); }
.pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--spring); pointer-events: none; }
.pane.on { opacity: 1; transform: none; pointer-events: auto; }
.mini { width: min(470px, 100%); display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-callout); box-shadow: var(--shadow-2); }
.mini .mt { font: 700 18px/1.25 var(--f-slab); } .mini small { color: var(--muted); font-size: 13px; }
.msearch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--page); color: var(--muted); } .msearch svg { width: 18px; height: 18px; }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-ctl); transition: background .2s; } .mrow:hover { background: var(--sunken); } .mrow img { width: 64px; height: 43px; border-radius: 6px; object-fit: cover; } .mrow b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; } .mrow .price { font-size: 16px; }
.mrun { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: var(--r-ctl); background: var(--surface); font: inherit; text-align: start; cursor: pointer; transition: border-color .2s, box-shadow .25s; } .mrun b { display: block; font-size: 15px; } .mrun.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 27, 58, .08); } .mrun:hover { border-color: var(--ink); } .seats { font-weight: 600; font-size: 13px; color: var(--ok); white-space: nowrap; }
.mmeth { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--line2); border-radius: var(--r-ctl); } .mmeth.on { border-color: var(--ink); } .mmeth .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--sunken); } .mmeth .ic svg { width: 20px; height: 20px; } .mmeth b { display: block; font-size: 15px; } .mmeth .logos { display: flex; gap: 4px; } .mmeth .logos img { height: 22px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 1px 4px; }
.mtot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); } .mtot b { font: 700 24px var(--f-slab); color: var(--ink); }
.mlesson { position: relative; border-radius: var(--r-ctl); overflow: hidden; aspect-ratio: 16/9; } .mlesson img { width: 100%; height: 100%; object-fit: cover; } .mplay { position: absolute; inset-inline-start: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--ink); } .mplay svg { width: 20px; height: 20px; }
.mcert { border-radius: 4px; box-shadow: var(--shadow-1); } .mid { display: flex; justify-content: space-between; align-items: center; font: 500 15px ui-monospace, Consolas, monospace; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 0; } .how__stage { display: none; } .how__list { padding-bottom: 0; } .how__step { opacity: 1; min-height: 0; padding-bottom: 28px; grid-template-columns: 56px minmax(0, 1fr); } .how__step > b { font-size: 44px; } .how__in { display: block; } .how__step .mini { box-shadow: none; background: var(--sunken); width: 100%; } }
@media (prefers-reduced-motion: reduce) { .pane { transition: none; } }

/* ---------- the knowledge circle (home hero) ---------- */
.ring { position: relative; width: 100%; max-width: 540px; justify-self: end; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring__rule { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .35; }
.ring__hub { fill: var(--surface); stroke: var(--line2); stroke-width: 1.5; }
.ring__seg { cursor: pointer; outline: 0; transform: translate(0, 0); transition: transform .5s var(--spring), opacity .35s; opacity: 0; animation: ringin .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + .3s); }
@keyframes ringin { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.ring__edge { fill: none; stroke: var(--page); stroke-width: 0; transition: stroke .25s; }
.ring:hover .ring__seg:not(:hover), .ring:focus-within .ring__seg:not(:focus) { opacity: .5; }
.ring__seg:hover, .ring__seg:focus { transform: translate(var(--dx), var(--dy)); }
.ring__seg:hover .ring__edge, .ring__seg:focus .ring__edge { stroke: var(--accent); stroke-width: 5; }
.ring__center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ring__center > div { width: 31%; display: grid; gap: 4px; justify-items: center; text-align: center; }
.ring__center img { width: 56px; height: 56px; opacity: .9; } .ring__center b { font: 700 clamp(13px, 1.5vw, 17px)/1.2 var(--f-slab); } .ring__center span { font-size: clamp(11px, 1.1vw, 13px); color: var(--muted); }
.ring__hov b { font-size: clamp(14px, 1.7vw, 19px); } .ring__hov span { font-weight: 600; color: var(--ink); }
.ring__hov[hidden], .ring__def[hidden] { display: none; }
@media (max-width: 1000px) { .ring { justify-self: center; max-width: 440px; order: -1; } }
@media (prefers-reduced-motion: reduce) { .ring__seg { animation: none; opacity: 1; } }

/* ---------- two programs in the hero ---------- */
.harches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 560px; justify-self: end; align-items: start; }
.harch { display: grid; gap: 8px; padding: 12px 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px 999px var(--r-card) var(--r-card); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.harch:nth-child(2) { margin-top: 44px; } .harch:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); }
.harch__img { aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px 10px 10px; background: var(--ink); } .harch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); } .harch:hover .harch__img img { transform: scale(1.07); }
.harch .kind, .harch b, .harch__ft { padding-inline: 8px; } .harch b { font: 700 19px/1.2 var(--f-slab); }
.harch__ft { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.hstack { position: relative; width: 100%; max-width: 520px; justify-self: end; } .hstack .arch { max-width: none; }
.hmini { position: absolute; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; width: 280px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-callout); box-shadow: var(--shadow-3); text-decoration: none; transition: transform .35s var(--ease); } .hmini:hover { transform: translateY(-5px); }
.hmini img { width: 64px; height: 43px; border-radius: 6px; object-fit: cover; } .hmini b { display: block; font: 700 15px/1.25 var(--f-slab); } .hmini small { display: block; color: var(--muted); font-size: 12px; } .hmini .price { font-size: 15px; }
.hmini--a { inset-inline-start: -56px; bottom: 56px; } .hmini--b { inset-inline-end: -20px; top: 56px; }
.hopt__bar { display: grid; gap: 4px; padding: 14px 18px; margin-top: 40px; border-block: 1px solid var(--ink); } .hopt__bar b { font: 700 18px var(--f-slab); } .hopt__bar span { color: var(--muted); max-width: 80ch; }
@media (max-width: 1000px) { .harches { justify-self: center; } .hstack { justify-self: center; } .hmini--a { inset-inline-start: 0; } .hmini--b { inset-inline-end: 0; } }
@media (max-width: 640px) { .harches { gap: 12px; } .harch b { font-size: 16px; } .hmini { width: 230px; } }

.ring__center img { width: 46px; height: 46px; } .ring__center > div { width: 29%; } .ring__center span { line-height: 1.35; }
.hmini .price { display: inline-block; white-space: nowrap; }

/* notes from review: card preview looks finished while empty; security code explained; certificate picture keeps its shape */
.hint { font-size: 13px; color: var(--muted); }
.cardf .ph { opacity: .5; transition: opacity .25s; } .cardf .ph.on { opacity: 1; }
.cardf .net { display: inline-grid; place-items: center; min-width: 54px; height: 30px; font: italic 700 20px var(--f-slab); letter-spacing: .02em; }
.cardf .net .mc { display: inline-flex; } .cardf .net .mc i { width: 24px; height: 24px; border-radius: 50%; background: #eb001b; } .cardf .net .mc i + i { margin-inline-start: -10px; background: #f79e1b; mix-blend-mode: screen; }
.cardf .row:first-child { align-items: center; }
.verify__sheet img, .mcert, .sum__prog img { width: 100%; height: auto; }
.sum__prog img { aspect-ratio: 3 / 2; object-fit: cover; }
.cardf::before { -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }

/* grouped prototype menu */
.dnav__cur { padding: 0 6px; font: 600 13.5px var(--f-body); color: var(--on-ink); white-space: nowrap; }
.dnav__btn { margin-inline-start: 4px; padding: 8px 14px; border: 0; border-radius: 99px; background: rgba(246, 247, 253, .12); color: var(--on-ink); font: 600 13.5px var(--f-body); cursor: pointer; } .dnav__btn:hover { background: rgba(246, 247, 253, .22); }
.dnav__panel { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 10px); width: min(760px, calc(100vw - 20px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 18px; background: var(--ink); border-radius: 16px; box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
.dnav.is-open .dnav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dnav__panel h6 { margin: 0 0 8px; font: 600 11.5px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); } .dnav__panel a { display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; white-space: normal; }
@media (max-width: 700px) { .dnav__panel { grid-template-columns: 1fr 1fr; max-height: 60vh; overflow: auto; } }
.dnav { overflow: visible; }

/* prototype navigation */
.dnav { position: fixed; z-index: 120; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; background: var(--ink); color: var(--on-ink); border-radius: 99px; box-shadow: var(--shadow-3); max-width: calc(100vw - 20px); }
.dnav b { font: 700 13px var(--f-slab); padding: 0 12px; color: var(--accent); } .dnav a { padding: 8px 12px; border-radius: 99px; font: 500 13.5px var(--f-body); color: var(--on-ink-m); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; } .dnav a:hover { color: var(--on-ink); background: rgba(246, 247, 253, .1); } .dnav a[aria-current] { background: var(--on-ink); color: var(--ink); font-weight: 600; }

/* the circle is colourless at rest; the topic colours come up on hover, focus and on the segment the tour is on */
.ring__seg image { filter: grayscale(1) contrast(1.04) brightness(1.04); transition: filter .5s var(--ease); }
.ring__seg:hover image, .ring__seg:focus image, .ring__seg.is-on image { filter: none; }
.ring__seg.is-on { transform: translate(var(--dx), var(--dy)); } .ring__seg.is-on .ring__edge { stroke: var(--accent); stroke-width: 5; }
.ring:hover .ring__seg.is-on:not(:hover) { opacity: .5; }

/* vision P11: the language switch is a link to the other language's address, not the prototype's toggle button: same look as .lang */
.top__end > a.lang { padding: 8px; text-decoration: none; } .top__end > a.lang:hover { text-decoration: none; }
