html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}


.nav-header {

}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  margin-left: auto;
}

section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

#results section {
  padding: 0;
}

#menu {
  display: block;
}

#mobile-menu {
  display: none;
}

.app {
  display: grid;
  grid-template-columns: 180px 1fr;
}

aside#menu {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.content {
  overflow-y: auto;
  min-height: calc(100dvh - 64px);
}

.kari-link {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .nav-register {
    display: none;
  }

  #menu {
    display: none;
  }

  #mobile-menu {
    display: block;
  }

  main.container {
    display: block;
  }

  fieldset[role="group"] {
    display: flex;
    flex-direction: column;
  }

  fieldset[role="group"] input {
    margin-right: 0;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  fieldset[role="group"] input[type="submit"] {
    width: 100%;
  }
}


table tbody tr.call {
  cursor: pointer;
  transition: background-color 0.2s;
  height: 4rem;
}

table tbody tr.call:hover {
  filter: brightness(0.95);
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  overflow-y: auto;
  /* border: 1px solid var(--pico-muted-border-color); */
  /* border-radius: var(--pico-border-radius); */
}

.message {
  padding: .6rem;
  margin: 0;
  max-width: 85%;
}

.message.assistant {
  background-color: transparent;
  margin-right: auto;
}

.message p {
  padding: 0;
  margin: 0;
  border-radius: 8px;
}

.message.user {
  background-color: var(--pico-primary-background);
  color: #fff;
  margin-left: auto;
  border-radius: 8px;

  p {
    color: #fff;
  }
}

.message.tool {
  padding: 0;
}

#chat {
  position: relative;
}

.new-chat-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .new-chat-button {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

.summary-content h4 {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.summary-section {
  margin-bottom: 1.5rem;
}


.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.call-status {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.call-metadata {
  text-align: right;
}

.center {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0rem;
  margin: 2rem 0;
}

.pricing-card {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--pico-primary);
  border-width: 2px;
}

.pricing-card h3 {
  margin-bottom: 1rem;

}

.price {
  margin-bottom: 1rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--pico-primary);
}

.price .period {
  font-size: 1rem;
  color: var(--pico-muted-color);
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  margin-bottom: 0.5rem;
}

.plan-features {
  margin: 2rem 0;
  text-align: center;
  display: flex;
  justify-content: space-around;
}

.plan-features ul {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-footer {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .price .amount {
    font-size: 2rem;
  }
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.5rem;
  background-color: var(--pico-card-background-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  margin-bottom: 1rem;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1rem;
  }
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--pico-border-radius);
  background-color: var(--pico-card-background-color);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--pico-primary);
  display: block;
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}


@media (max-width: 768px) {
  .stats-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

.hero-section {
  text-align: center;
  padding: 4rem 1rem;
  margin-bottom: 0;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.section-alt {
  background-color: var(--pico-background-color);
}

.section-image-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-image-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-image-right .content {
  order: 1;
}

.section-image-right .visual {
  order: 2;
}

.section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.section-visual img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.problem-highlight {
  margin: 3rem 0;
}

.demo-cta {
  padding: 2rem;
  text-align: center;
  margin: 6rem 0 2rem 0;
}



.demo-cta a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}


.benefit-card h3 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-image-left,
  .section-image-right {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-image-right .content,
  .section-image-right .visual {
    order: unset;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
