/* ב-164: sakrani.io's home page for school staff (web/home/index.html), after the owner's prototype. */
:root {
  color-scheme: light;
  --teal: #237f8c; --teal-deep: #1d6b77; --teal-ink: #0f3b43;
  --navy: #12163a; --navy-3: #2a3180;
  --amber: #ff9f1c; --coral: #c0442f; --grape: #5a46c0; --leaf: #157a4b;
  --paper: #f7f4ee; --edge: #e7ddcc; --edge-2: #e3e6ef;
  --ink: #182230; --ink-dim: #4f5865;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Rubik, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.55; overflow-x: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
section { padding-block: 46px; }
.narrow { max-width: 660px; }
.center { text-align: center; margin-inline: auto; }
.h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin-top: 14px; }
.lead2 { color: var(--ink-dim); margin-top: 8px; max-width: 58ch; font-size: 1.05rem; }
.kicker { display: inline-flex; gap: 8px; font-weight: 700; font-size: .82rem; color: var(--teal-ink); background: #e2f0f0; border-radius: 999px; padding: 6px 13px; }
.btn { font-weight: 800; font-size: 1.02rem; border: 0; border-radius: 12px; padding: 14px 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-amber { background: var(--amber); color: #2e1b00; box-shadow: 0 10px 22px rgba(255, 159, 28, .28); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-teal { background: var(--teal); color: #fff; }
.wide { width: 100%; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(18, 22, 58, .94); border-bottom: 1px solid rgba(255, 255, 255, .08); padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 11px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.22rem; }
.brand img { border-radius: 10px; }
.login { background: var(--teal); color: #fff; font-weight: 800; border-radius: 999px; padding: 10px 20px; text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; color: #eef1ff; background: radial-gradient(120% 70% at 92% -10%, #243a8f 0%, rgba(36, 58, 143, 0) 55%), radial-gradient(90% 60% at 0% 0%, #103240 0%, rgba(16, 50, 64, 0) 52%), var(--navy); }
.hero > .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding-block: 40px 56px; }
@media (max-width: 860px) { .hero > .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.4rem); color: #fff; font-weight: 900; margin-bottom: 14px; }
.lede { font-size: 1.12rem; color: #d3d7f5; max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .3; }
.b1 { width: 340px; height: 340px; top: -150px; inset-inline-start: -130px; background: radial-gradient(circle, rgba(47, 143, 157, .6), transparent 70%); }
.b2 { width: 400px; height: 400px; bottom: -200px; inset-inline-end: -140px; background: radial-gradient(circle, rgba(122, 108, 240, .5), transparent 70%); }
.b3 { width: 240px; height: 240px; top: -80px; inset-inline-end: -80px; background: radial-gradient(circle, rgba(255, 159, 28, .42), transparent 70%); }
.qmark { position: absolute; font-weight: 900; color: rgba(143, 227, 214, .14); font-size: clamp(140px, 26vw, 240px); line-height: 1; top: 8%; inset-inline-end: 5%; }
.ring { position: absolute; border-radius: 50%; border: 2px solid rgba(143, 227, 214, .3); width: 120px; height: 120px; top: 16%; inset-inline-start: 7%; }
.dotp { position: absolute; border-radius: 50%; }
.d1 { width: 16px; height: 16px; background: var(--amber); opacity: .75; top: 62%; inset-inline-start: 16%; }
.d2 { width: 11px; height: 11px; background: #22bf8a; opacity: .75; top: 28%; inset-inline-end: 13%; }

/* phone with a real video */
.phone { justify-self: center; margin: 0 auto; width: min(300px, 82vw); aspect-ratio: 300 / 610; background: #05070f; border-radius: 40px; padding: 11px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 2px #2a2f55; }
@media (prefers-reduced-motion: no-preference) { .hero .phone { animation: float 6s ease-in-out infinite; } }
@keyframes float { 50% { transform: translateY(-10px); } }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: #0c1526; }
.appcard { position: absolute; inset: 0; overflow: hidden; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
@media (prefers-reduced-motion: no-preference) { .playing .reel { animation: ken 22s ease-in-out infinite alternate; } }
@keyframes ken { from { transform: scale(1.04); } to { transform: scale(1.18) translate(2%, -3%); } }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 20, .5) 0%, rgba(5, 10, 20, 0) 24%, rgba(5, 10, 20, 0) 52%, rgba(5, 10, 20, .9) 100%); }
.tap { position: absolute; inset: 0; z-index: 6; background: transparent; border: 0; border-radius: 30px; }
.tap:focus-visible { outline-offset: -4px; } /* inside: the phone's frame clips what's outside */
.pausedov { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; z-index: 5; pointer-events: none; }
.pausedov svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.playing .pausedov { display: none; }
.subs { position: absolute; bottom: 92px; inset-inline: 12px; z-index: 4; text-align: center; pointer-events: none; }
.subs span { background: rgba(0, 0, 0, .66); color: #fff; font-weight: 600; font-size: .86rem; line-height: 1.5; padding: 2px 7px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.info { position: absolute; bottom: 30px; inset-inline-start: 14px; inset-inline-end: 72px; z-index: 4; pointer-events: none; }
.meta { display: flex; align-items: center; gap: 7px; color: #fff; font-size: .74rem; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22bf8a; flex: none; }
.title { color: #fff; font-size: 1.1rem; font-weight: 800; margin-top: 3px; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.rail { position: absolute; bottom: 30px; inset-inline-end: 8px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font-weight: 600; font-size: .6rem; }
.rbtn svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(255, 209, 102, .3); }
.rbtn.game svg { background: #ffd166; color: #2a1400; }
.rbtn.flip svg { transform: rotate(180deg); }
.rbtn small { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.progress { position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: rgba(255, 255, 255, .22); z-index: 5; }
.fill { height: 100%; width: 0; background: #ffd166; }
.phone-cap { text-align: center; color: #c9cdf0; font-size: .88rem; margin-top: 14px; }
.light .phone-cap { color: var(--ink-dim); }
.credit { text-align: center; color: #b9bee6; font-size: .74rem; margin-top: 4px; }

/* sources */
.sources { background: #0e1230; color: #d3d7f5; padding: 0; }
.sources .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding-block: 16px; }
.sources b { color: #fff; font-size: .9rem; }
.src { font-size: .82rem; font-weight: 600; color: #d8f2ee; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 13px; }

.light { background: var(--paper); }
.light.alt { background: #fff; }

/* interview */
.iv { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
@media (max-width: 820px) { .iv { grid-template-columns: 1fr; } }
.chat { background: #fff; border: 1px solid var(--edge); border-radius: 22px; padding: 16px; box-shadow: 0 16px 40px rgba(20, 40, 60, .08); max-width: 460px; width: 100%; justify-self: center; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 6px 6px 14px; border-bottom: 1px solid var(--edge-2); }
.ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-head small { color: var(--leaf); font-weight: 700; display: block; font-size: .8rem; }
.stream { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px; min-height: 150px; }
.bub { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .96rem; line-height: 1.5; }
.bub.me { align-self: flex-start; background: var(--teal); color: #fff; border-bottom-right-radius: 5px; }
.bub.them { align-self: flex-end; background: #f0f2f7; color: var(--ink); border-bottom-left-radius: 5px; }
.bub .who { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-dim); }
.asks { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; }
.ask { border: 1.5px solid var(--teal); color: var(--teal-ink); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; text-align: start; }
.ask[aria-pressed='true'] { background: #e2f0f0; }

/* activities */
.acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 760px) { .acts { grid-template-columns: 1fr; } }
.act { background: #fff; border: 1px solid var(--edge); border-radius: 20px; padding: 20px; }
.tag { display: inline-flex; gap: 7px; font-weight: 700; font-size: .8rem; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.t-quiz { background: #e6efff; color: #24509c; }
.t-deep { background: #e3f5ec; color: #12603f; }
.t-class { background: #efe9ff; color: #4b2a9c; }
/* The class quiz's carousel (the owner, 29.10): screenshots of the real quiz, one at a time. */
.qz { margin-top: 18px; text-align: center; }
.qz .car-slide figcaption { text-align: start; }
.qz .car { max-width: 820px; margin-inline: auto; }
.qz-sub { color: var(--ink-dim); font-size: .96rem; margin-bottom: 14px; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.car-pic { aspect-ratio: 16 / 9; background: #1d1b3a; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.car-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-slide figcaption { margin-top: 10px; color: var(--ink); font-size: .98rem; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--teal); background: #fff; color: var(--teal-ink); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-dots { display: flex; gap: 4px; }
.car-dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #c9ced8; }
.car-dot[aria-current='true']::before { background: var(--teal); width: 12px; height: 12px; }
@media (prefers-reduced-motion: no-preference) { .car-track { scroll-behavior: smooth; } }
.act h3 { font-size: 1.1rem; margin-bottom: 8px; }
.opt { display: block; width: 100%; text-align: start; background: #f7f8fb; color: var(--ink); border: 1.5px solid var(--edge-2); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-top: 9px; font-size: .96rem; }
.opt.ok { background: #e6f7ee; border-color: var(--leaf); color: #0f5232; }
.opt.no { background: #fdeceb; border-color: var(--coral); color: #8f2a20; }
.fb { margin-top: 12px; font-weight: 700; font-size: .94rem; min-height: 1.2em; }
.fb.ok { color: var(--leaf); }
.fb.no { color: var(--coral); }
.deep-q { background: #f1faf5; border: 1px dashed var(--leaf); border-radius: 14px; padding: 16px; font-weight: 600; color: #12603f; }

/* teacher */
.tfeat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; padding: 0; margin: 30px auto 0; max-width: 900px; }
@media (max-width: 760px) { .tfeat { grid-template-columns: 1fr; } }
.tfeat li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.tfeat .d { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; background: #e2f0f0; }
.tfeat b { font-size: 1.04rem; }
.tfeat p { color: var(--ink-dim); font-size: .96rem; }

/* packs */
.pack-show { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; margin-top: 30px; }
@media (max-width: 860px) { .pack-show { grid-template-columns: 1fr; } }
.pack-card { background: #fff; border: 1px solid var(--edge); border-radius: 22px; padding: 24px; box-shadow: 0 16px 40px rgba(20, 40, 60, .08); }
.pack-badge { display: inline-block; font-weight: 700; font-size: .8rem; color: var(--grape); background: #efebff; border-radius: 999px; padding: 6px 13px; }
.pack-name { font-size: 1.3rem; margin: 12px 0 16px; color: var(--teal-ink); }
.pack-list { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 8px; }
.pack-list li { counter-increment: p; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; color: var(--ink); font-size: .96rem; }
.pack-list li::before { content: counter(p); font-weight: 800; color: var(--grape); font-size: .78rem; background: #efebff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.pack-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--edge-2); color: var(--ink-dim); font-size: .92rem; }

/* trust, call to action, footer */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 600px; margin-inline: auto; }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }
.tc { background: #fff; border: 1px solid var(--edge); border-radius: 16px; padding: 18px; }
.tc .ic { font-size: 1.4rem; margin-bottom: 8px; }
.tc h3 { font-size: 1.02rem; }
.tc p { color: var(--ink-dim); font-size: .9rem; margin-top: 4px; }
.cta { background: linear-gradient(135deg, var(--teal-deep) 0%, var(--navy-3) 120%); color: #fff; border-radius: 28px; padding: 48px 24px; text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.cta p { margin: 12px auto 24px; max-width: 48ch; }
.foot { padding-block: 32px; text-align: center; color: var(--ink-dim); font-size: .9rem; border-top: 1px solid var(--edge); }
.foot img { border-radius: 9px; margin: 0 auto 8px; }
.foot .links { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* the form */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 30, .6); display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 30px 26px 26px; width: 100%; max-width: 460px; position: relative; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); max-height: 90vh; overflow-y: auto; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; border: 0; background: #eef0f6; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; }
.modal-h { font-size: 1.4rem; color: var(--teal-ink); }
.modal-sub { color: var(--ink-dim); margin-top: 6px; font-size: .96rem; }
.modal-sub.small { font-size: .82rem; }
#lead-form { display: grid; gap: 12px; margin-top: 18px; }
#lead-form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
#lead-form input, #lead-form select { font: inherit; font-size: 1rem; border: 1.5px solid #9aa3b5; border-radius: 12px; padding: 11px 13px; width: 100%; color: var(--ink); background: #fff; }
.lf { border: 0; margin: 0; padding: 0; }
.lf-label { font-weight: 700; font-size: .92rem; margin-bottom: 7px; padding: 0; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rolec { border: 1.5px solid #9aa3b5; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; }
.rolec[aria-pressed='true'] { border-color: var(--teal); background: #e2f0f0; color: var(--teal-ink); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.l-err { color: var(--coral); font-weight: 700; font-size: .9rem; }
.lead-done { text-align: center; padding: 8px 0; }
.done-ic { width: 56px; height: 56px; border-radius: 50%; background: #e6f7ee; color: var(--leaf); font-size: 1.6rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }
.lead-done .btn { margin-top: 18px; }

.rv { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; }
@media (prefers-reduced-motion: no-preference) { .js .rv { opacity: .001; transform: translateY(22px); } .js .rv.in { opacity: 1; transform: none; } }

/* The owner, 2.11 (after a reference): a strip of what a school checks first, the teacher's screens,
   and the questions schools ask. */
.truststrip { background: #fff; border-bottom: 1px solid var(--edge); }
.truststrip ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding-block: 14px; font-weight: 600; font-size: .95rem; color: var(--teal-ink); }
.truststrip li { display: inline-flex; gap: 6px; align-items: center; }
.shots { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 22px; max-width: 1080px; margin: 34px auto 0; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; background: #fff; border: 1px solid var(--edge); border-radius: 18px; padding: 10px; box-shadow: 0 14px 34px rgba(18, 22, 58, .10); }
.shots img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: top; border-radius: 10px; }
.shots figcaption { margin-top: 8px; font-weight: 600; text-align: center; }
.shots-note { grid-column: 1 / -1; text-align: center; color: var(--ink-dim); font-size: .85rem; margin: 0; }
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { background: #fff; border: 1px solid var(--edge); border-radius: 14px; padding: 4px 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--coral); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; color: var(--ink-dim); }
