/* Kennisor Networks — kennisor.com
   One stylesheet for every page. No external requests: fonts are self-hosted. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(fonts/instrument-sans-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(fonts/instrument-sans-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ink: #16181D;
  --muted: #5A5F69;
  --muted-dark: #A6ABB5;
  --paper: #F4F4F1;
  --white: #FFFFFF;
  --black: #000000;
  --line: #E2E0D8;
  --blue: #3355FF;
  --blue-deep: #1E3BCC;
  --edu: #FFC42E;
  --edu-text: #8A5A00;
  --biz: #F59E0B;
  --biz-text: #B45309;
  --apps: #6E4CF5;
  --ok: #12A150;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.dark { background: var(--black); color: #F5F5F7; }
.warm { background: var(--paper); }

/* Type */
.display {
  margin: 0;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(46px, 8.4vw, 112px);
  text-wrap: balance;
}
.h2 {
  margin: 12px 0 0;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(38px, 6vw, 80px);
  text-wrap: balance;
}
.h2.sm { font-size: clamp(34px, 5vw, 64px); margin: 0; }
.lede { margin: 22px auto 0; max-width: 640px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.dark .lede { color: var(--muted-dark); }
.kicker { margin: 0; font-size: 21px; font-weight: 600; }
.k-edu { color: var(--edu); }
.warm .k-edu, .k-edu.on-light { color: var(--edu-text); }
.k-biz { color: var(--biz-text); }
.muted { color: var(--muted); }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C2F37; color: #fff; }
.btn-ghost { color: var(--blue); padding: 0 18px; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid #DDDACF; padding: 5px 12px; border-radius: 999px;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #9AA0AA); }
.dark .status { background: #1C1D21; color: #F5F5F7; border-color: #3A3D44; }
.s-available { --dot: var(--ok); }
.s-beta { --dot: var(--blue); }
.s-pilot { --dot: var(--biz); }
.s-dev { --dot: #9AA0AA; }
.s-soon { --dot: #C9C5B9; }
.status-row { margin: 22px 0 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(22,24,29,.08);
}
.site-header .wrap { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.nav a:hover { color: var(--blue); }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; }
.nav .btn { min-height: 36px; padding: 0 16px; font-size: 14px; color: #fff; }
@media (max-width: 760px) {
  .nav .line { display: none; }
}

/* Hero */
.hero { padding: 96px 0 0; text-align: center; overflow: hidden; }
.hero .display .soft { color: var(--muted); }
.hero-stage { position: relative; max-width: 1080px; margin: 72px auto 0; padding: 0 24px 64px; }
.panel {
  background: var(--ink); border-radius: 28px; padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(22,24,29,.45); text-align: left;
}
.panel-screen { background: #FBFAF6; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.hero .panel-screen { aspect-ratio: 16 / 9; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid #ECEAE2; }
.panel-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.panel-brand::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--edu); }
.chip { font-size: 13px; color: var(--muted); border: 1px solid #DDDACF; border-radius: 999px; padding: 6px 12px; }
.lessons { flex: 1; padding: 22px 22px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.upnext { margin: 16px 22px 22px; padding: 14px 18px; background: #fff; border: 1px solid #ECEAE2; border-radius: 16px; display: flex; align-items: center; gap: 16px; }
.play.sm { width: 40px; height: 40px; flex: none; }
.upnext-text p { margin: 0; }
.upnext-text .t { font-weight: 600; font-size: 15px; }
.upnext-text .s { font-size: 13px; color: var(--muted); }
.upnext-bar { flex: 1; height: 6px; border-radius: 999px; background: #EFEEE9; overflow: hidden; }
.upnext-bar span { display: block; width: 37%; height: 100%; background: var(--edu); border-radius: 999px; }
.lesson { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.lesson .ico { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.lesson p { margin: 0; }
.lesson .t { font-weight: 600; font-size: 17px; line-height: 1.25; }
.lesson .s { margin-top: 4px; font-size: 13px; color: #4A4F58; }
.bg-y { background: #FFE7A3; } .bg-g { background: #CFE8DA; } .bg-b { background: #D7DFFF; } .bg-o { background: #FFE0D1; }

.phone { background: var(--ink); border-radius: 44px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(22,24,29,.5); text-align: left; }
.phone-screen { background: #fff; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; }
.phone-head { padding: 28px 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #EEE; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.phone-head p { margin: 0; }
.phone-head .n { font-size: 14px; font-weight: 600; }
.phone-head .m { font-size: 11px; color: var(--muted); }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; background: #F6F4EE; font-size: 13px; line-height: 1.4; }
.msg { margin: 0; max-width: 84%; padding: 9px 12px; }
.msg.in { align-self: flex-start; background: #fff; border-radius: 14px 14px 14px 4px; }
.msg.out { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.note { margin: 6px 0 0; align-self: center; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.hero-phone { position: absolute; right: 8px; bottom: 0; width: 250px; }
.hero-phone .phone-screen { height: 470px; }
@media (max-width: 760px) {
  .hero-phone { display: none; }
  .upnext-bar, .upnext .chip { display: none; }
  .lessons { grid-template-columns: 1fr; }
  .hero .panel-screen { aspect-ratio: auto; }
  .lesson { flex-direction: row; align-items: center; justify-content: flex-start; }
}

/* Chapters */
.chapter { padding: 120px 0 128px; }
.chapter.center .wrap > .h2, .chapter.center .lede { margin-left: auto; margin-right: auto; }
.chapter.center .h2 { max-width: 900px; }

/* K12Labs demo */
.demo { max-width: 980px; margin: 64px auto 0; background: #1C1D21; border-radius: 28px; padding: 14px; text-align: left; }
.demo .panel-screen { color: var(--ink); min-height: 420px; }
.tabs { align-self: center; display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 16px 0; padding: 4px; background: #EFEEE9; border-radius: 999px; }
.tab { font: inherit; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; color: var(--ink); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .tab { padding: 0 12px; font-size: 14px; } .tabs { flex-wrap: nowrap; margin: 16px 8px 0; } }
.tabpanel { flex: 1; padding: 24px; }
.tabpanel[hidden] { display: none; }
.watch { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.video { flex: 999 1 380px; aspect-ratio: 16 / 9; border-radius: 16px; background: #FFE7A3; display: flex; align-items: center; justify-content: center; }
.play { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.watch-text { flex: 1 1 220px; }
.watch-text .t { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.watch-text .s { margin: 8px 0 0; font-size: 16px; color: #4A4F58; }
.sims { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sim { border-radius: 16px; padding: 22px; }
.sim .t { margin: 0; font-weight: 700; font-size: 19px; }
.sim .s { margin: 6px 0 0; font-size: 15px; color: #4A4F58; }
.quiz { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-top: 32px; }
.quiz .q { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.answers { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.answer { font: inherit; font-size: 26px; font-weight: 700; width: 92px; height: 92px; border-radius: 22px; cursor: pointer; border: 2px solid #DDDACF; background: #fff; color: var(--ink); transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.answer:active { transform: scale(.96); }
.answer.right { border-color: #0F8A63; background: #DCF5EA; }
.answer.wrong { border-color: #C2410C; background: #FFE6DA; }
.feedback { margin: 0; min-height: 26px; font-size: 17px; font-weight: 600; color: var(--muted); }
.feedback.good { color: #0F6B4F; }
.feedback.bad { color: #B3400B; }

.stats { max-width: 980px; margin: 72px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: left; }
.stat .n { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.stat .l { margin: 6px 0 0; font-size: 16px; color: var(--muted-dark); }

/* Split chapter (Adhita) */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > div { flex: 1 1 380px; min-width: 0; }
.split .h2 { font-size: clamp(36px, 4.6vw, 60px); }
.split .lede { margin-left: 0; }
.eink-wrap { display: flex; justify-content: center; }
.eink { width: min(340px, 100%); background: #4A4C52; border-radius: 30px; padding: 16px 16px 40px; box-shadow: 0 30px 60px -28px rgba(22,24,29,.45); }
.eink-page { background: #E9E8E2; border-radius: 6px; padding: 24px; min-height: 380px; font-family: Georgia, 'Times New Roman', serif; color: #2B2B2B; }
.eink-meta { display: flex; justify-content: space-between; font-family: 'Instrument Sans', sans-serif; font-size: 12px; color: #6B6B6B; }
.eink-page .t { margin: 16px 0 12px; font-size: 21px; font-weight: 700; }
.eink-page .b { margin: 0; font-size: 15px; line-height: 1.7; }
.eink-page .ask { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #C9C7BF; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Kenni Connect */
.connect-row { max-width: 1000px; margin: 64px auto 0; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: center; text-align: left; }
.connect-phone { width: 300px; border-radius: 46px; padding: 11px; }
.connect-phone .phone-screen { border-radius: 36px; height: 560px; }
.connect-phone .chat { font-size: 14px; gap: 10px; padding: 16px 14px; }
.consent { margin-left: auto; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #DCF5EA; color: #0F6B4F; white-space: nowrap; }
.consent.out { background: #E9E7E0; color: #4A4F58; }
.features { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.features h3 { margin: 0; font-size: 21px; font-weight: 700; }
.features p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.features .btn { align-self: flex-start; }
.pop { animation: pop 450ms var(--ease-out) both; }

/* Tiles */
.tiles { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile { border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 14px; background: #fff; transition: transform 350ms var(--ease-out); }
.tile h3 { margin: 8px 0 0; font-size: 34px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.tile p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.tile .status { align-self: flex-start; }
.mini { margin-top: 18px; background: var(--paper); border-radius: 18px; padding: 20px; }
.mini .row { display: flex; justify-content: space-between; gap: 12px; }
.mini p { margin: 0; color: var(--ink); }
.bar-track { margin-top: 14px; height: 8px; border-radius: 999px; background: #E6E3DA; overflow: hidden; }
.bar { width: 58%; height: 100%; border-radius: 999px; background: var(--biz); transform-origin: left; }
.gauge { display: flex; align-items: center; gap: 18px; }

.apps .tile { background: var(--paper); padding: 32px; gap: 12px; }
.apps .tile h3 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.apps .tile p { font-size: 16px; }
.app-visual { margin-top: auto; padding-top: 18px; }
.keys { display: flex; gap: 6px; }
.keys span { width: 36px; height: 42px; border-radius: 9px; background: #fff; box-shadow: 0 1px 0 #D5D2C8; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.keys .hot { background: var(--apps); color: #fff; box-shadow: none; }
.due { display: inline-block; background: var(--apps); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-6px); }
}

/* Principles */
.principles { padding: 128px 0; }
.principles .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.principles h3 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.principles p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted-dark); }

/* Contact */
.contact { padding: 128px 0; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact .wrap > * { flex: 1 1 400px; min-width: 0; }
.contact .h2 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); }
.contact .lede { margin-left: 0; }
.mail { display: inline-block; margin-top: 26px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.5px; }
.form { background: var(--paper); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid #C9C5B9; border-radius: 14px; background: #fff; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); min-height: 20px; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #4A4F58; }

/* Long-form pages (privacy, terms, support) */
.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 0; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; font-stretch: 88%; }
.doc .updated { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 56px 0 0; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; scroll-margin-top: 80px; }
.doc h3 { margin: 28px 0 0; font-size: 19px; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: #2D3038; }
.doc p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.toc { margin: 32px 0 0; padding: 20px 24px; background: var(--paper); border-radius: 18px; }
.toc p { margin: 0; font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.card-list { margin-top: 20px; display: grid; gap: 14px; }
.card { background: var(--paper); border-radius: 18px; padding: 22px 24px; }
.card h3 { margin: 0; }
.card p { margin-top: 6px; }

/* Motion */
@keyframes enter { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: .45; transform: translateY(56px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.in { animation: enter 1100ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.wd { display: inline-block; animation: word 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.bub { animation: pop 500ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  .bar { animation: fill linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .wd, .bub, .reveal, .bar, .pop { animation: none !important; }
  .tile, .btn, .tab, .answer { transition: none; }
}
