/* FHIR Server Page Styles - Pixel perfect match */

/* What is Aidbox Section - Matched to original what-is__card */
.aidbox-features-section {
  padding: 80px 0;
  background: white;
}

.aidbox-features-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
}

/* Grid: 4 columns, 16px gap, no borders */
.aidbox-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Card: flex column, 24px padding, rounded, gray bg */
.aidbox-feature-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #f9fafb;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  gap: 24px;
  transition: all 0.2s;
}

.aidbox-feature-card:hover {
  background-color: rgba(234, 74, 53, 0.1);
}

/* Bento layout: first card spans 2 columns */
.aidbox-feature-card--wide {
  grid-column: span 2;
}

/* Card header: icon + title */
.aidbox-feature-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.aidbox-feature-icon {
  width: 40px;
  height: 40px;
}

.aidbox-feature-title {
  font-size: 20px;
  font-weight: 600;
  color: #353b50;
  line-height: 1.3;
}

/* Card body: tags + description */
.aidbox-feature-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tags: flex wrap, small gap */
.aidbox-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Individual tag: gray pill style */
.aidbox-tag {
  padding: 2px 8px;
  background: #ebeff2;
  color: rgba(53, 59, 80, 0.6);
  font-size: 13px;
  font-weight: 400;
  border-radius: 6px;
  line-height: 1.6;
}

/* Description text */
.aidbox-feature-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(53, 59, 80, 0.7);
  margin: 0;
}

.aidbox-features-footer {
  text-align: center;
  margin-top: 32px;
}

.technical-features-link {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.technical-features-link:hover {
  color: var(--color-primary);
}

/* Use Cases Section */
.use-cases-section {
  padding: 80px 0;
  background: #f4f8fb;
}

.use-cases-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

/* Generic Tabs Component */
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.tabs-trigger {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tabs-trigger:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tabs-trigger.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.tabs-panel {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Use Cases specific styling */
.use-case-panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.use-case-image img {
  width: 100%;
  border-radius: 8px;
}

.use-case-stories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.use-case-story {
  padding-left: 24px;
  border-left: 3px solid var(--color-primary);
}

.story-company {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.story-type {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.use-case-story p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Sample Projects Section */
.sample-projects-section {
  padding: 80px 0;
  background: white;
}

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

.sample-project-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sample-project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}

.sample-project-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.sample-project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sample-project-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.sample-project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 20px;
  flex-grow: 1;
}

.sample-project-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sample-project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f4f8fb;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.sample-project-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.sample-project-link:hover {
  opacity: 0.8;
}

/* Deploy Section */
.deploy-section {
  padding: 80px 0;
  background: white;
}

.deploy-header {
  text-align: center;
  margin-bottom: 48px;
}

.deploy-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.deploy-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.deploy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.deploy-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.deploy-option {
  padding: 24px;
  background: #f4f8fb;
  border-radius: 12px;
}

.deploy-option h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.deploy-option p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.deploy-image img {
  width: 100%;
  border-radius: 12px;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f4f8fb 0%, #f9fbfc 100%);
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #353b50;
  margin-bottom: 12px;
}

.pricing-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  background: white;
  padding: 4px;
  border-radius: 24px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pricing-tab {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-tab:hover {
  color: #333;
}

.pricing-tab.active {
  background: #353b50;
  color: white;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(53, 59, 80, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pricing-card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 28px;
}

.pricing-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pricing-card-header {
  flex-grow: 1;
}

.pricing-card-header h3,
.pricing-card-name {
  font-size: 22px;
  font-weight: 700;
  color: #353b50;
  margin: 0 0 12px;
}

.pricing-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.pricing-amount span {
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

.pricing-amount.talk-to-sales {
  font-size: 20px;
}

.pricing-card-header p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 24px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  border-radius: 8px;
}

.pricing-card .btn-primary {
  background: var(--color-primary);
  color: white;
}

.pricing-card .btn-outline {
  background: transparent;
  border: 1px solid rgba(53, 59, 80, 0.15);
  color: #353b50;
}

.pricing-card .btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* First pricing card (Dev) - red outline button */
.pricing-card:first-child .btn-outline {
  border-color: var(--color-primary);
  color: #353b50;
}

.pricing-card:first-child .btn-outline:hover {
  background: rgba(234, 74, 53, 0.05);
}

/* Support Plans Section */
.support-plans-section {
  padding: 48px 0 80px;
  background: linear-gradient(180deg, #f9fbfc 0%, #f4f8fb 100%);
}

.support-title {
  font-size: 28px;
  font-weight: 700;
  color: #353b50;
  text-align: center;
  margin-bottom: 40px;
}

.support-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.support-plan {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.support-plan.recommended {
  border: 2px dashed var(--color-primary);
  position: relative;
}

.support-plan-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.support-plan-header h4 {
  font-size: 22px;
  font-weight: 700;
  color: #353b50;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.recommended-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #fff0ee;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.support-price span {
  font-size: 14px;
  font-weight: 400;
  color: #999;
}

.support-contact {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.support-contact:hover {
  text-decoration: underline;
}

.support-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-features li {
  padding: 10px 0;
  padding-left: 28px;
  font-size: 14px;
  color: #666;
  position: relative;
  line-height: 1.4;
}

.support-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EA4A35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.support-features li.support-included {
  padding-left: 0;
  font-weight: 600;
  color: #353b50;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.support-features li.support-included::before {
  display: none;
}

.support-cta {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.support-cta p {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
}

/* Add-ons Section */
.addons-section {
  padding: 80px 0;
  background: #f8f9fb;
}

.addons-header {
  text-align: center;
  margin-bottom: 48px;
}

.addons-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.addons-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.addons-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.addons-row {
  display: grid;
  gap: 24px;
}

.addons-row--top {
  grid-template-columns: 1fr 1fr;
}

.addons-row--bottom {
  grid-template-columns: 1fr 1fr;
}

.addons-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.addon-card {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #eee;
}

.addon-card--featured {
  display: flex;
  flex-direction: column;
}

.addon-image {
  margin: 16px 0 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.addon-image img {
  width: 100%;
  height: auto;
  display: block;
}

.addon-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.addon-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 16px;
}

.addon-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.addon-link:hover {
  text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: #f4f8fb;
}

.testimonials-carousel {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.testimonials-slides {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 48px 64px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.testimonial-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-nav:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
  text-align: left;
  width: 100%;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-logo {
  margin-bottom: 32px;
}

.testimonial-logo img {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.testimonial-card:hover .testimonial-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.testimonial-quote {
  margin-bottom: 32px;
}

.testimonial-quote p {
  font-size: 18px;
  line-height: 1.8;
  color: #353b50;
  margin: 0;
  font-style: normal;
}

.testimonial-author {
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: #353b50;
  margin: 0 0 4px;
}

.testimonial-title {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* Community Section */
.community-section {
  padding: 80px 0;
  background: white;
}

.community-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.community-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.community-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
}

.community-benefits {
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .aidbox-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aidbox-feature-card--wide {
    grid-column: span 2;
  }

  .use-case-panel.active {
    grid-template-columns: 1fr;
  }

  .sample-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deploy-content {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .support-plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .addons-row--top,
  .addons-row--bottom {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .aidbox-features-grid {
    grid-template-columns: 1fr;
  }

  .aidbox-feature-card--wide {
    grid-column: span 1;
  }

  .use-cases-tabs {
    flex-wrap: wrap;
  }

  .sample-projects-grid {
    grid-template-columns: 1fr;
  }

  .addons-row--top,
  .addons-row--bottom {
    grid-template-columns: 1fr;
  }

  .addons-stack {
    gap: 24px;
  }

  .testimonials-carousel {
    flex-direction: column;
    gap: 16px;
  }

  .testimonials-slides {
    padding: 32px 24px;
    min-height: auto;
  }

  .testimonial-quote p {
    font-size: 16px;
  }

  .testimonial-nav {
    width: 40px;
    height: 40px;
  }

  .testimonials-carousel .testimonial-nav--prev,
  .testimonials-carousel .testimonial-nav--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .testimonial-nav--prev {
    left: -8px;
  }

  .testimonial-nav--next {
    right: -8px;
  }
}
