
/*
Theme Name: kHome Custom
Author: Igor
Version: 1.0
*/
:root {
  /* Paleta alinhada ao site institucional do kHome */
  --kh-color-primary: #0b1f3f; /* azul escuro dos títulos */
  --kh-color-primary-alt: #1b315c;
  --kh-color-accent: #19c49b; /* verde/água de destaque */
  --kh-color-cta: #ff8a00; /* laranja do botão "Cadastrar Condomínio" */
  --kh-color-bg: #f6f8fc;
  --kh-color-surface: #ffffff;
  --kh-color-muted: #6b7280;
  --kh-radius-lg: 20px;
  --kh-radius-md: 12px;
  --kh-shadow-soft: 0 18px 45px rgba(7, 19, 56, 0.16);
  --kh-transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--kh-color-primary-alt);
  background:
    radial-gradient(circle at 0% 0%, rgba(19, 44, 87, 0.16) 0, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 138, 0, 0.15) 0, transparent 50%),
    linear-gradient(to bottom, #f6f8fc 0, #eef3ff 40%, #f6f8fc 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.kh-container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* HEADER */

.kh-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 35, 52, 0.06);
}

.kh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.kh-logo img {
  height: 42px;
}

.kh-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kh-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--kh-color-primary);
  position: relative;
  padding-block: 4px;
}

.kh-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kh-color-accent), var(--kh-color-cta));
  transition: width var(--kh-transition-fast);
}

.kh-nav a:focus-visible,
.kh-nav a:hover {
  outline: none;
}

.kh-nav a:hover::after,
.kh-nav a:focus-visible::after {
  width: 100%;
}

.kh-header__cta {
  margin-left: auto;
  margin-right: 8px;
}

.kh-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, #0f2334, #1b3850);
  box-shadow: 0 10px 20px rgba(15, 35, 52, 0.35);
  cursor: pointer;
  transition: transform var(--kh-transition-fast), box-shadow var(--kh-transition-fast),
    background var(--kh-transition-fast);
}

.kh-header__toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition: transform var(--kh-transition-fast), opacity var(--kh-transition-fast);
}

.kh-header__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 35, 52, 0.45);
}

.kh-header__toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.kh-header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.kh-header__toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* BOTÕES */

.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--kh-transition-fast), color var(--kh-transition-fast),
    box-shadow var(--kh-transition-fast), transform var(--kh-transition-fast), border-color var(--kh-transition-fast);
}

.kh-btn--primary {
  background: linear-gradient(135deg, #ff9a1a, var(--kh-color-cta));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(255, 138, 0, 0.35);
}

.kh-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(255, 138, 0, 0.5);
}

.kh-btn--ghost {
  background: transparent;
  color: var(--kh-color-primary-alt);
  border: 1px solid rgba(15, 35, 52, 0.16);
}

.kh-btn--ghost:hover {
  background: rgba(11, 31, 63, 0.04);
}

.kh-btn--light {
  background: #ffffff;
  color: var(--kh-color-primary);
}

.kh-btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  background: transparent;
}

.kh-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* SEÇÕES */

.kh-section {
  padding: 80px 0;
  color: var(--kh-color-primary-alt);
}

.kh-section--light {
  background: #ffffff;
  color: var(--kh-color-primary-alt);
}

.kh-section--accent {
  background: linear-gradient(135deg, #0b1f3f, #1f3d74);
  color: #ffffff;
}

.kh-section__header {
  text-align: left;
  margin: 0 auto 40px;
  max-width: 720px;
}

.kh-section__header--wide {
  grid-column: 1 / -1;
  text-align: left;
}

.kh-section__header h2 {
  font-size: 2.1rem;
  margin: 0 0 8px;
}

.kh-section__header p {
  margin: 0;
  color: var(--kh-color-muted);
}

.kh-section--accent .kh-section__header p {
  color: rgba(255, 255, 255, 0.8);
}

/* LAYOUT DE FUNCIONALIDADES */

.kh-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.kh-feature-layout--visitas {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.kh-feature-layout__content h2 {
  margin-top: 0;
}

.kh-feature-layout__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* HERO */

.kh-hero {
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #132c57 0%, #132c57 45%, #f5861f 100%);
}

.kh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.55) 0, transparent 55%);
  opacity: 0.25;
  z-index: -1;
}

.kh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.kh-hero__content {
  max-width: 540px;
}

.kh-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: rgba(148, 235, 220, 0.95);
  margin-bottom: 10px;
}

.kh-hero h1 {
  font-size: clamp(2.4rem, 3.3vw, 2.9rem);
  margin: 0 0 12px;
  color: #ffffff;
}

.kh-hero__subtitle {
  margin: 0 0 20px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.kh-section--light .kh-kicker {
  color: var(--kh-color-accent);
}

.kh-section--light .kh-hero__subtitle {
  color: var(--kh-color-muted);
}

.kh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.kh-hero__note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.kh-hero__panel {
  background: linear-gradient(145deg, #ffffff, #f7f7fc);
  border-radius: var(--kh-radius-lg);
  padding: 20px 20px 22px;
  color: var(--kh-color-primary-alt);
  box-shadow: var(--kh-shadow-soft);
}

.kh-hero__panel--dashboard {
  background: #102848;
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  padding: 14px 14px 14px;
}

.kh-hero__video {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.kh-hero__video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.kh-hero__mockup {
  margin: 18px 0 0;
  border-radius: var(--kh-radius-md);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 6, 77, 0.25);
}

.kh-hero__mockup img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
}

.kh-hero__mockup--secondary {
  margin-top: 24px;
}

.kh-dashboard__header {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.kh-badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kh-badge--green {
  background: #27bfa6;
  color: #ffffff;
}

.kh-badge--blue {
  background: #2e307d;
  color: #ffffff;
}

.kh-badge--purple {
  background: #7579a7;
  color: #ffffff;
}

.kh-dashboard__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.kh-dashboard__tiles--row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kh-dashboard__tiles--secondary {
  margin-top: 8px;
}

.kh-dashboard__tiles--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.kh-tile {
  background: #1f9cf5;
  border-radius: 6px;
  padding: 10px 10px 8px;
  border: none;
  color: #ffffff;
}

.kh-hero__panel--dashboard .kh-tile:nth-child(2) {
  background: #1abc9c;
}

.kh-hero__panel--dashboard .kh-tile:nth-child(3) {
  background: #7cc043;
}

.kh-hero__panel--dashboard .kh-tile:nth-child(4) {
  background: #9b59b6;
}

.kh-dashboard__tiles--secondary .kh-tile:nth-child(1),
.kh-dashboard__tiles--secondary .kh-tile:nth-child(2) {
  background: #1f9cf5;
}

.kh-dashboard__tiles--secondary .kh-tile:nth-child(3) {
  background: #ffb400;
}

.kh-dashboard__tiles--secondary .kh-tile:nth-child(4) {
  background: #34495e;
}

.kh-tile--wide {
  padding: 14px 16px;
}

.kh-tile h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.kh-tile__value {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--kh-color-primary-alt);
}

.kh-tile__label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kh-dashboard__charts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 2.2fr 1.2fr;
  gap: 10px;
}

.kh-chart {
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 10px 8px;
  position: relative;
  overflow: hidden;
}

.kh-chart__graph {
  position: relative;
  height: 42px;
  margin-bottom: 4px;
}

.kh-chart__graph::before {
  content: "";
  position: absolute;
  inset-inline: 4px;
  bottom: 6px;
  height: 2px;
  background: rgba(209, 213, 219, 0.9);
  border-radius: 999px;
}

.kh-chart__graph::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 10px;
  bottom: 14px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(34, 197, 94, 0.2) 8%,
      rgba(34, 197, 94, 0.9) 18%,
      rgba(34, 197, 94, 0.3) 32%,
      rgba(34, 197, 94, 0.85) 46%,
      rgba(34, 197, 94, 0.35) 66%,
      rgba(34, 197, 94, 0.9) 82%,
      transparent 100%
    );
  opacity: 0.6;
  clip-path: polygon(
    0% 80%,
    10% 20%,
    22% 35%,
    36% 10%,
    52% 30%,
    68% 15%,
    82% 40%,
    100% 25%
  );
}

.kh-chart__dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #ecfdf3;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.kh-chart__dot--1 {
  left: 10%;
  bottom: 16px;
}

.kh-chart__dot--2 {
  left: 24%;
  bottom: 26px;
}

.kh-chart__dot--3 {
  left: 40%;
  bottom: 12px;
}

.kh-chart__dot--4 {
  left: 56%;
  bottom: 24px;
}

.kh-chart__dot--5 {
  left: 72%;
  bottom: 14px;
}

.kh-chart__dot--6 {
  left: 88%;
  bottom: 28px;
}

.kh-chart__title {
  display: block;
  font-size: 0.75rem;
  color: #4b5563;
}

.kh-dashboard__note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.kh-tile__meta {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--kh-color-muted);
}

.kh-feature-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--kh-color-muted);
}

.kh-feature-list li::marker {
  color: var(--kh-color-accent);
}

/* ÍCONES (usando SVGs externos / pode trocar pelos seus do Flaticon) */

.kh-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kh-icon::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Substitua as URLs abaixo pelos SVGs/PNGs que você baixar do Flaticon */
.kh-icon--pacotes::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/679/679922.png");
}

.kh-icon--saida::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/1828/1828490.png");
}

.kh-icon--visitas::before,
.kh-icon-inline--visitas::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/753/753114.png");
}

.kh-icon--ocorrencias::before,
.kh-icon-inline--ocorrencias::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/11331/11331280.png");
}

.kh-icon--sindico::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/847/847969.png");
}

.kh-icon--comunicados::before,
.kh-icon-inline--comunicados::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/561/561127.png");
}

.kh-icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

.kh-icon-inline::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.kh-step-card {
  background: #ffffff;
  border-radius: var(--kh-radius-lg);
  padding: 16px 18px 14px;
  border: 1px solid rgba(0, 6, 77, 0.08);
  box-shadow: 0 10px 26px rgba(0, 6, 77, 0.04);
}

.kh-step-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(39, 191, 166, 0.08);
  color: var(--kh-color-accent);
  margin-bottom: 6px;
}

.kh-step-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.kh-step-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--kh-color-muted);
}

.kh-step-card__image {
  margin: 10px 0 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.18);
}

.kh-step-card__image img {
  display: block;
  width: 65%;
  height: auto;
  margin-inline: auto;
}

.kh-card--feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.kh-visitas-highlight {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 45px rgba(15, 35, 52, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kh-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.kh-carousel__track {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.kh-carousel__slide {
  margin: 0;
  display: none;
}

.kh-carousel__slide.is-active {
  display: block;
}

.kh-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.kh-carousel__arrow {
  border: none;
  background: rgba(15, 35, 52, 0.06);
  color: var(--kh-color-primary-alt);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.kh-carousel__arrow:hover {
  background: rgba(15, 35, 52, 0.12);
}

.kh-visitas-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--kh-color-muted);
}

.kh-visitas-steps strong {
  color: var(--kh-color-primary-alt);
}

.kh-feature-list--bullets {
  margin-top: 10px;
}

.kh-areas-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kh-areas-summary__item {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(15, 35, 52, 0.08);
}

.kh-areas-summary__item h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.kh-areas-summary__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--kh-color-muted);
}

.kh-feature-image {
  margin: 4px 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.16);
}

.kh-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.kh-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.kh-chip-list li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(0, 6, 77, 0.05);
  color: var(--kh-color-primary-alt);
}

.kh-dashboard__footer {
  margin-top: 12px;
  border-top: 1px dashed rgba(0, 6, 77, 0.08);
  padding-top: 10px;
  font-size: 0.78rem;
  color: var(--kh-color-muted);
}

/* BENEFÍCIOS / CARDS */

.kh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.kh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.kh-feature-grid {
  align-items: stretch;
}

.kh-grid-3--steps {
  align-items: flex-start;
}

.kh-how-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.kh-how-card__text {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--kh-color-primary-alt);
}

.kh-step-video {
  background: #ffffff;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 26px 70px rgba(15, 35, 52, 0.2);
  border: 1px solid rgba(15, 35, 52, 0.08);
}

.kh-step-video video {
  width: 100%;
  height: auto;
  max-height: 50vh;
  border-radius: 18px;
  display: block;
}

.kh-card {
  background: #ffffff;
  border-radius: var(--kh-radius-lg);
  padding: 20px 22px;
  box-shadow: 0 14px 40px rgba(0, 6, 77, 0.08);
}

.kh-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
}

.kh-card p {
  margin: 0;
  color: var(--kh-color-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.kh-card--pill {
  border-radius: 26px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(15, 35, 52, 0.08);
  border: 1px solid rgba(15, 35, 52, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kh-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.kh-card__icon::before {
  content: "";
  width: 36px;
  height: 36px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Reaproveitando os mesmos ícones usados nas badges */
.kh-card__icon--pacotes::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/679/679922.png");
}

.kh-card__icon--visitas::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/753/753114.png");
}

.kh-card__icon--ocorrencias::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/11331/11331280.png");
}

.kh-card__icon--comunicados::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/561/561127.png");
}

.kh-card__icon--delivery::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/1046/1046790.png");
}

.kh-card__icon--areas::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/6553/6553607.png");
}

.kh-card__list {
  margin: 4px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--kh-color-muted);
}

/* PLANOS E PREÇOS */

.kh-hero--pricing {
  background: linear-gradient(120deg, #132c57 0%, #132c57 55%, #f5861f 100%);
}

.kh-pricing__highlight {
  background: #102848;
  color: #ffffff;
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}

.kh-pricing__highlight p {
  margin: 0;
  font-size: 0.95rem;
}

.kh-pricing-grid {
  margin-top: 16px;
}

.kh-price-card {
  position: relative;
}

.kh-price-card__value {
  margin: 4px 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--kh-color-primary-alt);
}

.kh-price-card__value span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--kh-color-muted);
  margin-left: 2px;
}

.kh-price-card__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--kh-color-accent);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kh-price-card--recommended {
  border-color: rgba(99, 91, 255, 0.4);
  box-shadow: 0 26px 70px rgba(15, 35, 52, 0.22);
}

.kh-pricing__enterprise {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(15, 35, 52, 0.12);
}

.kh-pricing__enterprise h3 {
  margin: 0 0 6px;
}

.kh-pricing__enterprise p {
  margin: 0;
  color: var(--kh-color-muted);
  font-size: 0.95rem;
}

.kh-pricing__notes {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--kh-color-muted);
}

.kh-pricing__notes strong {
  color: var(--kh-color-primary-alt);
}

@media (max-width: 900px) {
  .kh-pricing__highlight {
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .kh-pricing__enterprise {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* BLOG */

.kh-hero--blog {
  background: linear-gradient(135deg, #132c57 0%, #132c57 60%, #f5861f 100%);
}

.kh-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.kh-blog-main {
  min-width: 0;
}

.kh-blog-post {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(15, 35, 52, 0.08);
}

.kh-blog-post__category {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--kh-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kh-blog-post__title {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.kh-blog-post__title a {
  color: var(--kh-color-primary-alt);
}

.kh-blog-post__title a:hover {
  text-decoration: underline;
}

.kh-blog-post__meta {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--kh-color-muted);
}

.kh-blog-post__excerpt p {
  margin: 0 0 8px;
}

.kh-blog-post__readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--kh-color-accent);
  font-weight: 500;
}

.kh-blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 35, 52, 0.12);
  border: 1px solid rgba(15, 35, 52, 0.06);
  margin-bottom: 22px;
}

.kh-blog-featured__media {
  border-radius: 18px;
  overflow: hidden;
  display: block;
  min-height: 280px;
  background: #102848;
}

.kh-blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kh-blog-featured__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 196, 155, 0.45), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 138, 0, 0.55), transparent 55%),
    linear-gradient(135deg, #102848, #132c57);
}

.kh-blog-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kh-blog-featured__title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.kh-blog-featured__title a {
  color: var(--kh-color-primary-alt);
}

.kh-blog-featured__title a:hover {
  text-decoration: underline;
}

.kh-blog-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kh-blog-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 35, 52, 0.08);
  border: 1px solid rgba(15, 35, 52, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kh-blog-card__media {
  display: block;
  background: #f0f4ff;
}

.kh-blog-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.kh-blog-card__placeholder {
  height: 190px;
  background:
    radial-gradient(circle at 20% 20%, rgba(19, 44, 87, 0.25), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(255, 138, 0, 0.25), transparent 55%),
    linear-gradient(135deg, #f6f8fc, #eef3ff);
}

.kh-blog-card__content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kh-blog-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.kh-blog-card__title a {
  color: var(--kh-color-primary-alt);
}

.kh-blog-card__title a:hover {
  text-decoration: underline;
}

.kh-blog-sidebar__section {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.08);
}

.kh-blog-sidebar__section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.kh-blog-sidebar__section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.kh-blog-sidebar__section a {
  color: var(--kh-color-primary-alt);
}

.kh-blog-sidebar__section a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .kh-blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-blog-sidebar {
    order: -1;
  }

  .kh-blog-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-blog-feed {
    grid-template-columns: minmax(0, 1fr);
  }
}

.navigation.pagination {
  margin-top: 24px;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--kh-color-primary-alt);
}

.navigation.pagination .page-numbers.current {
  background: linear-gradient(135deg, #ff9a1a, var(--kh-color-cta));
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 138, 0, 0.3);
}

.navigation.pagination .page-numbers:hover:not(.current) {
  border-color: rgba(15, 35, 52, 0.18);
  background: rgba(15, 35, 52, 0.04);
}

.kh-related-posts {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 35, 52, 0.08);
}

.kh-related-posts h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.kh-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.kh-related-post h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.kh-related-post a {
  color: var(--kh-color-primary-alt);
}

.kh-related-post a:hover {
  text-decoration: underline;
}

.kh-related-post__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--kh-color-muted);
}

.kh-blog-sidebar__section--filter form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kh-date-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--kh-color-muted);
}

.kh-date-filter input[type="date"] {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(15, 35, 52, 0.16);
  font-family: inherit;
  font-size: 0.9rem;
}

.kh-btn--full {
  width: 100%;
  justify-content: center;
}

.kh-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kh-search-form__field input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 35, 52, 0.18);
  font-family: inherit;
  font-size: 0.9rem;
}

/* BOTÃO FLUTUANTE WHATSAPP */

.kh-whatsapp-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.kh-whatsapp-fab__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kh-whatsapp-fab__icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.kh-whatsapp-fab__label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.8rem;
  white-space: nowrap;
}

.kh-whatsapp-fab:hover .kh-whatsapp-fab__label {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 720px) {
  .kh-whatsapp-fab {
    left: 12px;
    bottom: 12px;
  }
}

/* PÁGINAS LEGAIS (POLÍTICA / TERMOS) */

.kh-hero--legal {
  background: linear-gradient(135deg, #132c57 0%, #132c57 60%, #19c49b 100%);
}

.kh-legal-layout {
  display: flex;
  justify-content: center;
}

.kh-legal-card {
  width: min(960px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(15, 35, 52, 0.18);
  border: 1px solid rgba(15, 35, 52, 0.06);
  padding: 20px 22px 22px;
}

.kh-legal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 35, 52, 0.08);
  margin-bottom: 16px;
}

.kh-legal-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kh-color-muted);
}

.kh-legal-card__date {
  font-size: 0.85rem;
  color: var(--kh-color-primary-alt);
  font-weight: 500;
}

.kh-legal-card__body {
  font-size: 0.95rem;
  color: var(--kh-color-primary-alt);
}

.kh-legal-card__body h2,
.kh-legal-card__body h3 {
  margin-top: 1.2em;
}

.kh-legal-card__body p {
  line-height: 1.7;
}

@media (max-width: 720px) {
  .kh-legal-card {
    border-radius: 20px;
    padding: 18px 16px 20px;
  }

  .kh-legal-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* STEPS */

.kh-step {
  position: relative;
  background: #ffffff;
  border-radius: var(--kh-radius-lg);
  padding: 22px 20px 20px;
  border: 1px solid rgba(0, 6, 77, 0.08);
}

.kh-step__number {
  position: absolute;
  inset-inline-end: 20px;
  inset-block-start: 16px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.kh-step h3 {
  margin: 0 0 6px;
}

.kh-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--kh-color-muted);
}

.kh-step__image {
  margin: 12px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f8fc;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.12);
}

.kh-step__image img {
  width: 100%;
  height: auto;
  display: block;
}

.kh-step__images {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .kh-step__images {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CTA FINAL */

.kh-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kh-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kh-cta h2 {
  margin-top: 0;
  color: #ffffff;
}

.kh-cta p {
  margin-bottom: 0;
  color: #ffffff;
}

/* FOOTER */

.kh-footer {
  background: #0b1f3f;
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 0;
  font-size: 0.85rem;
}

.kh-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kh-footer nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.kh-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.kh-footer a:hover {
  color: #ffffff;
}

/* RESPONSIVO */

@media (max-width: 900px) {
  .kh-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-feature-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* No mobile, manter o conteúdo (título/subtítulo/botões) antes
     do vídeo e do mini-dashboard */
  .kh-hero__content {
    order: 0;
  }

  .kh-hero__panel {
    order: 1;
  }

  .kh-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-section__header--wide {
    text-align: center;
  }

  .kh-cta {
    flex-direction: column;
    text-align: center;
  }

  .kh-section__header {
    text-align: left;
    margin-inline: 0;
  }

  .kh-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .kh-hero__panel--dashboard {
    margin-top: 24px;
  }

  /* Melhorar legibilidade no mobile (hero tem fundo escuro/gradiente) */
  .kh-hero__subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.08rem;
    line-height: 1.45;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  }

  .kh-hero__note {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  }

  .kh-hero .kh-btn--ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
  }

  .kh-hero .kh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .kh-dashboard__tiles--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kh-dashboard__charts {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Header mobile: botão hambúrguer no canto direito
     e menu flutuante que abre por cima do conteúdo */
  .kh-header__toggle {
    display: inline-flex;
  }

  .kh-nav {
    position: fixed;
    inset-inline: 16px;
    top: 64px;
    border-radius: 18px;
    padding: 14px 18px;
    background: rgba(0, 3, 24, 0.98);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--kh-transition-fast), transform var(--kh-transition-fast);
  }

  .kh-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .kh-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .kh-nav a {
    color: #e5f0ff;
    font-size: 1rem;
  }

  .kh-nav a::after {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
  }

  .kh-header__cta {
    display: none;
  }
}

