/* Landing — sections part 3 (pricing, testimonials, calc preview, FAQ, CTA) */

/* ---------- CALCULATOR PREVIEW ---------- */
.calc {
  background: linear-gradient(160deg, var(--ink-950) 0%, #15103A 100%);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(124,59,237,0.25), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(124,59,237,0.15), transparent 60%);
  pointer-events: none;
}
.calc h2 { color: var(--paper); }
.calc p { color: rgba(255,255,255,0.7); }
.calc .eyebrow { color: var(--blue-300); }
.calc__panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14.5px;
}
.calc__row:last-child { border-bottom: 0; padding-top: 22px; }
.calc__row .lbl { color: rgba(255,255,255,0.6); }
.calc__row .val { font-weight: 500; }
.calc__total {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.calc__total small { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 6px; }
.calc__cta { margin-top: 28px; display: flex; gap: 10px; }
.calc__cta .btn-blue { background: var(--paper); color: var(--ink-950); }
.calc__cta .btn-blue:hover { background: var(--blue-100); }
.calc__cta .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.2); }
.calc__cta .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

@media (max-width: 920px) {
  .calc { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
}

/* ---------- PRICING ---------- */
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--paper-dim);
  border-radius: 999px;
  margin-bottom: 36px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  transition: background .2s ease, color .2s ease;
}
.billing-toggle button.is-on {
  background: var(--paper);
  color: var(--ink-950);
  box-shadow: var(--shadow-xs);
}
.billing-toggle .save {
  font-size: 11px;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  font-family: var(--font-mono);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.tier {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
}
.tier--featured {
  background: var(--ink-950);
  color: var(--paper);
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.tier__tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--blue-500); color: var(--paper);
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tier__name {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.tier--featured .tier__name { color: var(--blue-300); }
.tier__price {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 14px;
}
.tier__price-suffix {
  font-size: 14px;
  color: var(--ink-400);
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0;
}
.tier--featured .tier__price-suffix { color: rgba(255,255,255,0.5); }
.tier__desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-500);
}
.tier--featured .tier__desc { color: rgba(255,255,255,0.7); }
.tier__cta { margin-top: 24px; }
.tier__cta .btn { width: 100%; justify-content: center; }
.tier--featured .btn-primary { background: var(--paper); color: var(--ink-950); }
.tier--featured .btn-primary:hover { background: var(--blue-100); box-shadow: none; }

.tier__features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier__features li {
  font-size: 14px;
  color: var(--ink-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.tier--featured .tier__features li { color: rgba(255,255,255,0.85); }
.tier__features li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='%237C3BED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}
.tier--featured .tier__features li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='%23B68AF6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .tier--featured { transform: none; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial--big {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--paper) 0%, var(--blue-50) 100%);
  border-color: var(--blue-100);
}
.testimonial blockquote {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 26px);
  font-family: var(--font-serif);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-950);
  font-style: italic;
}
.testimonial--small blockquote { font-family: var(--font-sans); font-style: normal; font-size: 16px; line-height: 1.4; }
.testimonial__author {
  display: flex; align-items: center; gap: 12px; margin-top: auto;
}
.testimonial__author .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-200), var(--blue-600));
}
.testimonial__author .name { font-size: 14px; font-weight: 600; }
.testimonial__author .role { font-size: 13px; color: var(--ink-400); }
.testimonial__metric {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--blue-600);
  line-height: 1;
}
.testimonial__metric small { display: block; font-size: 13px; color: var(--ink-500); font-weight: 400; margin-top: 6px; letter-spacing: 0; }

@media (max-width: 1024px) {
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonial--big { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 560px) {
  .testimonials { grid-template-columns: 1fr; }
  .testimonial--big { grid-column: span 1; }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.faq__list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--ink-100);
}
.faq-item:last-child { border-bottom: 1px solid var(--ink-100); }
.faq-item__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-950);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-item__q::after {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M7 1.5v11M1.5 7h11' stroke='%230E0A22' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-size: contain;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__q::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M1.5 7h11' stroke='%237C3BED' stroke-width='1.5' stroke-linecap='round'/></svg>");
  transform: rotate(180deg);
}
.faq-item.is-open .faq-item__q { color: var(--blue-700); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.is-open .faq-item__a { max-height: 400px; }
.faq-item__a p {
  padding: 0 0 24px;
  color: var(--ink-500);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 640px;
}

@media (max-width: 920px) {
  .faq { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--ink-950);
  color: var(--paper);
  border-radius: var(--radius-2xl);
  padding: 80px 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(124,59,237,0.4), transparent 60%);
}
.final-cta__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.final-cta h2 { color: var(--paper); }
.final-cta p { color: rgba(255,255,255,0.7); margin-top: 18px; font-size: 18px; }
.final-cta__buttons { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final-cta__buttons .btn-blue { background: var(--paper); color: var(--ink-950); }
.final-cta__buttons .btn-blue:hover { background: var(--blue-100); }
.final-cta__buttons .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.2); }
.final-cta__buttons .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

@media (max-width: 560px) {
  .final-cta { padding: 56px 28px; }
}
