/* styles.css — Hebrew pricing page */
:root {
  --bg: #0f1115;
  --card: #272567;
  --muted: #9aa3b2;
  --text: #eef2f6;
  --accent: #4f46e5;
  --accent-2: #22c55e;
  --border: #00ffcf73;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.kicker {
  color: var(--muted);
  margin: 0 auto;
}

.billing-toggle {
  margin: 24px auto 32px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  box-shadow: var(--shadow);
}

.toggle-label {
  font-weight: 500;
}
.toggle-label .save {
  color: var(--accent-2);
  font-weight: 700;
}

.switch {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}
.switch:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.switch .thumb {
  position: absolute;
  top: 3px;
  right: 3px; /* RTL default */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  transition:
    transform 0.25s ease,
    right 0.25s ease,
    left 0.25s ease;
}

/* When annual is on, move thumb left (LTR equivalent) */
body.annual .switch .thumb {
  transform: translateX(-24px);
}

.pricing-container {
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  background: #82828254;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: clip;
}

.card-b {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: clip;
}

.card:first-child .price {
  flex-direction: column;
  align-items: center;
}

.card:first-child .billing-note {
  height: 0 !important;
  overflow: hidden;
}

.card-header {
  margin-bottom: 10px;
}

.plan-title {
  font-weight: bold;
  font-size: 1.8em;
  min-height: 2.4em;
  line-height: 0em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0px 8px;
}

.plan-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pricing-notes {
  margin-top: 20px;
  padding: 15px 0 0;
  border-top: 1px solid #e0e0e0;
}

.pricing-notes p {
  margin: 5px 0;
  font-size: 0.8em;
  text-align: right;
  padding-right: 15px;
  text-indent: -10px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.card-recommended {
  border-color: #f3a91c;
  outline: 2px solid rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 8px;
}

.amount {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.per {
  color: var(--muted);
}

.billing-note {
  color: var(--muted);
  font-size: 12px;
  position: relative;
  top: -10px;
  word-break: break-all;
  width: 50px;
  text-align: center;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  /* gap: 8px; */
}
.features li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.features li:last-child {
  border-bottom: 0;
}

.faq {
  margin: 40px 0 64px;
}

.faq h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.faq details {
  text-align: right;
  direction: rtl;
}

.faq summary {
  text-align: right;
  direction: rtl;
}

.faq p {
  text-align: right;
  direction: rtl;
}

details {
  background: #121520;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: height 0.35s ease;
  height: auto; /* JS will set the real closed/open heights */
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

details[open] summary {
  margin-bottom: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
  .card-recommended {
    transform: none;
  }
}

@media (max-width: 768px) {
  .toggle-label .save {
    display: block;
    margin-top: 5px;
  }

  .plan-title {
    font-size: 1.9em;
  }

  .plan-subtitle {
    font-size: 1.2em;
  }
}
