:root {
  --ks-ink: #111113;
  --ks-muted: #62646a;
  --ks-line: #dedfe2;
  --ks-paper: #f7f7f5;
  --ks-white: #ffffff;
  --ks-doctor: #3548ba;
  --ks-reception: #cf403e;
  --ks-patient: #17835f;
  --ks-role: var(--ks-doctor);
  --ks-width: 1280px;
}

.ks-site,
.ks-site * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.ks-site {
  position: relative;
  z-index: 2;
  color: var(--ks-ink);
  background: var(--ks-paper);
  font-family: Inter, Arial, sans-serif;
  overflow: hidden;
}

/* Keep the global support button below this section's sticky role control. */
.support-fab {
  z-index: 9;
}

body.ks-role-nav-active .support-fab {
  top: auto;
  bottom: 22px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  body.ks-role-nav-active .support-fab {
    right: 14px;
    bottom: 14px;
    opacity: 0;
    pointer-events: none;
  }
}

.ks-site button,
.ks-site a {
  font: inherit;
}

.ks-site button {
  color: inherit;
}

.ks-role-hub,
.ks-device-section,
.ks-growth-section,
.ks-start-section {
  position: relative;
  padding: 112px max(24px, calc((100% - var(--ks-width)) / 2));
}

.ks-role-hub {
  padding-top: 120px;
  background:
    linear-gradient(rgba(17, 17, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 19, .035) 1px, transparent 1px),
    #f7f7f5;
  background-size: 80px 80px;
}

.ks-role-hub::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 280px;
  background: linear-gradient(#f7f7f5 16%, rgba(247, 247, 245, 0));
  pointer-events: none;
}

.ks-intro,
.ks-growth-head,
.ks-start-copy {
  position: relative;
  max-width: 780px;
}

.ks-eyebrow,
.ks-role-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #52545a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.ks-eyebrow::before,
.ks-role-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.ks-intro h2,
.ks-device-copy h2,
.ks-growth-head h2,
.ks-start-copy h2,
.ks-contact h2 {
  margin: 0;
  color: var(--ks-ink);
  font-size: 54px;
  font-weight: 780;
  line-height: 1.05;
}

.ks-intro > p,
.ks-device-copy > p,
.ks-growth-head > p,
.ks-start-copy > p,
.ks-contact-copy > p {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--ks-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* Role selector */
.ks-role-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--ks-width);
  margin-top: 58px;
}

.ks-role-tab {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 14px 18px;
  min-height: 186px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #d7d8dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.ks-role-tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--tab-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.ks-role-tab[data-ks-role="doctor"] { --tab-color: var(--ks-doctor); }
.ks-role-tab[data-ks-role="reception"] { --tab-color: var(--ks-reception); }
.ks-role-tab[data-ks-role="patient"] { --tab-color: var(--ks-patient); }

.ks-role-tab:hover {
  transform: translateY(-3px);
  border-color: #bfc1c6;
  box-shadow: 0 16px 40px rgba(17, 17, 19, .08);
}

.ks-role-tab:hover::after,
.ks-role-tab.is-active::after {
  transform: scaleX(1);
}

.ks-role-tab.is-active {
  border-color: var(--tab-color);
  background: #fff;
  box-shadow: 0 22px 54px rgba(17, 17, 19, .11);
}

.ks-role-tab:focus-visible {
  outline: 3px solid rgba(53, 72, 186, .24);
  outline-offset: 3px;
}

.ks-tab-number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #a2a4aa;
  font-size: 11px;
  font-weight: 800;
}

.ks-tab-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--tab-color);
  background: color-mix(in srgb, var(--tab-color) 10%, white);
  font-size: 15px;
  font-weight: 800;
}

.ks-tab-copy {
  align-self: end;
  min-width: 0;
  padding-top: 26px;
}

.ks-tab-copy b {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.ks-tab-copy small {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #6d6f75;
  font-size: 13px;
  line-height: 1.45;
}

.ks-tab-action {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  grid-column: 2;
  padding-top: 13px;
  border-top: 1px solid #ececef;
  color: #54565c;
  font-size: 12px;
  font-weight: 700;
}

.ks-tab-action i {
  color: var(--tab-color);
  font-size: 19px;
  font-style: normal;
  transition: transform .25s ease;
}

.ks-role-tab:hover .ks-tab-action i,
.ks-role-tab.is-active .ks-tab-action i {
  transform: translateX(3px);
}

/* Shared role panel */
.ks-role-stage {
  --ks-role: var(--ks-doctor);
  position: relative;
  max-width: var(--ks-width);
  min-height: 680px;
  margin-top: 34px;
  border: 1px solid #d9dade;
  border-radius: 8px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 28px 80px rgba(17, 17, 19, .09);
  transition: border-color .3s ease;
}

.ks-role-stage[data-active-role="reception"] { --ks-role: var(--ks-reception); }
.ks-role-stage[data-active-role="patient"] { --ks-role: var(--ks-patient); }

.ks-stage-signal {
  position: absolute;
  top: -35px;
  left: 0;
  width: 33.333%;
  height: 35px;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1);
}

.ks-role-stage[data-active-role="reception"] .ks-stage-signal { transform: translateX(100%); }
.ks-role-stage[data-active-role="patient"] .ks-stage-signal { transform: translateX(200%); }

.ks-stage-signal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 27px;
  background: var(--ks-role);
}

.ks-stage-signal i {
  position: absolute;
  bottom: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ks-role);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ks-role) 12%, transparent);
}

.ks-role-panel {
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(600px, 1.45fr);
  gap: 54px;
  align-items: center;
  min-height: 680px;
  padding: 52px;
}

.ks-role-panel[hidden] {
  display: none;
}

.ks-role-panel.is-entering {
  animation: ks-panel-in .42s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes ks-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ks-role-label {
  color: var(--ks-role);
}

.ks-panel-copy h3 {
  max-width: 500px;
  margin: 0;
  color: #111113;
  font-size: 39px;
  font-weight: 760;
  line-height: 1.08;
}

.ks-panel-copy > p:not(.ks-result) {
  max-width: 510px;
  margin: 20px 0 0;
  color: #5e6066;
  font-size: 16px;
  line-height: 1.65;
}

.ks-benefit-list {
  margin-top: 30px;
  border-top: 1px solid #e2e3e6;
}

.ks-benefit-list > div {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #e2e3e6;
}

.ks-benefit-list span {
  padding-top: 2px;
  color: var(--ks-role);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ks-benefit-list b {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.ks-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #55575d;
  font-size: 13px;
  line-height: 1.4;
}

.ks-result i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ks-role);
}

.ks-result b {
  color: #191a1d;
}

/* Product demonstrations */
.ks-demo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #23252a;
  border-radius: 8px;
  background: #111216;
  color: white;
  box-shadow: 0 26px 60px rgba(17, 17, 19, .24);
}

.ks-demo-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #c9cbd1;
  font-size: 12px;
}

.ks-demo-bar > b {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .14);
  color: white;
}

.ks-demo-bar > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.ks-demo-bar > span:last-child > i,
.ks-ops-action > span i,
.ks-tracker-head b i,
.ks-private i,
.ks-phone-update i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fdb9e;
  box-shadow: 0 0 0 4px rgba(79, 219, 158, .1);
}

.ks-mini-logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.ks-mini-logo i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7786ec;
}

.ks-fiction {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: rgba(255, 255, 255, .38);
  font-size: 9px;
}

/* Doctor demo */
.ks-doctor-screen {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 500px;
}

.ks-doctor-screen > aside {
  padding: 22px 12px;
  border-right: 1px solid rgba(255, 255, 255, .09);
  background: #0b0c0f;
}

.ks-doctor-screen > aside > small {
  display: block;
  padding: 0 8px 12px;
  color: #696c75;
  font-size: 9px;
  font-weight: 800;
}

.ks-doctor-screen > aside > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin-bottom: 6px;
  padding: 10px 8px;
  border-radius: 6px;
  color: #8d9098;
}

.ks-doctor-screen > aside > div.active {
  color: #fff;
  background: #1b1e2d;
}

.ks-doctor-screen aside em {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #252731;
  color: #cfd2da;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.ks-doctor-screen aside .active em {
  background: var(--ks-doctor);
  color: white;
}

.ks-doctor-screen aside span,
.ks-doctor-screen aside b,
.ks-doctor-screen aside small {
  display: block;
  min-width: 0;
}

.ks-doctor-screen aside b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-doctor-screen aside div small {
  margin-top: 3px;
  color: #70737c;
  font-size: 8px;
}

.ks-doctor-screen > section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 26px 38px;
  background: #f4f4f2;
  color: #17181b;
}

.ks-doctor-screen section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ks-doctor-screen header small,
.ks-doctor-screen header h4,
.ks-doctor-screen header p {
  display: block;
  margin: 0;
}

.ks-doctor-screen header small {
  color: #8a8d94;
  font-size: 8px;
  font-weight: 800;
}

.ks-doctor-screen header h4 {
  margin-top: 5px;
  font-size: 19px;
}

.ks-doctor-screen header p {
  margin-top: 4px;
  color: #777980;
  font-size: 9px;
}

.ks-doctor-screen header strong {
  padding: 8px 10px;
  border: 1px solid #dfe0e3;
  border-radius: 5px;
  background: white;
  font-size: 9px;
}

.ks-doctor-screen nav {
  display: flex;
  gap: 20px;
  margin-top: 23px;
  border-bottom: 1px solid #dadbde;
  color: #8c8e94;
  font-size: 9px;
  white-space: nowrap;
}

.ks-doctor-screen nav > * {
  padding-bottom: 10px;
}

.ks-doctor-screen nav b {
  border-bottom: 2px solid var(--ks-doctor);
  color: #16171a;
}

.ks-doctor-cards {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 10px;
  margin-top: 16px;
}

.ks-doctor-cards > div {
  min-height: 133px;
  padding: 15px;
  border: 1px solid #e0e1e3;
  border-radius: 6px;
  background: white;
}

.ks-doctor-cards small {
  color: #93959b;
  font-size: 7px;
  font-weight: 800;
}

.ks-doctor-cards p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.ks-doctor-cards p span {
  padding: 7px 8px;
  border-radius: 4px;
  background: #f1f2f5;
  color: #73757b;
  font-size: 8px;
}

.ks-doctor-cards > div:nth-child(2) p {
  display: grid;
  gap: 4px;
}

.ks-doctor-cards > div:nth-child(2) p b { font-size: 10px; }
.ks-doctor-cards > div:nth-child(2) p span { padding: 0; background: transparent; }
.ks-doctor-cards strong { font-size: 10px; }

.ks-doctor-screen section > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #dedfe2;
  color: #7b7d83;
  font-size: 8px;
}

.ks-doctor-screen footer button,
.ks-ops-action button {
  border: 0;
  border-radius: 5px;
  color: white;
  background: var(--ks-doctor);
  font-size: 9px;
  font-weight: 750;
}

.ks-doctor-screen footer button { padding: 10px 13px; }

/* Reception demo */
.ks-reception-demo {
  min-height: 500px;
  background: #f4f4f2;
  color: #17181b;
}

.ks-reception-demo .ks-demo-bar {
  color: #66686f;
  background: #111216;
}

.ks-reception-demo .ks-demo-bar > b,
.ks-reception-demo .ks-mini-logo { color: white; }

.ks-ops-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 20px;
  overflow: hidden;
  border: 1px solid #dedfe2;
  border-radius: 6px;
  background: #dedfe2;
}

.ks-ops-summary > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: white;
}

.ks-ops-summary small {
  color: #8a8c92;
  font-size: 7px;
  font-weight: 800;
}

.ks-ops-summary b { font-size: 17px; }

.ks-queue-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 13px;
}

.ks-queue-title b { font-size: 13px; }

.ks-queue-title span {
  color: #85878e;
  font-size: 9px;
}

.ks-queue-table {
  margin: 0 20px;
  border-top: 1px solid #dfe0e2;
  border-bottom: 1px solid #dfe0e2;
}

.ks-queue-table > div {
  display: grid;
  grid-template-columns: 58px minmax(110px, 1.35fr) .7fr .65fr .9fr;
  gap: 12px;
  align-items: center;
  min-height: 55px;
  border-bottom: 1px solid #e5e5e7;
  font-size: 9px;
}

.ks-queue-table > div:last-child { border-bottom: 0; }

.ks-queue-table > .head {
  min-height: 32px;
  color: #8a8c92;
  font-size: 7px;
  font-weight: 800;
}

.ks-queue-table .token {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: white;
  background: #1a1b1f;
  font-weight: 800;
}

.ks-queue-table i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 20px;
  border-radius: 3px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.ks-queue-table i.new { color: #1e49a2; background: #e7edff; }
.ks-queue-table i.fu { color: #8b4a17; background: #fff0df; }
.ks-queue-table i.ffu { color: #11714f; background: #ddf7eb; }

.ks-queue-table em {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 3px;
  color: #5b5d64;
  background: #e9eaec;
  font-style: normal;
}

.ks-ops-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 20px 38px;
}

.ks-ops-action > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66686e;
  font-size: 9px;
}

.ks-ops-action button {
  padding: 10px 14px;
  background: var(--ks-reception);
}

.ks-reception-demo .ks-fiction { color: #97999f; }

/* Patient tracker demo */
.ks-patient-demo {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 250px;
  gap: 28px;
  align-items: center;
  min-height: 530px;
  padding: 38px 36px;
  background: #0b1210;
}

.ks-tracker-context {
  align-self: stretch;
  padding: 6px 0;
}

.ks-tracker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #777f7c;
  font-size: 9px;
  font-weight: 800;
}

.ks-tracker-head b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #70d8af;
  font-size: 9px;
}

.ks-current-token {
  margin-top: 28px;
}

.ks-current-token small {
  display: block;
  color: #7d8582;
  font-size: 8px;
  font-weight: 800;
}

.ks-current-token strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.ks-tracker-context ol {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.ks-tracker-context ol::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 1px;
  background: rgba(255, 255, 255, .15);
}

.ks-tracker-context li {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 13px;
  align-items: center;
}

.ks-tracker-context li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #38413e;
  border-radius: 50%;
  color: #969e9b;
  background: #111916;
  font-size: 10px;
  font-weight: 800;
}

.ks-tracker-context li.done > span {
  border-color: #2f9670;
  color: white;
  background: #1e7656;
}

.ks-tracker-context li.live > span {
  border-color: #66d6ab;
  color: #9ce7c9;
  box-shadow: 0 0 0 5px rgba(62, 185, 137, .1);
}

.ks-tracker-context li p,
.ks-tracker-context li b,
.ks-tracker-context li small { display: block; margin: 0; }
.ks-tracker-context li b { font-size: 11px; }
.ks-tracker-context li small { margin-top: 4px; color: #717a77; font-size: 9px; }

.ks-tracker-phone {
  position: relative;
  min-height: 448px;
  padding: 19px 18px 22px;
  overflow: hidden;
  border: 6px solid #292d2c;
  border-radius: 32px;
  background: #f6f7f4;
  color: #141715;
  box-shadow: 0 26px 48px rgba(0, 0, 0, .35);
}

.ks-tracker-phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 58px;
  height: 16px;
  border-radius: 10px;
  background: #252827;
  transform: translateX(-50%);
}

.ks-phone-top {
  display: flex;
  justify-content: space-between;
  padding: 1px 3px 21px;
  font-size: 7px;
  font-weight: 800;
}

.ks-tracker-phone .ks-mini-logo {
  color: #151715;
}

.ks-tracker-phone > small {
  display: block;
  margin-top: 26px;
  color: #8a8f8c;
  font-size: 8px;
  font-weight: 800;
}

.ks-own-token {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe2de;
  font-size: 14px;
}

.ks-own-token b { font-size: 29px; }

.ks-ahead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
}

.ks-ahead strong {
  font-size: 52px;
  line-height: 1;
}

.ks-ahead span {
  color: #6b716e;
  font-size: 11px;
  line-height: 1.35;
}

.ks-wait-box {
  padding: 14px;
  border-radius: 6px;
  background: #e5eee9;
}

.ks-wait-box small {
  display: block;
  color: #668071;
  font-size: 7px;
  font-weight: 800;
}

.ks-wait-box b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.ks-private,
.ks-phone-update {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d736f;
  font-size: 8px;
}

.ks-private { margin: 17px 0; }
.ks-private i { background: var(--ks-patient); }

.ks-phone-update {
  position: absolute;
  right: 18px;
  bottom: 19px;
  left: 18px;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid #dfe2de;
}

.ks-phone-update i {
  background: var(--ks-patient);
  animation: ks-live-pulse 1.8s ease-out infinite;
}

@keyframes ks-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 131, 95, .28); }
  50% { box-shadow: 0 0 0 6px rgba(23, 131, 95, 0); }
}

/* Devices */
.ks-device-section {
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(590px, 1.25fr);
  gap: 80px;
  align-items: center;
  min-height: 780px;
  color: white;
  background: #121316;
}

.ks-device-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.ks-device-copy,
.ks-device-stage { position: relative; z-index: 1; }
.ks-device-copy .ks-eyebrow { color: #9ea3ad; }
.ks-device-copy h2 { color: white; }
.ks-device-copy > p { color: #afb2ba; }

.ks-device-points {
  display: grid;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.ks-device-points span {
  display: grid;
  grid-template-columns: 118px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  color: #969aa4;
  font-size: 13px;
}

.ks-device-points b { color: white; }

.ks-device-stage {
  min-height: 510px;
}

.ks-desktop-device,
.ks-tablet-device,
.ks-mobile-device {
  position: absolute;
  overflow: hidden;
  border: 6px solid #303238;
  background: #f4f4f2;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .38);
}

.ks-desktop-device {
  top: 10px;
  right: 0;
  width: min(100%, 650px);
  height: 390px;
  border-width: 9px;
  border-radius: 8px;
}

.ks-device-camera {
  position: absolute;
  z-index: 2;
  top: -6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b6e77;
}

.ks-desktop-device > div {
  height: 100%;
  padding: 23px 25px;
  color: #191a1d;
  background: white;
}

.ks-desktop-device header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid #e2e3e5;
}

.ks-desktop-device .ks-mini-logo,
.ks-tablet-device .ks-mini-logo,
.ks-mobile-device .ks-mini-logo { color: #17181a; }
.ks-desktop-device header b { font-size: 12px; }

.ks-desktop-device p {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 27px 0 20px;
}

.ks-desktop-device p strong { font-size: 42px; }
.ks-desktop-device p small { color: #777980; font-size: 10px; }
.ks-desktop-device ul { margin: 0; padding: 0; list-style: none; }

.ks-desktop-device li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #e8e8ea;
  font-size: 9px;
}

.ks-desktop-device li i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: #1a1b1f;
  font-style: normal;
  font-weight: 800;
}

.ks-desktop-device li span { color: #797b82; }

.ks-tablet-device {
  z-index: 3;
  bottom: 30px;
  left: -22px;
  width: 245px;
  height: 320px;
  border-radius: 20px;
}

.ks-tablet-device > div,
.ks-mobile-device > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  color: #18191c;
  background: #f5f5f3;
}

.ks-tablet-device small,
.ks-mobile-device small {
  margin-top: auto;
  color: #96989f;
  font-size: 8px;
  font-weight: 800;
}

.ks-tablet-device b { margin-top: 8px; font-size: 22px; line-height: 1.1; }

.ks-tablet-device button {
  margin-top: 20px;
  padding: 11px;
  border: 0;
  border-radius: 5px;
  color: white;
  background: var(--ks-doctor);
  font-size: 9px;
  font-weight: 750;
}

.ks-mobile-device {
  z-index: 4;
  right: 30px;
  bottom: 2px;
  width: 158px;
  height: 292px;
  border-radius: 27px;
}

.ks-mobile-device > div { padding: 19px 16px; }
.ks-mobile-device strong { margin-top: 9px; font-size: 54px; line-height: 1; }
.ks-mobile-device p { margin: 4px 0 26px; color: #6b6e75; font-size: 10px; }

.ks-device-base {
  position: absolute;
  z-index: 2;
  right: -24px;
  bottom: 75px;
  width: calc(100% + 18px);
  height: 14px;
  border-radius: 0 0 60% 60%;
  background: #383a40;
}

/* Growth and setup */
.ks-growth-section {
  background: #f7f7f5;
}

.ks-growth-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid #cfd0d3;
  border-bottom: 1px solid #cfd0d3;
}

.ks-growth-track article {
  position: relative;
  min-height: 330px;
  padding: 36px 34px 44px;
  border-right: 1px solid #cfd0d3;
}

.ks-growth-track article:last-of-type { border-right: 0; }

.ks-growth-track article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 65px;
  border: 1px solid #cfd0d3;
  border-radius: 50%;
  background: #f7f7f5;
  font-size: 11px;
  font-weight: 800;
}

.ks-growth-track small,
.ks-start-steps small {
  color: #8a8c92;
  font-size: 9px;
  font-weight: 850;
}

.ks-growth-track h3,
.ks-start-steps h3 {
  margin: 10px 0 0;
  font-size: 23px;
  line-height: 1.18;
}

.ks-growth-track p,
.ks-start-steps p {
  margin: 13px 0 0;
  color: #66686e;
  font-size: 14px;
  line-height: 1.55;
}

.ks-growth-line {
  position: absolute;
  top: 56px;
  right: 16.67%;
  left: 16.67%;
  height: 1px;
  background: #cfd0d3;
}

.ks-growth-line i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17181b;
  animation: ks-growth-move 5s ease-in-out infinite;
}

@keyframes ks-growth-move {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 7px); }
}

.ks-start-section {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 92px;
  color: white;
  background: #e9e9e6;
}

.ks-start-copy { align-self: start; }
.ks-start-copy h2 { color: #141518; }
.ks-start-copy > p { color: #66686e; }
.ks-start-copy .ks-eyebrow { color: #55575d; }

.ks-start-steps {
  border-top: 1px solid #cacbce;
}

.ks-start-steps article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 21px;
  padding: 27px 0;
  border-bottom: 1px solid #cacbce;
  color: #17181b;
}

.ks-start-steps article > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: white;
  background: #17181b;
  font-size: 11px;
  font-weight: 800;
}

.ks-start-steps h3 { font-size: 20px; }

.ks-trust-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid #cacbce;
  border-radius: 8px;
  background: #cacbce;
}

.ks-trust-row > div {
  min-height: 135px;
  padding: 25px;
  color: #17181b;
  background: #f4f4f2;
}

.ks-trust-row b,
.ks-trust-row span { display: block; }
.ks-trust-row b { font-size: 14px; }
.ks-trust-row span { margin-top: 10px; color: #696b71; font-size: 12px; line-height: 1.5; }

/* Contact */
.ks-contact {
  padding: 120px max(24px, calc((100% - var(--ks-width)) / 2));
  color: white;
  background: #101114;
}

.ks-contact-copy { max-width: 920px; }
.ks-contact .ks-eyebrow { color: #aeb1b8; }
.ks-contact h2 { max-width: 800px; color: white; font-size: 64px; }
.ks-contact-copy > p { color: #aeb1b8; }

.ks-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 42px;
}

.ks-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid #35373e;
  border-radius: 7px;
  color: #d3d5da;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.ks-contact-actions a:hover { transform: translateY(-2px); background: #1d1f24; color: white; }

.ks-contact-actions .primary {
  gap: 22px;
  border-color: white;
  color: #111113;
  background: white;
}

.ks-contact-actions .primary:hover { color: #111113; background: #ececea; }

body > footer {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  border-top: 1px solid #292b30;
  color: #777a82;
  background: #101114;
  font-size: 12px;
  text-align: center;
}

body > footer b { color: #e1e2e5; }
body > footer a { color: #e1e2e5; }

/* Section entrances */
.ks-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.ks-reveal.is-entered {
  opacity: 1;
  transform: translateY(0);
}

/* Medium desktop / tablet landscape */
@media (max-width: 1180px) {
  .ks-role-hub,
  .ks-device-section,
  .ks-growth-section,
  .ks-start-section { padding-right: 36px; padding-left: 36px; }

  .ks-role-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .ks-panel-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; }
  .ks-panel-copy .ks-role-label,
  .ks-panel-copy h3,
  .ks-panel-copy > p,
  .ks-panel-copy .ks-result { grid-column: 1; }
  .ks-panel-copy .ks-benefit-list { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; align-self: center; }

  .ks-device-section { grid-template-columns: 1fr; gap: 60px; }
  .ks-device-copy { max-width: 760px; }
  .ks-device-stage { width: min(100%, 780px); margin: 0 auto; }
}

@media (max-width: 900px) {
  .ks-role-hub,
  .ks-device-section,
  .ks-growth-section,
  .ks-start-section,
  .ks-contact { padding: 88px 24px; }

  .ks-intro h2,
  .ks-device-copy h2,
  .ks-growth-head h2,
  .ks-start-copy h2 { font-size: 44px; }

  .ks-role-tabs { grid-template-columns: 1fr; }
  .ks-role-tab { min-height: 116px; grid-template-columns: 46px 1fr auto; grid-template-rows: 1fr; align-items: center; }
  .ks-tab-copy { align-self: center; padding-top: 0; }
  .ks-tab-action { grid-column: 3; align-self: center; width: 90px; border-top: 0; }
  .ks-tab-number { top: 14px; right: 16px; }

  .ks-role-stage { margin-top: 24px; }
  .ks-stage-signal { display: none; }
  .ks-role-panel { padding: 38px; }

  .ks-panel-copy { display: block; }
  .ks-panel-copy .ks-benefit-list { margin-top: 28px; }
  .ks-panel-copy h3 { font-size: 34px; }

  .ks-growth-track { grid-template-columns: 1fr; }
  .ks-growth-track article { min-height: auto; border-right: 0; border-bottom: 1px solid #cfd0d3; }
  .ks-growth-track article:last-of-type { border-bottom: 0; }
  .ks-growth-track article > span { margin-bottom: 32px; }
  .ks-growth-line { display: none; }

  .ks-start-section { grid-template-columns: 1fr; gap: 54px; }
  .ks-trust-row { grid-template-columns: 1fr; }
  .ks-contact h2 { font-size: 52px; }
}

@media (max-width: 680px) {
  .ks-role-hub,
  .ks-device-section,
  .ks-growth-section,
  .ks-start-section,
  .ks-contact { padding: 72px 18px; }

  .ks-role-hub { padding-top: 82px; background-size: 56px 56px; }
  .ks-intro h2,
  .ks-device-copy h2,
  .ks-growth-head h2,
  .ks-start-copy h2,
  .ks-contact h2 { font-size: 36px; line-height: 1.08; }
  .ks-intro > p,
  .ks-device-copy > p,
  .ks-growth-head > p,
  .ks-start-copy > p,
  .ks-contact-copy > p { font-size: 16px; }

  .ks-role-tabs { margin-top: 38px; }
  .ks-role-tab { grid-template-columns: 44px 1fr; min-height: 112px; padding: 17px; }
  .ks-tab-icon { width: 44px; height: 44px; }
  .ks-tab-copy b { font-size: 20px; }
  .ks-tab-copy small { font-size: 11px; }
  .ks-tab-action { display: none; }

  .ks-role-panel { gap: 30px; min-height: 0; padding: 24px 18px 28px; }
  .ks-panel-copy h3 { font-size: 30px; }
  .ks-panel-copy > p:not(.ks-result) { font-size: 15px; }

  .ks-doctor-screen { grid-template-columns: 1fr; min-height: 470px; }
  .ks-doctor-screen > aside { display: none; }
  .ks-doctor-screen > section { padding: 20px 15px 34px; }
  .ks-doctor-screen nav { gap: 12px; overflow: hidden; }
  .ks-doctor-cards { grid-template-columns: 1fr; }
  .ks-doctor-cards > div:nth-child(2) { display: none; }

  .ks-ops-summary { margin-right: 12px; margin-left: 12px; }
  .ks-ops-summary > span { display: block; padding: 10px; text-align: center; }
  .ks-ops-summary small, .ks-ops-summary b { display: block; }
  .ks-ops-summary b { margin-top: 5px; }
  .ks-queue-title { padding-right: 13px; padding-left: 13px; }
  .ks-queue-table { margin-right: 12px; margin-left: 12px; }
  .ks-queue-table > div { grid-template-columns: 44px minmax(96px, 1fr) 40px 68px; gap: 7px; }
  .ks-queue-table > div > *:nth-child(4) { display: none; }
  .ks-queue-table > .head > *:nth-child(4) { display: none; }
  .ks-ops-action { margin-right: 12px; margin-left: 12px; }

  .ks-patient-demo { grid-template-columns: 1fr; padding: 24px 17px 38px; }
  .ks-tracker-context { display: none; }
  .ks-tracker-phone { width: min(100%, 270px); margin: 0 auto; }

  .ks-device-section { min-height: 900px; }
  .ks-device-points span { grid-template-columns: 90px 1fr; }
  .ks-device-stage { min-height: 480px; }
  .ks-desktop-device { top: 0; left: 0; width: 100%; height: 310px; }
  .ks-desktop-device > div { padding: 18px; }
  .ks-tablet-device { bottom: 20px; left: 0; width: 190px; height: 255px; }
  .ks-tablet-device > div { padding: 17px; }
  .ks-tablet-device b { font-size: 18px; }
  .ks-mobile-device { right: 5px; bottom: 0; width: 138px; height: 254px; }
  .ks-device-base { display: none; }

  .ks-growth-track { margin-top: 44px; }
  .ks-growth-track article { padding: 30px 18px; }
  .ks-start-steps article { grid-template-columns: 44px 1fr; gap: 15px; }
  .ks-start-steps article > span { width: 39px; height: 39px; }

  .ks-contact-actions { align-items: stretch; flex-direction: column; }
  .ks-contact-actions a { width: 100%; }
}

@media (max-width: 390px) {
  .ks-role-hub,
  .ks-device-section,
  .ks-growth-section,
  .ks-start-section,
  .ks-contact { padding-right: 14px; padding-left: 14px; }
  .ks-intro h2,
  .ks-device-copy h2,
  .ks-growth-head h2,
  .ks-start-copy h2,
  .ks-contact h2 { font-size: 32px; }
  .ks-panel-copy h3 { font-size: 27px; }
  .ks-role-panel { padding-right: 13px; padding-left: 13px; }
  .ks-benefit-list > div { grid-template-columns: 56px 1fr; gap: 10px; }
  .ks-doctor-screen nav span:last-child { display: none; }
  .ks-ops-action > span { max-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .ks-site *,
  .ks-site *::before,
  .ks-site *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ks-reveal { opacity: 1; transform: none; }
}

/* Role experience v2: persistent selector, connected handoff and panel transitions */
.ks-role-hub {
  padding-top: 132px;
  padding-bottom: 132px;
}

.ks-intro {
  max-width: 860px;
}

.ks-intro h2 {
  max-width: 780px;
  font-size: 58px;
}

.ks-role-tabs {
  position: sticky;
  top: 14px;
  z-index: 20;
  gap: 1px;
  margin-top: 54px;
  padding: 5px;
  border: 1px solid #d0d2d7;
  border-radius: 8px;
  background: rgba(244, 244, 242, .9);
  box-shadow: 0 12px 34px rgba(17, 17, 19, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ks-role-tab {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px 18px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.ks-role-tab::after {
  inset: auto 16px 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.ks-role-tab:hover {
  z-index: 1;
  transform: none;
  border-color: rgba(17, 17, 19, .07);
  background: rgba(255, 255, 255, .68);
  box-shadow: none;
}

.ks-role-tab.is-active {
  z-index: 2;
  border-color: rgba(17, 17, 19, .08);
  background: white;
  box-shadow: 0 7px 22px rgba(17, 17, 19, .1);
}

.ks-tab-icon {
  grid-row: auto;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--tab-color) 18%, white);
  font-size: 13px;
}

.ks-tab-copy {
  align-self: center;
  padding-top: 0;
}

.ks-tab-copy b {
  font-size: 19px;
}

.ks-tab-copy small {
  max-width: 210px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

.ks-tab-action {
  display: flex;
  grid-column: 3;
  align-self: center;
  gap: 12px;
  width: auto;
  padding: 0;
  border: 0;
  font-size: 10px;
  white-space: nowrap;
}

.ks-role-tab:not(.is-active) .ks-tab-action {
  width: 19px;
  overflow: hidden;
  color: transparent;
}

.ks-tab-number {
  display: none;
}

.ks-role-stage {
  min-height: 0;
  margin-top: 20px;
  overflow: hidden;
  border-color: #cbced4;
  background: #fff;
  box-shadow: 0 30px 74px rgba(17, 17, 19, .11);
  scroll-margin-top: 132px;
}

.ks-role-stage::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ks-role);
  transition: background .3s ease;
}

.ks-stage-signal {
  display: none;
}

.ks-stage-context {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(520px, 1.35fr);
  gap: 36px;
  align-items: center;
  min-height: 88px;
  padding: 15px 30px 15px 34px;
  border-bottom: 1px solid #d8dade;
  background: #f4f4f2;
}

.ks-current-view {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
}

.ks-current-view > i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ks-role);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ks-role) 10%, transparent);
  transition: background .3s ease;
}

.ks-current-view span {
  color: #85878d;
  font-weight: 650;
}

.ks-current-view b {
  overflow: hidden;
  color: #202125;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-clinic-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ks-clinic-flow::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: #c8cacf;
}

.ks-clinic-flow > span {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
}

.ks-clinic-flow i {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8cacf;
  border-radius: 50%;
  color: #8b8d93;
  background: #f4f4f2;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  transition: border-color .3s ease, color .3s ease, background .3s ease, transform .3s ease;
}

.ks-clinic-flow b,
.ks-clinic-flow small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-clinic-flow b {
  color: #55575d;
  font-size: 10px;
}

.ks-clinic-flow small {
  margin-top: 3px;
  color: #94969c;
  font-size: 8px;
}

.ks-role-stage[data-active-role="doctor"] .ks-clinic-flow [data-flow-role="doctor"] i,
.ks-role-stage[data-active-role="reception"] .ks-clinic-flow [data-flow-role="reception"] i,
.ks-role-stage[data-active-role="patient"] .ks-clinic-flow [data-flow-role="patient"] i {
  border-color: var(--ks-role);
  color: white;
  background: var(--ks-role);
  transform: scale(1.08);
}

.ks-role-stage[data-active-role="doctor"] .ks-clinic-flow [data-flow-role="doctor"] b,
.ks-role-stage[data-active-role="reception"] .ks-clinic-flow [data-flow-role="reception"] b,
.ks-role-stage[data-active-role="patient"] .ks-clinic-flow [data-flow-role="patient"] b {
  color: #17181b;
}

.ks-role-panel {
  position: relative;
  grid-template-columns: minmax(340px, .76fr) minmax(590px, 1.34fr);
  gap: 56px;
  min-height: 610px;
  padding: 54px 52px 58px 56px;
  transform-origin: 50% 12%;
}

.ks-role-panel.is-entering {
  animation: ks-role-reveal .56s cubic-bezier(.16, 1, .3, 1) both;
}

.ks-role-panel.is-leaving {
  pointer-events: none;
  animation: ks-role-leave .16s ease both;
}

@keyframes ks-role-reveal {
  0% { opacity: 0; transform: translateY(18px) scale(.992); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ks-role-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-7px); }
}

.ks-panel-copy {
  position: relative;
  z-index: 2;
}

.ks-panel-copy h3 {
  max-width: 530px;
  font-size: 42px;
  line-height: 1.06;
}

.ks-panel-copy > p:not(.ks-result) {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.68;
}

.ks-benefit-list {
  margin-top: 32px;
}

.ks-benefit-list > div {
  grid-template-columns: 64px 1fr;
  min-height: 64px;
  padding: 17px 0;
}

.ks-benefit-list span {
  font-size: 10px;
}

.ks-benefit-list b {
  max-width: 390px;
  font-size: 13px;
  line-height: 1.5;
}

.ks-result {
  align-items: flex-start;
  max-width: 510px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.5;
}

.ks-result i {
  flex: 0 0 auto;
  margin-top: 5px;
}

.ks-demo {
  align-self: center;
  border-color: #202227;
  box-shadow: 0 28px 54px rgba(17, 17, 19, .2);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.ks-role-panel.is-entering .ks-demo {
  animation: ks-demo-settle .7s .08s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes ks-demo-settle {
  from { opacity: .35; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.ks-role-panel.is-entering .ks-benefit-list > div {
  animation: ks-benefit-in .46s cubic-bezier(.16, 1, .3, 1) both;
}

.ks-role-panel.is-entering .ks-benefit-list > div:nth-child(1) { animation-delay: .08s; }
.ks-role-panel.is-entering .ks-benefit-list > div:nth-child(2) { animation-delay: .14s; }
.ks-role-panel.is-entering .ks-benefit-list > div:nth-child(3) { animation-delay: .2s; }

@keyframes ks-benefit-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.ks-role-panel.is-entering .ks-doctor-cards > div,
.ks-role-panel.is-entering .ks-queue-table > div:not(.head),
.ks-role-panel.is-entering .ks-tracker-context li {
  animation: ks-demo-item .46s cubic-bezier(.16, 1, .3, 1) both;
}

.ks-role-panel.is-entering .ks-doctor-cards > div:nth-child(1),
.ks-role-panel.is-entering .ks-queue-table > div:nth-child(2),
.ks-role-panel.is-entering .ks-tracker-context li:nth-child(1) { animation-delay: .25s; }
.ks-role-panel.is-entering .ks-doctor-cards > div:nth-child(2),
.ks-role-panel.is-entering .ks-queue-table > div:nth-child(3),
.ks-role-panel.is-entering .ks-tracker-context li:nth-child(2) { animation-delay: .32s; }
.ks-role-panel.is-entering .ks-queue-table > div:nth-child(4),
.ks-role-panel.is-entering .ks-tracker-context li:nth-child(3) { animation-delay: .39s; }

@keyframes ks-demo-item {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Laptop and tablet */
@media (max-width: 1180px) {
  .ks-role-tabs {
    top: 10px;
  }

  .ks-role-tab {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 88px;
    padding: 13px 14px;
  }

  .ks-tab-action {
    display: none;
  }

  .ks-stage-context {
    grid-template-columns: 150px minmax(0, 1fr);
    padding-right: 24px;
    padding-left: 28px;
  }

  .ks-role-panel {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: 0;
    padding: 46px 48px 52px;
  }

  .ks-panel-copy {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr);
    column-gap: 52px;
  }

  .ks-panel-copy .ks-role-label,
  .ks-panel-copy h3,
  .ks-panel-copy > p,
  .ks-panel-copy .ks-result {
    grid-column: 1;
  }

  .ks-panel-copy .ks-benefit-list {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 0;
    align-self: center;
  }

  .ks-panel-copy h3 {
    font-size: 38px;
  }

  .ks-demo {
    width: 100%;
  }
}

/* One continuous Kagaz paper backdrop across the complete website. */
.ks-site {
  background: transparent;
}

.ks-role-hub {
  border-top: 1px solid rgba(17, 17, 19, .08);
  border-bottom: 1px solid rgba(17, 17, 19, .09);
  background:
    linear-gradient(rgba(17, 17, 19, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 19, .032) 1px, transparent 1px),
    rgba(248, 248, 246, .72);
  background-size: 80px 80px;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.ks-role-hub::before {
  height: 240px;
  background: linear-gradient(rgba(249, 249, 247, .88) 10%, rgba(249, 249, 247, 0));
}

.ks-device-section {
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(14, 15, 18, .94);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ks-growth-section {
  border-bottom: 1px solid rgba(17, 17, 19, .1);
  background: rgba(248, 248, 246, .76);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.ks-growth-track article > span {
  background: rgba(250, 250, 248, .9);
}

.ks-start-section {
  border-bottom: 1px solid rgba(17, 17, 19, .11);
  background: rgba(234, 234, 231, .82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ks-trust-row > div {
  background: rgba(247, 247, 245, .9);
}

.ks-contact,
body > footer {
  background: rgba(12, 13, 16, .95);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@media (max-width: 680px) {
  .ks-role-hub {
    background-size: 56px 56px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ks-device-section,
  .ks-growth-section,
  .ks-start-section,
  .ks-contact,
  body > footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ks-role-hub::before {
    height: 180px;
  }
}

@media (max-width: 820px) {
  .ks-role-hub {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .ks-intro h2 {
    font-size: 44px;
  }

  .ks-role-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    top: 8px;
    gap: 2px;
    margin-top: 40px;
    padding: 4px;
  }

  .ks-role-tab {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    min-width: 0;
    min-height: 80px;
    padding: 8px 5px;
    text-align: center;
  }

  .ks-role-tab::after {
    right: 10px;
    left: 10px;
  }

  .ks-tab-icon {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .ks-tab-copy b {
    font-size: 13px;
  }

  .ks-tab-copy small,
  .ks-tab-action {
    display: none;
  }

  .ks-role-stage {
    margin-top: 12px;
    scroll-margin-top: 105px;
  }

  .ks-stage-context {
    display: block;
    min-height: 0;
    padding: 15px 18px 16px 22px;
  }

  .ks-current-view {
    margin-bottom: 14px;
  }

  .ks-clinic-flow {
    gap: 7px;
  }

  .ks-clinic-flow::before {
    top: 14px;
  }

  .ks-clinic-flow > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .ks-clinic-flow i {
    grid-row: auto;
    width: 29px;
    height: 29px;
    margin: 0 auto;
  }

  .ks-clinic-flow b {
    width: 100%;
    font-size: 9px;
  }

  .ks-clinic-flow small {
    display: none;
  }

  .ks-role-panel {
    gap: 34px;
    padding: 34px 28px 36px 31px;
  }

  .ks-panel-copy {
    display: block;
  }

  .ks-panel-copy .ks-benefit-list {
    margin-top: 28px;
  }

  .ks-panel-copy h3 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .ks-role-hub {
    padding: 78px 14px;
  }

  .ks-intro h2 {
    font-size: 35px;
  }

  .ks-intro > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .ks-role-tabs {
    width: calc(100% + 12px);
    margin-left: -6px;
    border-radius: 7px;
  }

  .ks-role-tab {
    min-height: 74px;
  }

  .ks-role-tab.is-active {
    box-shadow: 0 5px 15px rgba(17, 17, 19, .1);
  }

  .ks-role-stage {
    width: calc(100% + 2px);
    margin-left: -1px;
    border-radius: 7px;
  }

  .ks-stage-context {
    padding-right: 14px;
    padding-left: 18px;
  }

  .ks-current-view {
    font-size: 10px;
  }

  .ks-role-panel {
    gap: 28px;
    padding: 30px 14px 31px 18px;
  }

  .ks-panel-copy {
    padding-right: 3px;
  }

  .ks-panel-copy h3 {
    font-size: 29px;
    line-height: 1.08;
  }

  .ks-panel-copy > p:not(.ks-result) {
    font-size: 14px;
    line-height: 1.65;
  }

  .ks-benefit-list > div {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 15px 0;
  }

  .ks-benefit-list b {
    font-size: 12px;
  }

  .ks-result {
    padding: 14px;
    border: 1px solid #e0e1e4;
    border-radius: 6px;
    background: #f7f7f5;
  }

  .ks-demo {
    border-radius: 6px;
    box-shadow: 0 18px 38px rgba(17, 17, 19, .18);
  }

  .ks-patient-demo {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 350px) {
  .ks-role-hub {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ks-role-tabs {
    width: 100%;
    margin-left: 0;
  }

  .ks-tab-icon {
    width: 30px;
    height: 30px;
  }

  .ks-tab-copy b {
    font-size: 12px;
  }

  .ks-panel-copy h3 {
    font-size: 26px;
  }

  .ks-queue-table > div {
    grid-template-columns: 35px minmax(70px, 1fr) 31px 54px;
    gap: 5px;
  }

  .ks-queue-table .token {
    width: 25px;
    height: 25px;
  }

  .ks-queue-table em {
    max-width: 54px;
    padding: 4px 5px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ks-role-panel.is-entering,
  .ks-role-panel.is-leaving,
  .ks-role-panel.is-entering .ks-demo,
  .ks-role-panel.is-entering .ks-benefit-list > div,
  .ks-role-panel.is-entering .ks-doctor-cards > div,
  .ks-role-panel.is-entering .ks-queue-table > div,
  .ks-role-panel.is-entering .ks-tracker-context li {
    animation: none !important;
  }
}
