/* Dictator Android keyboard, drawn 1:1 from DictatorKeyboardView.kt (2.7): colors, sizes, 13 level beams. */
.kb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.kb-phone {
  width: 280px;
  aspect-ratio: 9/19.5;
  border-radius: 40px;
  padding: 10px;
  background: #1c1c20;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.kb-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #1b1c20;
}
.kb-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 780px;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  font-family: Roboto, 'Onest', system-ui, sans-serif;
  color: #e6e6ea;
}
.kb-status {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 13px;
  color: #e6e6ea;
}
.kb-status i {
  display: inline-block;
  width: 44px;
  height: 16px;
  border-radius: 8px;
  background: #2ecc71;
  opacity: 0;
  transition: opacity 0.2s;
}
.kb-canvas.rec .kb-status i {
  opacity: 1;
}
.kb-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  font-size: 17px;
}
.kb-bar svg {
  width: 22px;
  height: 22px;
  stroke: #e6e6ea;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kb-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
}
.kb-in {
  align-self: flex-start;
  max-width: 78%;
  background: #2e2f35;
  border-radius: 18px 18px 18px 6px;
  padding: 9px 13px;
  font-size: 14.5px;
  line-height: 1.4;
}
.kb-when {
  align-self: center;
  font-size: 12px;
  color: rgba(230, 230, 234, 0.5);
  margin: 4px 0;
}
.kb-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
}
.kb-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #c9c9ce;
  display: grid;
  place-items: center;
  color: #c9c9ce;
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.kb-field {
  flex: 1;
  min-height: 44px;
  border-radius: 22px;
  background: #2b2c31;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 15px;
  line-height: 1.35;
  color: #e6e6ea;
}
.kb-field .ph {
  color: rgba(230, 230, 234, 0.55);
}
.kb-field .txt {
  background: rgba(33, 212, 237, 0.14);
  border-radius: 4px;
}
.kb-kbd {
  background: #1c1c1e;
  padding-bottom: 8px;
}
.kb-tools {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.kb-tbtn {
  width: 46px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
}
.kb-tbtn.w52 {
  width: 52px;
}
.kb-tbtn svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}
.kb-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.kb-flag img {
  width: 100%;
  height: 100%;
  display: block;
}
.kb-han {
  font:
    400 19px/1 'Noto Sans SC',
    'Microsoft YaHei',
    sans-serif;
  color: #fff;
  position: relative;
  z-index: 1;
}
.kb-tbtn::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: #21d4ed;
  transform: scale(0);
  transition: transform 0.18s ease-out;
}
.kb-tbtn.on::before {
  transform: scale(1);
}
.kb-tbtn.on svg {
  stroke: #111;
}
.kb-tbtn.on .kb-han {
  color: #111;
}
.kb-tbtn.tap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: kbTap 0.45s ease-out forwards;
}
@keyframes kbTap {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(1.3);
    opacity: 0;
  }
}
/* recording track and clock 1:1 with ios-keyboard/RecordingControls.swift and the desktop widget */
.kb-wave {
  flex: 1;
  min-width: 0;
  height: 22px;
  margin: 0 8px 0 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s;
}
.kb-canvas.rec .kb-wave {
  opacity: 1;
}
.kb-wave i {
  flex: none;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 1.5px;
  background: linear-gradient(180deg, #fb923c, #00d4ff);
  transition: height 90ms linear;
}
.kb-time {
  flex: none;
  min-width: 32px;
  margin-right: 4px;
  font:
    500 13px/1 Roboto,
    'Onest',
    system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: right;
  opacity: 0;
  transition: opacity 0.15s;
}
.kb-canvas.rec .kb-time {
  opacity: 1;
}
.kb-sugg {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 16px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.kb-sugg span {
  flex: 1;
  text-align: center;
  opacity: 0.9;
}
.kb-sugg span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.kb-sugg b {
  font-weight: 700;
}
.kb-canvas.rec .kb-sugg span {
  visibility: hidden;
}
.kb-status-line {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transition: opacity 0.12s;
}
.kb-canvas.proc .kb-sugg span {
  visibility: hidden;
}
.kb-canvas.proc .kb-status-line {
  opacity: 1;
}
.kb-sugg {
  position: relative;
}
.kb-rows {
  padding: 4px 3px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kb-row {
  display: flex;
  gap: 4.5px;
  justify-content: center;
}
.kb-k {
  flex: 1;
  height: 46px;
  border-radius: 6px;
  background: #3a3a3c;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #fff;
  position: relative;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.kb-k sup {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.kb-k.sp {
  background: #2c2c2e;
  font-size: 15px;
}
.kb-k.shift {
  background: #ebebeb;
  flex: 1.3;
}
.kb-k.shift svg {
  width: 22px;
  height: 22px;
  fill: #000;
}
.kb-k.del {
  flex: 1.3;
}
.kb-k.del svg,
.kb-k.sp svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kb-k.space {
  flex: 4;
}
.kb-k.enter {
  flex: 2.1;
}
.kb-k.num {
  flex: 1.4;
}
.kb-nav {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kb-nav i {
  width: 108px;
  height: 4px;
  border-radius: 2px;
  background: #e6e6ea;
  opacity: 0.85;
}
.kb-cap {
  font: 500 13px var(--f, system-ui);
  color: var(--t3, #8b8b94);
  text-align: center;
  min-height: 20px;
  max-width: 300px;
}
/* Подпись шириной с телефон и высотой в три строки: смена текста не двигает ни телефон, ни снимки рядом */
.kb-demo {
  width: 280px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.kb-demo .kb-phone {
  width: 100%;
}
.kb-demo .kb-cap {
  width: 100%;
  max-width: none;
  line-height: 1.45;
  min-height: 4.35em;
}
@media (prefers-reduced-motion: reduce) {
  .kb-wave i,
  .kb-tbtn::before {
    transition: none;
  }
}

/* block «На телефоне» inside features 01 and 02 of the site */
.kb-mob {
  margin-top: 18px;
  border: 1px solid rgba(170, 190, 255, 0.14);
  border-radius: 20px;
  padding: 18px;
  background: rgba(9, 13, 35, 0.45);
}
.kb-mob-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}
.kb-mob-real {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kb-mob-real figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.kb-mob-real figcaption {
  font-size: 12px;
  color: rgba(220, 228, 255, 0.55);
  text-align: center;
}
.kb-mini {
  width: 100%;
  max-width: 150px;
  border-radius: 24px;
  padding: 6px;
  background: #1c1c20;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.kb-mini img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 19px;
  cursor: zoom-in;
}
.kb-mob .kb-demo {
  width: 240px;
}
.kb-mob .kb-cap {
  color: rgba(220, 228, 255, 0.6);
}
@media (max-width: 640px) {
  .kb-mob-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .kb-mob .kb-demo {
    width: 260px;
  }
  .kb-mob-real {
    width: 100%;
  }
}
