/* ==========================================================================
   Ayklo — Fiyatlandırma (#fiyatlandirma .pricing). JS yok: karşılaştırma
   tablosu <details> ile açılır. Dar ekranda kartlar alt alta, Pro en üstte.
   Renk/tipografi yalnız style.css tokenlarıyla.
   ========================================================================== */
.pricing .section-intro { padding-bottom: calc(var(--section-pb) * .8); }
.pricing .section-intro__body { max-width: 760px; }

.pricing__body { display: flex; flex-direction: column; gap: 20px; padding: 40px 16px 64px; }
@media (min-width: 768px) { .pricing__body { padding: 56px calc(100% / 12) 88px; } }
@media (min-width: 1200px) { .pricing__body { padding-inline: calc(100% / 24); } }

/* Kartlar */
.pricing__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 991.98px) { .pricing__card--pop { order: -1; } }
@media (min-width: 992px) { .pricing__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.pricing__card {
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px;
  border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface-page);
}
@media (min-width: 1200px) { .pricing__card { padding: 32px 28px; } }
.pricing__card--pop {
  border-color: var(--black-200); background: var(--black-200); color: var(--white-100);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45);
}
@media (min-width: 992px) { .pricing__card--pop { transform: translateY(-12px); } }
.pricing__pop {
  position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px;
  background: var(--blue-500); color: var(--white-100); font-weight: 600; font-size: 12px; line-height: 16px;
  box-shadow: 0 6px 16px -6px rgb(0 0 0 / .4);
}

.pricing__head { display: flex; flex-direction: column; gap: 8px; }
.pricing__name { margin: 0; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; color: var(--text-heading); }
.pricing__tag { margin: 0; min-height: 40px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.pricing__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.pricing__price b { font-weight: 600; font-size: 44px; line-height: 48px; letter-spacing: -0.04em; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.pricing__price span { font-size: 15px; color: var(--text-muted); }
.pricing__price--quote b { font-size: 36px; line-height: 48px; }
.pricing__cta { margin-top: 8px; }

.pricing__inherit { margin: 0 0 -8px; font-weight: 600; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.pricing__features { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border-subtle); list-style: none; }
.pricing__features li { position: relative; padding-left: 26px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.pricing__features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--chip-green-text);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}

/* Pro (koyu) kartın iç renkleri */
.pricing__card--pop :is(.pricing__name, .pricing__price b) { color: var(--white-100); }
.pricing__card--pop :is(.pricing__tag, .pricing__price span) { color: rgb(255 255 255 / .62); }
.pricing__card--pop .pricing__inherit { color: rgb(255 255 255 / .85); }
.pricing__card--pop .pricing__features { border-top-color: rgb(255 255 255 / .14); }
.pricing__card--pop .pricing__features li { color: rgb(255 255 255 / .82); }
.pricing__card--pop .pricing__features li::before { background: #6ee7b7; }
.pricing__card--pop .btn--primary { background: var(--white-100); border-color: var(--white-100); color: var(--black-200); }

.pricing__note { margin: 4px 0 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* Karşılaştırma */
.pricing__compare { align-self: stretch; }
.pricing__toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: max-content; margin: 0 auto; padding: 6px 4px;
  list-style: none; cursor: pointer; font-weight: 500; font-size: 15px; line-height: 20px; color: var(--text-heading);
}
.pricing__toggle::-webkit-details-marker { display: none; }
.pricing__toggle .icon { transition: rotate var(--dur-base) var(--ease-out); }
.pricing__compare[open] .pricing__toggle .icon { rotate: 180deg; }
.pricing__toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.pricing__compare[open] > .pricing__table-wrap { animation: pricing-in var(--dur-slow) var(--ease-in-out-cubic); }
@keyframes pricing-in { from { opacity: 0; transform: translateY(-6px); } }

.pricing__table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 16px; }
.pricing__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.pricing__table th, .pricing__table td { padding: 12px 16px; border-top: 1px solid var(--border-subtle); text-align: center; vertical-align: middle; color: var(--text-secondary); }
.pricing__table thead th { position: sticky; top: 0; border-top: 0; background: var(--surface-subtle); font-weight: 600; color: var(--text-heading); }
.pricing__table tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--text-primary); width: 38%; }
.pricing__table .pricing__group th {
  padding: 16px 16px 8px; background: transparent; text-align: left;
  font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted);
}
.pricing__table .is-pop { background: color-mix(in srgb, var(--chip-blue-bg) 60%, transparent); }
.pricing__table thead .is-pop { color: var(--chip-blue-text); }
.pricing__yes, .pricing__no { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.pricing__yes { background: var(--chip-green-text); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.pricing__no { position: relative; }
.pricing__no::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: 1px; background: var(--text-muted); opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .pricing__compare[open] > .pricing__table-wrap { animation: none; }
}
