/* ===== Flexible Plans Section ===== */
.plans-section {
  background: #ffffff;
  padding: 5rem 2.5rem 4rem;
  font-family: var(--font, 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  border-radius: 2rem 2rem 0 0;
  position: relative;
  z-index: 3;
  margin: -2rem 0 0;
}

.plans-container {
  max-width: 1300px;
  margin: 0 auto;
}

.plans-title {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: 80px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.plans-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #666666;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 3.5rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.plan-card {
  background: #f5f5f5;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.plan-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plan-card-title {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.plan-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.plan-toggle-label {
  font-size: 0.875rem;
  color: #666666;
}

.plan-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background: #4a4a4a;
  border-radius: 26px;
  transition: background 0.2s ease;
}

.plan-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.plan-toggle-input:checked + .plan-toggle-slider {
  background: var(--accent-green, #22c55e);
}

.plan-toggle-input:checked + .plan-toggle-slider::before {
  transform: translateX(22px);
}

.plan-card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #666666;
  margin-bottom: 2rem;
}

.plan-included-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.875rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 0.5rem;
}

.plan-features li::before {
  content: '*';
  position: absolute;
  left: 0;
  font-size: 0.75em;
  color: #666666;
}

.plan-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.plan-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.plan-price-value {
  font-family: var(--font-utility, 'Oswald', var(--font-brand));
  font-size: 2.75rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.plan-price-period,
.plan-price-starts {
  font-size: 0.875rem;
  color: #666666;
}

.plan-cta {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--accent-green, #22c55e);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.plan-cta:not(.plan-cta-black):hover {
  background: #1ea34f;
  transform: translateY(-1px);
}

.plan-cta-black {
  background: #1a1a1a;
  color: #ffffff;
  border: 2px solid transparent;
}

.plan-cta.plan-cta-black:hover {
  background: #333333;
  color: #ffffff;
  transform: translateY(-1px);
  border: 2px solid var(--accent-green, #22c55e);
}

/* ===== Clients Section ===== */
.clients-section {
  background: #ffffff;
  padding: 5rem 3rem 6rem;
  font-family: var(--font, 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  border-radius: 0;
  position: relative;
  z-index: 4;
  margin: 0;
}

.clients-container {
  max-width: 1300px;
  margin: 0 auto;
}

.clients-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 3.5rem;
  align-items: start;
}

/* Left: heading + desc */
.clients-left {
  padding-top: 1rem;
}

.clients-title {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: 80px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.clients-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #666666;
  white-space: pre-line;
}

/* Center: main image + avatars */
.clients-center {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.clients-image-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
}

.clients-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
  vertical-align: top;
  transition: opacity 0.38s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.clients-section.clients-section--switching .clients-main-image {
  opacity: 0;
  transform: scale(1.03);
}

.clients-testimonial > .clients-header,
.clients-testimonial > .clients-quote,
.clients-testimonial > .clients-body,
.clients-testimonial > .clients-author {
  transition: opacity 0.34s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.clients-section.clients-section--switching .clients-testimonial > .clients-header,
.clients-section.clients-section--switching .clients-testimonial > .clients-quote,
.clients-section.clients-section--switching .clients-testimonial > .clients-body,
.clients-section.clients-section--switching .clients-testimonial > .clients-author {
  opacity: 0;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  .clients-main-image,
  .clients-testimonial > .clients-header,
  .clients-testimonial > .clients-quote,
  .clients-testimonial > .clients-body,
  .clients-testimonial > .clients-author {
    transition: none !important;
    will-change: auto;
  }

  .clients-section.clients-section--switching .clients-main-image,
  .clients-section.clients-section--switching .clients-testimonial > .clients-header,
  .clients-section.clients-section--switching .clients-testimonial > .clients-quote,
  .clients-section.clients-section--switching .clients-testimonial > .clients-body,
  .clients-section.clients-section--switching .clients-testimonial > .clients-author {
    opacity: 1;
    transform: none;
  }
}

.clients-avatars {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  gap: 0;
}

.clients-avatars-count {
  padding-left: 0.25rem;
}

.clients-avatar-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateX(0);
}

.clients-avatar-dot + .clients-avatar-dot {
  margin-left: -10px; /* create overlapping effect */
}

.clients-avatar-dot-red {
  background: #e53935;
}

.clients-avatar-dot--photo {
  padding: 0;
  overflow: hidden;
  background: #e8e8e8;
  border-radius: 50%;
  aspect-ratio: 1;
}

.clients-avatar-dot--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 50%;
}

.clients-avatar-dot-black {
  background: #000000;
  color: #ffffff;
}

.clients-avatar.clients-avatar-dot-red.clients-avatar-active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #e53935;
  z-index: 1;
}

.clients-avatar.clients-avatar-dot--photo.clients-avatar-active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #e53935;
  z-index: 1;
}

.clients-avatar[data-t-index] {
  cursor: pointer;
  transition: box-shadow 0.28s ease, transform 0.2s ease;
}

/* Right: testimonial content */
.clients-right {
  padding-top: 0.5rem;
}

.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.clients-brand {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.clients-stars {
  font-size: 1rem;
  color: #e53935;
  letter-spacing: 0.08em;
}

.clients-quote {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}

.clients-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 1.75rem;
}

.clients-author strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.clients-author span {
  font-size: 0.9375rem;
  color: #666666;
}

/* ===== FAQ Section ===== */
.faq-section {
  background: #ffffff;
  padding: 5rem 2.5rem 6rem;
  font-family: var(--font, 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  border-radius: 0 0 2rem 2rem;
  position: relative;
  z-index: 5;
  margin: 0 0 -2rem;
}

.faq-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 6rem;
  align-items: start;
  width: 100%;
  overflow-x: clip;
}

.faq-left {
  padding-top: 0.5rem;
  min-width: 0;
}

.faq-right {
  min-width: 0;
}

.faq-title {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: 80px !important;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #888888;
  margin-bottom: 1.5rem;
  max-width: min(260px, 100%);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-ask {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-green, #22c55e);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.faq-ask:hover {
  gap: 0.5rem;
  color: #16a34a;
}

.faq-ask__text {
  color: #0a0a0a;
}

.faq-ask:hover .faq-ask__text {
  color: #0a0a0a;
}

.faq-ask svg {
  flex-shrink: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  min-width: 0;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  opacity: 1;
  min-width: 0;
}

/* Smooth height on answers — avoid opacity on ::details-content (causes faded summaries in some browsers) */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    overflow: clip;
    height: 0;
    transition: height 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .faq-item[open]::details-content {
    height: auto;
  }
}

@supports not (interpolate-size: allow-keywords) {
  .faq-item[open] > .faq-answer {
    animation: faqAnswerReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes faqAnswerReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #1a1a1a;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
  border-radius: 4px;
  opacity: 1;
  min-width: 0;
}

.faq-question:hover {
  color: #0a0a0a;
}

.faq-question:hover .faq-question-text {
  color: #0a0a0a;
}

.faq-question:hover .faq-num {
  color: #1a1a1a;
}

.faq-question:hover .faq-chevron {
  color: #1a1a1a;
}

.faq-question:focus {
  outline: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent-green, rgb(91, 240, 158));
  outline-offset: 2px;
}

.faq-question-text {
  flex: 1;
  min-width: 0;
  color: #1a1a1a;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.faq-question-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.faq-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a4a4a;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.faq-chevron {
  flex-shrink: 0;
  color: #6a6a6a;
  transform-origin: 50% 50%;
  transition:
    transform 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    color 0.25s ease;
}

.faq-item[open] .faq-num {
  color: #1a1a1a;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #1a1a1a;
}

.faq-item[open] .faq-question .faq-question-text {
  color: #0a0a0a;
}

/* Answer reveal: animate inside the panel only (not the whole ::details-content) */
.faq-answer {
  padding-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.32s ease-out 0.04s,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
  min-width: 0;
  color: #1a1a1a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-item[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  color: #5a5a5a;
  margin: 0;
  padding-left: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-answer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content {
    transition: none;
  }

  .faq-item[open] > .faq-answer {
    animation: none;
  }

  .faq-answer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-chevron {
    transition: color 0.2s ease;
  }

  .faq-question,
  .faq-question-text,
  .faq-num {
    transition: color 0.2s ease;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-section,
  .clients-section,
  .faq-section {
    padding: 3rem 1.5rem;
  }

  .clients-layout {
    grid-template-columns: 1fr;
  }

  .clients-left {
    order: 1;
  }

  .clients-center {
    order: 2;
  }

  .clients-right {
    order: 3;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-list {
    margin-top: 2rem;
  }
}
