/* ===== One-screen home: header, carousel card filling the viewport, slim footer. No page scroll. ===== */
html:has(body.one) { overflow: hidden; }
body.one { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.one .site-header { position: relative; flex: none; }
body.one main { flex: 1; min-height: 0; display: flex; overflow: hidden; }
body.one .sh { flex: 1; min-height: 0; display: flex; padding-top: 8px; }
body.one .sh-wrap { flex: 1; min-height: 0; display: flex; width: 100%; max-width: none; padding-inline: clamp(10px, 1.6vw, 24px); }
body.one .sh-card { flex: 1; min-height: 0; display: flex; }
body.one .sh-slides { flex: 1; min-height: 0; grid-template: 1fr / 1fr; }
body.one .sh-slide { min-height: 0; padding-bottom: clamp(72px, 10vh, 100px); }
body.one .sh-copy { max-width: min(700px, 50%); gap: clamp(10px, 1.6vh, 16px); }
body.one .sh-copy h1, body.one .sh-copy h2 { font-size: clamp(2rem, min(4.2vw, 7.2vh), 4.1rem); }
body.one .sc { top: clamp(20px, 6%, 60px); }

/* slim footer line, like the reference */
.one-foot { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; padding: 10px clamp(16px, 2.4vw, 36px); font-size: .8rem; color: var(--muted); }
.one-links { display: flex; flex-wrap: wrap; gap: 18px; }
.one-foot a { color: inherit; text-decoration: none; }
.one-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* new slide colours */
.sh-slide[data-k="proof"] { --g1: rgba(130, 230, 69, .22); --g2: rgba(255, 162, 0, .16); }
.sh-slide[data-k="start"] { --g1: rgba(255, 162, 0, .22); --g2: rgba(130, 230, 69, .2); }

/* scene: proof tiles */
.sc-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile1 { display: grid; gap: 4px; padding: clamp(14px, 2.2vh, 22px) 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tile1 b { font: 700 clamp(2rem, 5.5vh, 3.2rem)/1 var(--f-display); color: #82e645; letter-spacing: -.03em; }
.tile1 span { font-weight: 600; color: #fff; font-size: .95rem; }
.tile1 em { font-style: normal; font-size: .8rem; color: #9fb3a5; }
.is-on .tile1 { animation: shUp .5s both; }
.is-on .tile1:nth-child(2) { animation-delay: .15s; } .is-on .tile1:nth-child(3) { animation-delay: .3s; } .is-on .tile1:nth-child(4) { animation-delay: .45s; }

/* scene: two ways to start */
.sc-start { display: grid; gap: 12px; }
.opt { display: grid; gap: 10px; padding: clamp(14px, 2.2vh, 22px) 20px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.opt.hot { border-color: rgba(130, 230, 69, .6); box-shadow: 0 0 0 4px rgba(130, 230, 69, .12); }
.opt .k { font: 600 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffb234; }
.opt h3 { margin: 0; color: #fff; font-size: 1.25rem; }
.f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f3 div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.f3 b { font: 700 1.15rem var(--f-display); color: #82e645; }
.f3 span { font-size: .75rem; color: #9fb3a5; }
.is-on .opt { animation: shUp .5s .2s both; } .is-on .opt + .opt { animation-delay: .4s; }

/* phones and tablets: scene stays behind at the top, copy overlays the bottom, still one screen */
@media (max-width: 900px) {
  body.one .sh-slide { justify-content: flex-end; padding: 0 18px 76px; }
  body.one .sh-scene { position: absolute; inset: 0; height: auto; margin: 0; }
  body.one .sh-slide::after { background: linear-gradient(180deg, rgba(6, 11, 8, 0) 25%, rgba(6, 11, 8, .7) 50%, rgba(6, 11, 8, .95) 70%); }
  body.one .sc { top: 16px; left: 16px; right: 16px; transform: scale(.9); transform-origin: top center; }
  body.one .sh-copy { max-width: none; }
  body.one .sh-copy h1, body.one .sh-copy h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  body.one .sh-copy p { font-size: .95rem; }
  body.one .sh-ctrl { bottom: 16px; }
  .one-foot { justify-content: center; text-align: center; padding-block: 8px; font-size: .74rem; }
  .one-links a:not(:first-child) { display: none; }
  .sc-proof .tile1 em { display: none; }
}
@media (max-width: 900px) {
  /* scene fades out before it reaches the headline */
  body.one .sh-scene { -webkit-mask-image: linear-gradient(#000 38%, transparent 58%); mask-image: linear-gradient(#000 38%, transparent 58%); }
  body.one .brand-word { white-space: nowrap; }
}
@media (max-width: 900px) and (max-height: 760px) {
  body.one .sh-copy p, body.one .sh-proof { display: none; }
  body.one .sc { transform: scale(.78); }
  body.one .sh-scene { -webkit-mask-image: linear-gradient(#000 22%, transparent 42%); mask-image: linear-gradient(#000 22%, transparent 42%); }
  body.one .sh-tag { font-size: .66rem; }
}
/* very short screens (landscape phones): fall back to normal scrolling rather than clip content */
@media (max-height: 500px) {
  html:has(body.one), body.one { overflow: auto; height: auto; }
  body.one main, body.one .sh, body.one .sh-wrap, body.one .sh-card { display: block; }
  body.one .sh-slide { min-height: 480px; }
}

/* dark theme: a faint edge so the card does not melt into the dark page */
[data-theme="dark"] body.one .sh-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.one .sh-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); } }

/* slide: health programme form -> live dashboard */
.sh-slide[data-k="health"] { --g1: rgba(130, 230, 69, .2); --g2: rgba(255, 162, 0, .2); }
.sc-health { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.kform, .kdash { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kform .fields li { padding: 10px 12px; font-size: .85rem; }
.kdash { margin-top: 36px; }
.kbar { display: grid; gap: 6px; font-size: .82rem; color: #dfe9d9; }
.kbar i { display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.kbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #82e645, #ffb234); }
.is-on .kbar i::after { animation: kGrow 1s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .kbar:nth-of-type(3) i::after { animation-delay: .2s; } .is-on .kbar:nth-of-type(4) i::after { animation-delay: .4s; }
@keyframes kGrow { from { width: 0; } }
.kdash .hand { justify-self: start; font: 400 .7rem var(--f-mono); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(130, 230, 69, .5); color: #82e645; }
.is-on .kform .fields li { animation: shUp .45s both; }
.is-on .kform .fields li:nth-child(1) { animation-delay: .4s; } .is-on .kform .fields li:nth-child(2) { animation-delay: .7s; } .is-on .kform .fields li:nth-child(3) { animation-delay: 1s; } .is-on .kform .fields li:nth-child(4) { animation-delay: 1.3s; }
.is-on .kdash { animation: shUp .6s 1.4s both; }
@media (max-width: 900px) { .kdash { margin-top: 0; } .kform .fields li { padding: 8px 10px; font-size: .78rem; } }

/* voice scene: English call transcript */
.vt { display: grid; gap: 10px; }
.vt p { margin: 0; padding: 11px 14px; border-radius: 16px; line-height: 1.45; font-size: .95rem; max-width: 92%; }
.vt b { display: block; font: 600 .66rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.vq { justify-self: end; background: rgba(255, 255, 255, .12); color: #eef5ea; border-bottom-right-radius: 4px; }
.vq b { color: #9fb3a5; }
.va { justify-self: start; background: #82e645; color: #102008; border-bottom-left-radius: 4px; font-weight: 500; }
.va b { color: #2b5a12; }
.is-on .vq { animation: shUp .5s .5s both; } .is-on .va { animation: shUp .5s 1.6s both; }
.vmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.vmeta span { font: 500 .7rem var(--f-mono); padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #dfe9d9; }
.vmeta span:last-child { background: rgba(130, 230, 69, .16); color: #82e645; }
.is-on .vmeta span { animation: shUp .4s both; } .is-on .vmeta span:nth-child(1) { animation-delay: 2.2s; } .is-on .vmeta span:nth-child(2) { animation-delay: 2.4s; } .is-on .vmeta span:nth-child(3) { animation-delay: 2.6s; }
.sc-voice .wave { height: 70px; }
@media (max-width: 900px) {
  .sc-voice .wave { display: none; }
  .sc-voice .call { gap: 10px; padding: 14px; }
  .sc-voice .vmeta, .sc-voice .hand { display: none; }
  .vt p { font-size: .8rem; padding: 7px 10px; }
}

/* voice scene: supported-language tags */
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchips span { font: 500 .7rem var(--f-mono); padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #dfe9d9; }
.lchips span:first-child { background: rgba(130, 230, 69, .2); color: #82e645; box-shadow: 0 0 0 1px rgba(130, 230, 69, .5); }
.is-on .lchips span { animation: shUp .35s both; }
.is-on .lchips span:nth-child(2) { animation-delay: .1s; } .is-on .lchips span:nth-child(3) { animation-delay: .2s; } .is-on .lchips span:nth-child(4) { animation-delay: .3s; } .is-on .lchips span:nth-child(5) { animation-delay: .4s; } .is-on .lchips span:nth-child(6) { animation-delay: .5s; } .is-on .lchips span:nth-child(7) { animation-delay: .6s; } .is-on .lchips span:nth-child(8) { animation-delay: .7s; }
@media (max-width: 900px) { .sc-voice .lchips span:nth-child(n+5):not(:last-child) { display: none; } }
@media (max-width: 900px) { .sc-voice .vq { display: none; } .sc-voice .call-top { display: none; } }

/* ===== Carousel upgrade: verified case metrics, demos ===== */
.sh-kpis { display: grid; gap: 8px; }
.sh-kpis .kl { font: 600 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sh-kpis .kr { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-kpis .kr div { display: grid; gap: 2px; min-width: 104px; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sh-kpis b { font: 700 clamp(1.15rem, 2.6vh, 1.45rem)/1.1 var(--f-display); color: #82e645; letter-spacing: -.02em; }
.sh-kpis .kr span { font-size: .76rem; color: rgba(255, 255, 255, .78); }

/* proof tiles: industry label on top */
.tile1 em { order: -1; font: 600 .66rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffb234; }

/* sprint deliverables */
.deliv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.deliv li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .84rem; color: #eef5ea; }
.deliv b { font: 600 .7rem var(--f-mono); color: #82e645; }
.is-on .deliv li { animation: shUp .4s both; }
.is-on .deliv li:nth-child(2) { animation-delay: .5s; } .is-on .deliv li:nth-child(3) { animation-delay: .7s; } .is-on .deliv li:nth-child(4) { animation-delay: .9s; }

/* demo controls: question chips and language buttons */
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qchips button, .lchips button { font: 500 .72rem var(--f-mono); padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #eef5ea; cursor: pointer; transition: background .2s, border-color .2s; }
.qchips button:hover, .lchips button:hover { border-color: rgba(130, 230, 69, .7); }
.qchips button.on, .lchips button.on { background: rgba(130, 230, 69, .2); border-color: rgba(130, 230, 69, .7); color: #82e645; }
.qchips button:focus-visible, .lchips button:focus-visible { outline: 2px solid #82e645; outline-offset: 2px; }
.lchips span { font: 500 .7rem var(--f-mono); padding: 6px 9px; color: #9fb3a5; }
.lchips span:first-child { background: none; box-shadow: none; }
.chat-top b, .call-top b { color: #82e645; font-weight: 600; }
.swap { animation: shUp .35s both !important; }

@media (max-width: 900px) {
  body.one .sh-kpis .kr div { min-width: 0; flex: 1 1 0; padding: 7px 9px; }
  body.one .sh-kpis .kr span { font-size: .68rem; }
  .qchips { display: none; }
  .deliv li { font-size: .74rem; padding: 6px 8px; grid-template-columns: 56px 1fr; }
}
@media (max-width: 900px) and (max-height: 760px) { body.one .sh-kpis .kl { display: none; } }
@media (max-width: 900px) { .sc-voice .lchips button:nth-child(n+5) { display: none; } }
/* phones: shorter copy, and the scene fades out exactly where each slide's copy begins (--ct set by onescreen.js) */
@media (max-width: 900px) {
  body.one .sh-copy p, body.one .sh-kpis .kl { display: none; }
  body.one .sh-scene { -webkit-mask-image: linear-gradient(#000 calc(var(--ct, 50%) - 48px), transparent var(--ct, 50%)); mask-image: linear-gradient(#000 calc(var(--ct, 50%) - 48px), transparent var(--ct, 50%)); }
}

/* slide: education - adaptive reading practice + teacher dashboard */
.sh-slide[data-k="edu"] { --g1: rgba(255, 162, 0, .2); --g2: rgba(130, 230, 69, .2); }
.sc-edu { display: grid; gap: 14px; }
.tab, .tdash { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.read { margin: 0; font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.5 var(--f-display); color: rgba(255, 255, 255, .45); }
.read span { transition: color .3s; }
.is-on .read span { animation: readOn .3s both; }
.is-on .read span:nth-child(1) { animation-delay: .4s; } .is-on .read span:nth-child(2) { animation-delay: .7s; } .is-on .read span:nth-child(3) { animation-delay: 1s; } .is-on .read span:nth-child(4) { animation-delay: 1.3s; }
.is-on .read span:nth-child(5) { animation-delay: 1.6s; } .is-on .read span:nth-child(6) { animation-delay: 1.9s; } .is-on .read span:nth-child(7) { animation-delay: 2.2s; } .is-on .read span:nth-child(8) { animation-delay: 2.5s; }
@keyframes readOn { to { color: #fff; } }
.read .hard { text-decoration: underline wavy #ffb234; text-underline-offset: 6px; }
.lvl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font: 500 .7rem var(--f-mono); color: #9fb3a5; }
.lvl i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.lvl i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 72%; border-radius: inherit; background: linear-gradient(90deg, #82e645, #ffb234); }
.is-on .lvl i::after { animation: kGrow 1.4s .6s cubic-bezier(.2, .8, .2, 1) both; }
.kid { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; font-size: .8rem; color: #dfe9d9; }
.kid i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.kid i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: #82e645; }
.kid.flag i::after { background: #ffb234; }
.kid em { font: normal 500 .66rem var(--f-mono); padding: 3px 8px; border-radius: 999px; background: rgba(255, 178, 52, .18); color: #ffb234; }
.is-on .kid i::after { animation: kGrow 1s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .tdash { animation: shUp .6s 1s both; }
@media (max-width: 900px) { .sc-edu .tdash { display: none; } }
@media (prefers-reduced-motion: reduce) { .read span { color: #fff; } }

/* document-type demo chips */
.sc-doc { grid-template-areas: "paper fields" "chips chips"; }
.sc-doc .paper { grid-area: paper; } .sc-doc .fields { grid-area: fields; }
.dchips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; }
.dchips button { font: 500 .72rem var(--f-mono); padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #eef5ea; cursor: pointer; transition: background .2s, border-color .2s; }
.dchips button:hover { border-color: rgba(130, 230, 69, .7); }
.dchips button.on { background: rgba(130, 230, 69, .2); border-color: rgba(130, 230, 69, .7); color: #82e645; }
.dchips button:focus-visible { outline: 2px solid #82e645; outline-offset: 2px; }
@media (max-width: 900px) { .dchips { display: none; } }

/* Hero team labels */
body.one .sh-kpis .kr.team div { min-width: 0; flex: 0 1 auto; padding: 8px 12px; }
body.one .sh-kpis .kr.team b { font-size: .92rem; letter-spacing: 0; }
