.typing-page-main {
  padding: 40px 0 240px;
  background:antiquewhite;
}

.typing-page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.typing-page-hero,
.typing-page-practice,
.typing-page-content,
.typing-page-cta {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 32px;
  box-shadow: 0 12px 32px rgba(20, 52, 92, 0.12);
}

.typing-page-practice,
.typing-page-content,
.typing-page-cta {
  margin-top: 28px;
}

.typing-page-practice:focus {
  outline: 3px solid rgba(24, 79, 144, 0.18);
  outline-offset: 4px;
}

.typing-page-title {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.4;
  color: #14345c;
}

.typing-page-lead,
.typing-page-content p,
.typing-page-cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: #2a2a2a;
}

.typing-page-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
  text-align: center;
}

.typing-section-title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.5;
  color: #14345c;
  text-align: center;
}

.typing-keyboard-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1120px;
  margin: 22px auto 0;
}

.typing-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
}

.typing-row-top .typing-key {
  min-width: 50px;
  padding: 0 8px;
}

.typing-row-top .typing-key-wide {
  min-width: 72px;
}

.typing-key {
  min-width: 56px;
  height: 56px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #14345c;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.typing-key-wide {
  min-width: 80px;
}

.typing-key.active {
  background: #ffd966;
  box-shadow: 0 0 16px rgba(255, 217, 102, 0.9);
  transform: translateY(-2px);
}

.typing-output-wrap {
  display: flex;
  justify-content: center;
}

.typing-output {
  width: min(100%, 280px);
  height: 90px;
  border: 1px solid #d9e3f0;
  border-radius: 12px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 700;
  color: #14345c;
}

.typing-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.typing-page-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.typing-page-cta-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.typing-page-cta-link-primary {
  background: #184f90;
  color: #ffffff;
}

.typing-page-cta-link-secondary {
  background: #edf4ff;
  color: #184f90;
}

@media (max-width: 767px) {
  .typing-page-main {
    padding: 24px 0 40px;
  }

  .typing-page-shell {
    width: min(100% - 20px, 1280px);
  }

  .typing-page-hero,
  .typing-page-practice,
  .typing-page-content,
  .typing-page-cta {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .typing-page-title {
    font-size: 28px;
  }

  .typing-section-title {
    margin: 0 0 16px;
    font-size: 22px;
  }

  .typing-page-lead,
  .typing-page-note,
  .typing-page-content p,
  .typing-page-cta p {
    font-size: 15px;
  }

  .typing-key {
    min-width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .typing-row {
    flex-wrap: wrap;
  }

  .typing-row-top .typing-key {
    min-width: 40px;
    padding: 0 6px;
  }

  .typing-row-top .typing-key-wide {
    min-width: 72px;
  }

  .typing-key-wide {
    min-width: 64px;
  }

  .typing-output {
    width: min(100%, 180px);
    height: 64px;
    font-size: 26px;
  }

  .typing-page-cta-actions {
    flex-direction: column;
  }

  .typing-page-cta-link {
    width: 100%;
  }
}