/* Timetable SaaS landing page. Plain CSS, no build step. */
:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #f7f8fc;
  --bg-2: #eef0fb;
  --surface: #ffffff;
  --surface-2: #f4f5fc;
  --ink: #0f1330;
  --ink-2: #4a5070;
  --ink-3: #6b7195;
  --line: #e2e5f3;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-ink: #4338ca;
  --cyan: #06b6d4;
  --shadow: 0 1px 2px rgba(15, 19, 48, .06), 0 12px 32px -12px rgba(46, 40, 140, .18);
  --shadow-lg: 0 30px 80px -30px rgba(46, 40, 140, .45);
  --radius: 20px;
  /* subject colours: background, foreground, accent */
  --s0: #e0e7ff; --s0f: #3730a3; --s0a: #6366f1;
  --s1: #ffe4e6; --s1f: #9f1239; --s1a: #f43f5e;
  --s2: #d1fae5; --s2f: #065f46; --s2a: #10b981;
  --s3: #fef3c7; --s3f: #92400e; --s3a: #f59e0b;
  --s4: #ede9fe; --s4f: #5b21b6; --s4a: #8b5cf6;
  --s5: #cffafe; --s5f: #155e75; --s5a: #06b6d4;
  color-scheme: light;
}
:root[data-theme="dark"], :root[data-theme="auto"].dark-sys {
  --bg: #0a0d1f; --bg-2: #0e1230; --surface: #121734; --surface-2: #171d40;
  --ink: #eef0ff; --ink-2: #b4b9dc; --ink-3: #8a90b8; --line: #252c57;
  --brand: #6d66ff; --brand-ink: #a5a0ff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.8);
  --s0: #25285e; --s0f: #c7cbff; --s1: #4a1830; --s1f: #ffc2d0; --s2: #0f3a31; --s2f: #a7f3d0;
  --s3: #48320c; --s3f: #fde68a; --s4: #33205f; --s4f: #ddd0ff; --s5: #0d3c4a; --s5f: #a5f3fc;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0a0d1f; --bg-2: #0e1230; --surface: #121734; --surface-2: #171d40;
    --ink: #eef0ff; --ink-2: #b4b9dc; --ink-3: #8a90b8; --line: #252c57;
    --brand: #6d66ff; --brand-ink: #a5a0ff;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.8);
    --s0: #25285e; --s0f: #c7cbff; --s1: #4a1830; --s1f: #ffc2d0; --s2: #0f3a31; --s2f: #a7f3d0;
    --s3: #48320c; --s3f: #fde68a; --s4: #33205f; --s4f: #ddd0ff; --s5: #0d3c4a; --s5f: #a5f3fc;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #5b52f0, #7c3aed); box-shadow: 0 8px 24px -8px rgba(99, 80, 240, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(99, 80, 240, .85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn-glass { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.sec:not(.sec-dark):not(.sec-demo) .btn-glass { color: var(--ink); background: var(--surface); border-color: var(--line); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn .ico { width: 20px; height: 20px; }
.menu-btn { display: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; color: #fff; }
.nav.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand b { font-weight: 800; background: linear-gradient(135deg, #8b83ff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; opacity: .85; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: #080b1c; padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 640px; height: 640px; left: -140px; top: -120px; background: #4f46e5; }
.aurora i:nth-child(2) { width: 560px; height: 560px; right: -120px; top: 40px; background: #7c3aed; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 480px; height: 480px; left: 38%; bottom: -200px; background: #0891b2; opacity: .4; animation-delay: -11s; }
.aurora.small i { opacity: .35; }
.aurora.small i:nth-child(1) { left: -160px; top: -200px; }
.aurora.small i:nth-child(2) { right: -160px; bottom: -220px; top: auto; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.gridlines { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%); }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); transition: background .2s; }
.pill:hover { background: rgba(255,255,255,.14); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 20px; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #a5a0ff 0%, #67e8f9 50%, #f0abfc 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4c9ee; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font-size: 14.5px; color: #aab0dd; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .ico { color: #34d399; }

.hero-visual { position: relative; perspective: 1400px; }
.window { position: relative; border-radius: 22px; background: rgba(18, 23, 52, .72); border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04) inset; backdrop-filter: blur(14px); transform: rotateY(-8deg) rotateX(4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); padding-bottom: 14px; }
.hero-visual:hover .window { transform: rotateY(-2deg) rotateX(1deg); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #aab0dd; font-weight: 600; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-inline-start: 10px; }
.mini-grid { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 6px; padding: 14px 16px 4px; }
.mini-grid .h { font-size: 11px; font-weight: 700; text-align: center; color: #8a90b8; letter-spacing: .06em; padding-bottom: 2px; }
.mini-grid .p { font-size: 11px; color: #8a90b8; display: grid; place-items: center; font-weight: 600; }
.mini-grid .c { height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; opacity: 0; transform: scale(.7); animation: pop .5s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.mini-grid .brk { grid-column: 1 / -1; height: 14px; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px); font-size: 9px; letter-spacing: .3em; text-align: center; line-height: 14px; color: #8a90b8; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding-block: 10px; padding-inline: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.96); color: #0f1330; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); animation: bob 6s ease-in-out infinite; }
.float-chip b { display: block; font-size: 14px; line-height: 1.2; }
.float-chip small { color: #5a6085; font-size: 12px; }
.fc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e0e7ff; color: #4338ca; }
.fc-ic.ok { background: #d1fae5; color: #047857; } .fc-ic.warn { background: #fef3c7; color: #b45309; }
.fc-1 { top: -34px; inset-inline-start: -44px; } .fc-2 { bottom: 40px; inset-inline-end: -34px; animation-delay: -2s; } .fc-3 { bottom: -22px; inset-inline-start: 24px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 28px 24px 34px; display: flex; align-items: center; gap: 16px; border-inline-start: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(180deg, #fff, #a5a0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; line-height: 1.4; color: #aab0dd; }

/* ---------- sections ---------- */
.sec { padding: 110px 0; position: relative; }
.sec-tint { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.eyebrow.on-dark { color: #a5a0ff; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- playground ---------- */
.play { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.play-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.sel select { appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7195' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 34px 8px 12px; min-width: 150px; }
.play-meter { display: flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.meter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: #d1fae5; color: #065f46; transition: background .3s, color .3s; }
.meter-pill.bad { background: #ffe4e6; color: #9f1239; }
.meter-pill.soft { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
:root[data-theme="dark"] .meter-pill:not(.bad):not(.soft) { background: #0f3a31; color: #6ee7b7; }
:root[data-theme="dark"] .meter-pill.bad { background: #4a1830; color: #fda4af; }
.play-body { display: grid; grid-template-columns: 1fr 280px; }
.grid-wrap { padding: 22px; overflow-x: auto; }
.tt { display: grid; grid-template-columns: 46px repeat(5, minmax(86px, 1fr)); gap: 7px; min-width: 520px; }
.tt .h { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); padding-bottom: 4px; }
.tt .p { display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); line-height: 1.15; }
.tt .p small { display: block; font-weight: 500; font-size: 10px; opacity: .8; }
.tt .brk { grid-column: 1 / -1; height: 22px; border-radius: 8px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 6%, transparent) 0 8px, transparent 8px 16px); color: var(--ink-3); font-size: 10.5px; letter-spacing: .4em; font-weight: 700; display: grid; place-items: center; text-indent: .4em; }
.cell { position: relative; border: 0; text-align: start; border-radius: 12px; padding: 8px 10px; min-height: 58px; display: flex; flex-direction: column; justify-content: center; gap: 1px; font-size: 13px; font-weight: 700; line-height: 1.2; background: var(--bg-c); color: var(--fg-c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac-c) 28%, transparent); transition: transform .2s, box-shadow .2s, opacity .25s, filter .25s; }
.cell small { font-weight: 500; font-size: 11px; opacity: .8; }
.cell:hover, .cell:focus-visible { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--ac-c) 70%, transparent), inset 0 0 0 2px var(--ac-c); z-index: 2; }
.cell.empty { background: transparent; box-shadow: inset 0 0 0 1.5px dashed; border: 1.5px dashed var(--line); color: var(--ink-3); font-weight: 500; }
.cell.empty:hover { transform: none; box-shadow: none; }
.cell.clash { background: #ffe4e6; color: #9f1239; animation: shake .5s infinite; box-shadow: inset 0 0 0 2px #f43f5e; }
:root[data-theme="dark"] .cell.clash { background: #4a1830; color: #ffc2d0; }
@keyframes shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.cell.dim { opacity: .22; filter: saturate(.4); }
.cell.pulse { animation: glow 1.1s ease; }
@keyframes glow { 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac-c) 45%, transparent), inset 0 0 0 2px var(--ac-c); transform: scale(1.04); } }
.play-side { border-inline-start: 1px solid var(--line); padding: 22px; background: var(--surface-2); display: flex; flex-direction: column; gap: 22px; }
.legend { display: flex; flex-direction: column; gap: 6px; }
.legend button { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: transparent; padding: 7px 10px; border-radius: 10px; text-align: start; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s; }
.legend button:hover { background: var(--surface); }
.legend button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--ac-c); flex: none; }
.legend span { margin-inline-start: auto; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.inspector h3 { font-size: 15px; margin-bottom: 8px; }
.inspector dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.inspector dt { color: var(--ink-3); } .inspector dd { margin: 0; font-weight: 600; }
.inspector .muted { font-size: 14px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }
.card p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }
.c-wide { grid-column: span 2; } .c-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: center; } .c-full .ic { grid-column: 1; } .c-full .chips { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; justify-content: flex-end; } .c-tall { grid-row: span 2; }
.ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; background: var(--s0); color: var(--s0f); }
.ic .ico { width: 24px; height: 24px; }
.ic-rose { background: var(--s1); color: var(--s1f); } .ic-emerald { background: var(--s2); color: var(--s2f); } .ic-amber { background: var(--s3); color: var(--s3f); } .ic-violet { background: var(--s4); color: var(--s4f); } .ic-cyan { background: var(--s5); color: var(--s5f); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.solver-viz { display: grid; gap: 8px; margin-top: 22px; }
.solver-viz i { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.solver-viz i::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.in .solver-viz i::before { width: var(--w); }
.tick { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.tick li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.tick li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.tick-dark li { color: #c4c9ee; font-size: 16px; } .tick-dark li::before { background-color: rgba(52,211,153,.2); }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.langs span { padding: 6px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; background: linear-gradient(135deg, var(--s0), var(--s4)); color: var(--s0f); }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.how h2 { margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps button { width: 100%; display: flex; gap: 16px; text-align: start; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.steps button:hover { background: var(--surface-2); }
.steps .on button { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; font-weight: 800; background: var(--surface-2); color: var(--ink-3); transition: background .25s, color .25s; }
.steps .on .num { background: linear-gradient(135deg, #5b52f0, #7c3aed); color: #fff; }
.steps b { display: block; font-size: 17px; }
.steps em { display: block; font-style: normal; font-size: 15px; color: var(--ink-2); margin-top: 3px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease; }
.steps .on em { max-height: 100px; opacity: 1; }
.stage { position: relative; min-height: 380px; padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.stage::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 60%, transparent), transparent 40%, color-mix(in srgb, var(--cyan) 50%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stage-pane { display: none; animation: paneIn .5s ease; }
.stage-pane.on { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(12px); } }
.stage-title { font-weight: 800; font-size: 20px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.stage-title small { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; flex-wrap: wrap; }
.row em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--ink-3); }
.row.ghost { background: transparent; border-style: dashed; color: var(--ink-3); }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: #94a3b8; flex: none; }
.a1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); } .a2 { background: linear-gradient(135deg, #f43f5e, #fb923c); } .a3 { background: linear-gradient(135deg, #10b981, #06b6d4); } .a4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.row.ghost .av { background: var(--line); color: var(--ink-3); }
.tag { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.t-ind { background: var(--s0); color: var(--s0f); } .t-ros, .t-red { background: var(--s1); color: var(--s1f); } .t-eme { background: var(--s2); color: var(--s2f); } .t-amb { background: var(--s3); color: var(--s3f); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.rules i { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--ink-3); }
.lvl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 7px; flex: none; }
.lvl.hard { background: var(--s1); color: var(--s1f); } .lvl.soft { background: var(--s3); color: var(--s3f); }
.gen { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding: 6px 0; }
.gen-ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; text-align: center; }
.gen-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gen-ring circle { fill: none; stroke-width: 9; }
.gen-ring .bg { stroke: var(--surface-2); } .gen-ring .fg { stroke: #10b981; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.stage-pane.on .gen-ring .fg { animation: ring 1.4s cubic-bezier(.2,.8,.2,1) .2s forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.gen-ring b { font-size: 40px; font-weight: 800; line-height: 1; } .gen-ring span { font-size: 12px; color: var(--ink-3); display: block; max-width: 80px; margin-top: 4px; }
.gen-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-weight: 600; }
.gen-list li { display: flex; align-items: center; gap: 10px; }
.gen-list .ico { color: #10b981; background: var(--s2); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }

/* ---------- dark section ---------- */
.sec-dark { background: #0a0d1f; color: #fff; overflow: hidden; }
.sec-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% 10%, rgba(99, 80, 240, .35), transparent 70%), radial-gradient(700px 400px at 5% 100%, rgba(8, 145, 178, .25), transparent 70%); }
.two { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lead-sm { font-size: 18px; color: #c4c9ee; margin-top: 18px; }
.why { padding: 28px; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.why-head { font-size: 18px; margin-bottom: 18px; color: #c4c9ee; } .why-head b { color: #fff; } .why-head strong { color: #fff; }
.why-ctl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-weight: 600; font-size: 15px; color: #dfe2ff; align-items: center; }
.why-ctl input { grid-column: 1 / -1; grid-row: 2; width: 100%; accent-color: #8b83ff; height: 28px; }
.why-ctl output { font-weight: 800; color: #fff; background: rgba(255,255,255,.12); padding: 3px 12px; border-radius: 99px; }
.why-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.why-days span { text-align: center; padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: 14px; background: rgba(52,211,153,.18); color: #6ee7b7; border: 1px solid rgba(52,211,153,.4); transition: all .3s; }
.why-days span.off { background: rgba(255,255,255,.04); color: #6b7195; border-color: rgba(255,255,255,.1); text-decoration: line-through; }
.bar { position: relative; height: 14px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: visible; }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, #10b981, #34d399); transition: width .45s cubic-bezier(.2,.8,.2,1), background .3s; }
.bar i.bad { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.bar u { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 3px; background: #fff; box-shadow: 0 0 12px #fff; text-decoration: none; }
.why-nums { display: flex; justify-content: space-between; font-size: 13px; color: #aab0dd; margin-top: 10px; }
.why-out { margin-top: 20px; padding: 16px 18px; border-radius: 16px; font-size: 15px; line-height: 1.55; transition: background .3s, border-color .3s; border: 1px solid; }
.why-out.bad { background: rgba(244,63,94,.14); border-color: rgba(244,63,94,.5); color: #ffd0d8; }
.why-out.ok { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.5); color: #c1f7de; }
.why-out b { color: #fff; display: block; margin-bottom: 4px; font-size: 16px; }

/* ---------- roles ---------- */
.roles { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.role-tabs { display: flex; gap: 6px; padding: 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow-x: auto; }
.role-tabs button { display: inline-flex; align-items: center; gap: 9px; flex: 1; justify-content: center; border: 0; background: transparent; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.role-tabs button:hover { background: var(--surface); }
.role-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #5b52f0, #7c3aed); color: #fff; box-shadow: 0 8px 20px -8px rgba(99, 80, 240, .7); }
.role-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 40px; animation: paneIn .45s ease; }
.role-panel h3 { font-size: 26px; letter-spacing: -.02em; }
.role-panel > div > p { color: var(--ink-2); margin-top: 12px; }
.role-art { border-radius: 20px; padding: 22px; background: linear-gradient(145deg, var(--s0), var(--s4)); display: grid; gap: 10px; align-content: center; }
.role-art .row { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px); }

/* ---------- demo ---------- */
.sec-demo { background: #0a0d1f; color: #fff; overflow: hidden; isolation: isolate; }
.sec-demo .sec-head p { color: #c4c9ee; }
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dcard { position: relative; text-align: start; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(12px); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, box-shadow .3s; overflow: hidden; }
.dcard:hover:not(:disabled) { transform: translateY(-6px); background: rgba(255,255,255,.1); border-color: rgba(165,160,255,.6); box-shadow: 0 24px 50px -20px rgba(99,80,240,.8); }
.dcard:disabled { cursor: progress; opacity: .8; }
.dcard.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); animation: sweep 1s infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dtop { display: flex; align-items: center; gap: 12px; }
.davatar { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; flex: none; box-shadow: 0 8px 18px -6px rgba(0,0,0,.5); }
.dname { font-weight: 700; font-size: 16px; line-height: 1.2; } .dname small { display: block; font-weight: 500; font-size: 12.5px; color: #aab0dd; margin-top: 2px; }
.drole { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); }
.ddesc { font-size: 14.5px; color: #c4c9ee; line-height: 1.5; flex: 1; }
.dgo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: #a5f3fc; }
.dgo .ico { transition: transform .2s; } .dcard:hover .dgo .ico { transform: translateX(4px); }

.dcard.staff-owner .davatar { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.dcard.staff-scheduler .davatar { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.dcard.staff-depthead .davatar { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.dcard.staff-teacher .davatar { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.dcard.staff-viewer .davatar { background: linear-gradient(135deg, #64748b, #94a3b8); }
.dcard.staff-guardian .davatar { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.dcard.staff-student .davatar { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.demo-more { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px; border-radius: 20px; border: 1.5px dashed rgba(255,255,255,.28); color: #c4c9ee; font-size: 14.5px; }
.demo-more b { color: #fff; font-size: 16px; }
.demo-more a { color: #a5f3fc; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.demo-err { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: rgba(244,63,94,.18); border: 1px solid rgba(244,63,94,.5); color: #ffd0d8; text-align: center; }
.signed { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: -20px auto 26px; padding: 12px 18px; border-radius: 16px; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.45); color: #c1f7de; max-width: 760px; }
.signed[hidden] { display: none; }
.signed .ico { color: #34d399; vertical-align: -3px; } .signed-act { display: flex; gap: 8px; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 24px 28px; border-radius: 22px; background: linear-gradient(135deg, rgba(91,82,240,.35), rgba(8,145,178,.25)); border: 1px solid rgba(255,255,255,.18); }
.demo-foot > div:first-child b { display: block; font-size: 19px; } .demo-foot span { color: #c4c9ee; font-size: 15px; }
.demo-foot-act { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { text-align: center; font-size: 13px; color: #8a90b8; margin-top: 22px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; line-height: 1; color: var(--brand-ink); transition: transform .3s, background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--s0); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; }

/* ---------- cta + footer ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: #080b1c; color: #fff; text-align: center; padding: 100px 0; }
.cta p { color: #c4c9ee; font-size: 19px; margin-top: 14px; }
.foot { background: #070918; color: #8a90b8; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.08); }
.foot .brand { color: #fff; font-size: 17px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; } .foot nav a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .window { transform: none; } .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .fc-1 { inset-inline-start: -8px; } .fc-2 { inset-inline-end: -8px; }
  .bento { grid-template-columns: repeat(2, 1fr); } .c-tall { grid-row: auto; } .c-full { display: block; } .c-full .chips { margin-top: 18px; justify-content: flex-start; }
  .how, .two { grid-template-columns: 1fr; gap: 40px; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .play-body { grid-template-columns: 1fr; } .play-side { border-inline-start: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; } .play-side > * { flex: 1 1 260px; }
  .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav-links { position: fixed; inset: 72px 12px auto 12px; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-signin { display: none; }
  .role-panel { grid-template-columns: 1fr; padding: 26px; gap: 26px; }
  .sec { padding: 76px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .bento { grid-template-columns: 1fr; } .c-wide { grid-column: auto; }
  .demo-grid { grid-template-columns: 1fr; }
  #navDemo { display: none; }
  .nav-in { height: 64px; } .brand { font-size: 17px; }
  .nav-links { inset: 64px 12px auto 12px; }
  .fc-2 { display: none; } .fc-1 { top: -30px; inset-inline-start: auto; inset-inline-end: 10px; } .fc-3 { inset-inline-start: 8px; }
  .mini-grid .c { height: 32px; font-size: 11px; }
  .stat { padding: 20px 14px 22px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat:first-child { padding-inline-start: 14px; }
  .play-bar { padding: 14px; } .play-meter { margin-inline-start: 0; }
  .demo-foot { padding: 20px; } .stage { padding: 18px; } .hero-actions .btn-lg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- language switcher, Arabic and right-to-left ---------- */
.lang-btn { border: 1px solid color-mix(in srgb, currentColor 28%, transparent); background: transparent; border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 14px; line-height: 1.4; color: inherit; transition: background .2s; }
.lang-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.ico.flip { transform: scaleX(-1); }
.dcard:hover .dgo .ico.flip { transform: scaleX(-1) translateX(4px); }
:root.tt-wait body { opacity: 0; }
body { transition: opacity .25s; }
.brand span { direction: ltr; unicode-bidi: isolate; }

:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif; }
:root[lang="ar"] body { line-height: 1.85; }
/* Arabic letters join: tracking would break them apart. */
:root[lang="ar"] *, :root[lang="ar"] *::before, :root[lang="ar"] *::after { letter-spacing: 0 !important; }
:root[lang="ar"] .eyebrow, :root[lang="ar"] .drole, :root[lang="ar"] .lvl, :root[lang="ar"] .tt .brk, :root[lang="ar"] .mini-grid .brk { text-transform: none; text-indent: 0; }
:root[lang="ar"] h1 { line-height: 1.25; font-weight: 700; }
:root[lang="ar"] h2 { line-height: 1.3; font-weight: 700; }
:root[lang="ar"] h3 { line-height: 1.5; }
:root[lang="ar"] .stat b { font-family: "Plus Jakarta Sans", var(--font); }
:root[lang="ar"] .btn, :root[lang="ar"] .stat span { line-height: 1.5; }
:root[lang="ar"] .tt .h, :root[lang="ar"] .mini-grid .h { font-size: 12px; letter-spacing: 0; }
:root[lang="ar"] .cell { font-size: 13.5px; }
:root[lang="ar"] .cell small { font-size: 12px; }
[dir="rtl"] .window { transform: rotateY(8deg) rotateX(4deg); }
[dir="rtl"] .hero-visual:hover .window { transform: rotateY(2deg) rotateX(1deg); }
[dir="rtl"] .sel select { background-position: left 12px center; padding: 8px 12px 8px 34px; }
[dir="rtl"] .skip { left: auto; right: -999px; } [dir="rtl"] .skip:focus { right: 8px; }
.lang-btn[lang="en"] { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
@media (max-width: 600px) { .lang-btn { padding: 5px 10px; font-size: 13px; } .nav-cta { gap: 4px; } }
.nav-links a { white-space: nowrap; }
.nav:not(.solid) .btn-ghost { color: #fff; }
.nav:not(.solid) .btn-ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 1120px) { .nav-links a { padding: 8px 9px; font-size: 14px; } .nav-signin { display: none; } }
