.home-hero {
  --hero-drift-start: translate3d(14%, 7%, 0);
  --hero-drift-end: translate3d(-17%, -9%, 0);
  --muted: #30485f;
  --orange-dark: #a63d00;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(50px, 5.4vw, 88px);
  background: var(--public-hero-background);
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.home-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.45rem, 4.1vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: pretty;
}

.home-hero-copy h1 em {
  color: var(--orange-dark);
  font-style: normal;
}

.home-hero-copy > p {
  max-width: 43ch;
  margin-top: 24px;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero-actions .k-btn,
.home-close .k-btn {
  min-height: 50px;
}

.home-hero-copy .home-trial-note {
  margin-top: 12px;
  font-size: .875rem;
}

.home-hero-copy .home-plan-note {
  margin-top: 2px;
  font-size: .875rem;
}

.home-demo {
  min-width: 0;
}

.home-demo picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 48px #102b4826;
}

.home-demo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-demo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .8125rem;
  text-align: right;
}

.home-section {
  padding-block: clamp(62px, 7vw, 104px);
}

.home-section h2,
.home-close h2 {
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.home-section-heading {
  width: min(100%, 690px);
}

.home-section-heading p {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 1.0625rem;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.home-steps > li {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.home-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--orange-dark);
  font-size: .875rem;
  font-weight: 700;
}

.home-steps h3 {
  font-size: 1.375rem;
  text-wrap: pretty;
}

.home-steps p {
  max-width: 39ch;
  margin-top: 10px;
}

.home-use-cases {
  background: var(--navy);
  color: #fff;
}

.home-use-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(24px, 6vw, 96px);
}

.home-use-layout h2 {
  max-width: 16ch;
  text-wrap: pretty;
}

.home-use-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-use-list li {
  display: grid;
  grid-template-columns: minmax(8rem, .6fr) minmax(0, 1.4fr);
  gap: 6px 24px;
  padding-block: 18px;
  border-top: 1px solid #557089;
}

.home-use-list li:last-child {
  border-bottom: 1px solid #557089;
}

.home-use-list h3 {
  font-size: 1.125rem;
  letter-spacing: -.02em;
  line-height: 1.5;
  text-wrap: pretty;
}

.home-use-list p {
  color: #d4e1ed;
}

.home-pricing {
  background: var(--surface);
}

.home-table-hint {
  display: none;
}

.home-table-scroll {
  margin-top: 32px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scrollbar-color: #8296aa var(--surface);
}

.home-plan-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: left;
}

.home-plan-table th,
.home-plan-table td {
  padding: clamp(14px, 2vw, 24px);
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.home-plan-table tr > :first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  width: 15%;
  border-right: 1px solid var(--line);
  background: #fff;
  font-size: .9375rem;
}

.home-plan-table thead th {
  border-top: 3px solid #dce3e9;
}

.home-plan-table .home-plan-pro {
  background: #eaf1f8;
}

.home-plan-table thead .home-plan-pro {
  border-top-color: var(--orange);
}

.home-plan-name,
.home-plan-description {
  display: block;
}

.home-plan-name {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -.025em;
}

.home-plan-description,
.home-price-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.45;
}

.home-price {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.home-price span,
.home-price small {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.home-price-custom {
  font-size: clamp(1rem, 2vw, 1.5rem);
  white-space: normal;
}

.home-table-scroll .k-btn {
  padding-inline: 12px;
}

.home-pricing-note {
  margin-top: 14px;
  font-size: .875rem;
}

.home-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px 50px;
  margin-top: clamp(40px, 6vw, 72px);
}

.home-faq h3 {
  max-width: 20ch;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.home-faq details {
  border-top: 1px solid var(--line);
}

.home-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.home-faq summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 6px 12px 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  transform: rotate(45deg);
  content: "";
}

.home-faq details[open] summary::after {
  transform: rotate(225deg);
}

.home-faq details p {
  max-width: 65ch;
  padding: 0 26px 17px 0;
}

.home-close {
  padding-block: clamp(50px, 6vw, 82px);
  background: #fbe0c9;
}

.home-close-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 28px 48px;
}

.home-close p {
  margin-top: 12px;
  font-size: 1.0625rem;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero::before {
    position: absolute;
    z-index: -1;
    inset: -25% -28%;
    background: radial-gradient(ellipse at 58% 56%, rgb(219 120 67 / .36), rgb(232 142 91 / .24) 26%, transparent 57%);
    content: "";
    pointer-events: none;
    animation: home-hero-drift 38s linear infinite alternate paused;
  }

  .home-close .k-btn.primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .home-close .k-btn.primary::after {
    position: absolute;
    z-index: -1;
    inset: -35% auto -35% 0;
    width: 44%;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / .75), transparent);
    content: "";
    pointer-events: none;
    animation: home-close-shine 7.4s linear infinite paused;
  }

  .k-landing:not(.motion-document-hidden) .home-hero.motion-in-view::before,
  .k-landing:not(.motion-document-hidden) .home-close .k-btn.primary.motion-in-view::after {
    animation-play-state: running;
  }

  @keyframes home-hero-drift {
    from {
      opacity: .28;
      transform: var(--hero-drift-start);
    }

    18%, to {
      opacity: 1;
    }

    to {
      transform: var(--hero-drift-end);
    }
  }

  @keyframes home-close-shine {
    0%, 4% {
      opacity: 0;
      transform: translateX(-135%) skewX(-16deg);
    }

    6%, 12% {
      opacity: .85;
    }

    16%, 100% {
      opacity: 0;
      transform: translateX(320%) skewX(-16deg);
    }
  }
}

@media (max-width: 900px) {
  .home-hero {
    --hero-drift-start: translate3d(12%, -14%, 0);
    --hero-drift-end: translate3d(-16%, 16%, 0);
    padding-block: 42px 52px;
  }

  .home-hero-layout,
  .home-use-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-copy h1 {
    max-width: 20ch;
    font-size: clamp(2.3rem, 6.4vw, 3.25rem);
  }

  .home-hero-copy > p {
    margin-top: 16px;
  }

  .home-hero-actions {
    margin-top: 20px;
  }

  .home-hero-actions .k-btn.secondary {
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
  }

  .home-demo figcaption {
    text-align: left;
  }

  .home-use-layout h2 {
    max-width: 26ch;
  }
}

@media (max-width: 800px) {
  .home-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home-steps > li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
    padding-block: 18px;
  }

  .home-step-number {
    grid-row: span 2;
    align-self: start;
    margin: 0;
  }

  .home-steps p {
    max-width: 52ch;
    margin-top: 0;
    grid-column: 2;
  }

  .home-plan-table tr > :first-child {
    width: 105px;
    font-size: .8125rem;
  }

  .home-price {
    font-size: 1.75rem;
  }

  .home-price-custom {
    font-size: 1.125rem;
  }

  .home-close-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 758px) {
  .home-table-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: .875rem;
  }

  .home-table-hint svg {
    width: 18px;
    height: 18px;
  }

  .home-table-scroll {
    margin-top: 8px;
  }

}

@media (max-width: 540px) {
  .k-home .wa-widget.demo-in-view:not(:focus-within) {
    display: none;
  }
}

@media (max-width: 520px) {
  .home-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .home-hero-actions .k-btn {
    padding-inline: 13px;
  }

  .home-use-list li {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .home-plan-table {
    min-width: 650px;
  }

  .home-plan-table tr > :first-child {
    width: 92px;
  }

  .home-plan-table th,
  .home-plan-table td {
    padding-inline: 10px;
  }
}

/* Demonstração das funções do Kaptis */
.home-tour {
  margin-top: clamp(44px, 6vw, 80px);
}

.home-tour .home-section-heading h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.7vw, 2.65rem);
  line-height: 1.12;
}

.home-tour .home-section-heading p {
  max-width: 54ch;
}

.home-tour-stage {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.home-tour-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.home-tour-tabs[hidden],
.home-tour-panel[hidden] {
  display: none;
}

.home-tour-tabs button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(.78rem, 1.3vw, .925rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.home-tour-tabs button:hover {
  background: var(--cream);
}

.home-tour-tabs button[aria-selected="true"] {
  border-color: #ecd2be;
  background: var(--cream);
  color: var(--orange-dark);
}

.home-tour-tabs button:focus-visible,
.home-tour-panel:focus-visible {
  outline-offset: -3px;
}

.home-tour-tabs svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.home-tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.8vw, 52px);
  padding: clamp(18px, 3vw, 36px);
}

.home-tour-panel + .home-tour-panel {
  border-top: 1px solid var(--line);
}

.home-tour-tabs:not([hidden]) ~ .home-tour-panel {
  border-top: 0;
}

.home-tour-visual {
  min-width: 0;
  margin: 0;
}

.home-tour-visual picture {
  display: block;
}

.home-tour-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home-tour-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 9px;
  color: var(--muted);
  font-size: .8125rem;
}

.home-tour-visual a,
.home-tour-original a,
.home-tour-plans a {
  color: var(--orange-dark);
  font-weight: 700;
  text-underline-offset: .17em;
}

.home-tour-visual a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.home-tour-visual a svg {
  width: 15px;
  height: 15px;
}

.home-tour-copy h4 {
  max-width: 24ch;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.home-tour-copy p,
.home-tour-copy li {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.home-tour-copy ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.home-tour-copy li::marker {
  color: var(--orange-dark);
}

.home-tour-original {
  margin-top: 16px;
}

.home-tour-new-tab {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-tour-plans {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 760px) {
  .home-tour-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }
}

@media (max-width: 540px) {
  .home-tour-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tour-tabs button {
    min-height: 48px;
  }

  .home-tour-tabs svg {
    width: 18px;
    height: 18px;
  }

  .home-tour-panel {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-tour-panel.is-entering .home-tour-visual img {
    animation: home-tour-switch 210ms cubic-bezier(.16, 1, .3, 1) both;
  }

  @keyframes home-tour-switch {
    from {
      clip-path: inset(0 0 0 2.5%);
      opacity: .45;
    }
    to {
      clip-path: inset(0);
      opacity: 1;
    }
  }
}

/* Animação da marca ao recarregar */
.home-brand {
  display: grid;
}

.home-brand .k-logo {
  grid-area: 1 / 1;
}

.home-brand-wordmark {
  clip-path: inset(0 0 0 31%);
}

.home-brand-mark {
  clip-path: inset(0 69% 0 0);
  transform-origin: 14.6% 49.5%;
}

@media (prefers-reduced-motion: no-preference) {
  .home-brand-mark.is-reloading {
    animation: home-brand-reload 520ms cubic-bezier(.2, .72, .38, 1);
  }

  @keyframes home-brand-reload {
    0% {
      transform: rotate(-9deg) scale(.78);
    }
    68% {
      transform: rotate(2deg) scale(1.06);
    }
    100% {
      transform: none;
    }
  }
}

/* Operação ao vivo */
.home-operation {
  background: #eef3f9;
}

.home-operation-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.home-operation-copy h2 {
  max-width: 14ch;
  text-wrap: pretty;
}

.home-operation-copy p,
.home-operation-copy li {
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.55;
}

.home-operation-copy p {
  margin: 16px 0;
}

.home-operation-copy ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.25em;
}

.home-operation-copy li::marker {
  color: var(--orange-dark);
}

.home-operation-panel {
  --operation-primary: #244a79;
  --operation-secondary: #6089b6;
  --operation-tertiary: #c76731;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

.home-operation-panel figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 16px clamp(16px, 2.5vw, 30px);
  border-bottom: 1px solid var(--line);
  background: #f6f8fb;
}

.home-operation-panel figcaption strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.home-operation-panel figcaption span,
.home-operation-channel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .8125rem;
}

.home-operation-metrics,
.home-operation-legend {
  margin: 0;
}

.home-operation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(16px, 2.5vw, 30px);
}

.home-operation-metrics > div {
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 21px 12px;
  border-right: 1px solid var(--line);
}

.home-operation-metrics > div:first-child {
  padding-left: 0;
}

.home-operation-metrics > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-operation-metrics dt {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 550;
  line-height: 1.3;
}

.home-operation-metrics dd {
  margin: 0;
  color: var(--operation-primary);
  font-size: clamp(1.6rem, 3.15vw, 2.25rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.home-operation-metrics small {
  font-size: .8rem;
}

.home-operation-channels {
  padding: 18px clamp(16px, 2.5vw, 30px) 22px;
  border-top: 1px solid var(--line);
}

.home-operation-channel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.home-operation-channel-heading h3 {
  margin: 0;
  font-size: .92rem;
  letter-spacing: 0;
}

.home-operation-distribution {
  display: grid;
  grid-template-columns: 8fr 3fr 1fr;
  gap: 3px;
  height: 8px;
  overflow: hidden;
  margin: 14px 0 10px;
  border-radius: 3px;
}

.home-operation-distribution span:first-child,
.home-operation-legend div:first-child dt::before {
  background: var(--operation-primary);
}

.home-operation-distribution span:nth-child(2),
.home-operation-legend div:nth-child(2) dt::before {
  background: var(--operation-secondary);
}

.home-operation-distribution span:last-child,
.home-operation-legend div:last-child dt::before {
  background: var(--operation-tertiary);
}

.home-operation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 17px;
  font-size: .8125rem;
}

.home-operation-legend > div,
.home-operation-legend dt {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-operation-legend dt::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.home-operation-legend dd {
  margin: 0;
  color: var(--operation-primary);
  font-weight: 750;
}

@media (max-width: 880px) {
  .home-operation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-operation-copy h2 {
    max-width: 20ch;
  }
}

@media (max-width: 540px) {
  .home-operation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-operation-metrics > div {
    padding-block: 14px;
  }

  .home-operation-metrics > div:nth-child(odd) {
    padding-left: 0;
  }

  .home-operation-metrics > div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

  .home-operation-metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Acompanhamento dos atendimentos */
.home-follow-up-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 36px;
}

.home-follow-up-feature {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.home-follow-up-feature h3,
.home-follow-up-campaign h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.home-follow-up-feature p {
  max-width: 55ch;
}

.home-follow-up-media {
  min-width: 0;
  margin-top: 6px;
}

.home-follow-up-frame {
  display: grid;
  min-height: clamp(124px, 12vw, 162px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e8ebef;
}

.home-follow-up-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.home-follow-up-frame--compact img {
  width: min(100%, 334px);
}

.home-follow-up-media figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: .8125rem;
}

.home-follow-up-media a {
  color: var(--orange-dark);
  font-weight: 700;
}

.home-follow-up-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 8px 24px;
  align-items: baseline;
  margin-top: 33px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 12px;
  background: var(--cream);
}

@media (max-width: 740px) {
  .home-follow-up-grid,
  .home-follow-up-campaign {
    grid-template-columns: minmax(0, 1fr);
  }
}
