/* ==========================================================================
   Packages page (/paketler/, /en/packages/) — tokens only, see style.css
   ========================================================================== */

/* ---------- Cards ---------- */
.pkg-section { padding-top: clamp(56px, 7vw, 88px); }
/* Full feature lists differ in length: keep rows packed at the top instead of stretched. */
.pkg-section .pkg-features { align-content: start; }

.price-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 860px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}
.price-info-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.price-info-icon .icon { width: 20px; height: 20px; }
.price-info p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.price-info strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1rem; }

/* ---------- Comparison table ---------- */
.compare { position: relative; }

.compare-hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-3);
}
.compare-hint .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.compare-hint .icon:last-child { animation: compare-nudge 1.6s ease-in-out infinite; }
@keyframes compare-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.compare-scroll {
  /* positioned so the .sr-only spans in the cells are clipped here, not by the page */
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.compare-scroll:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .95rem;
  line-height: 1.45;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.compare-table thead th { padding-top: 22px; padding-bottom: 18px; vertical-align: bottom; }
.compare-table th:first-child,
.compare-table td:first-child { width: 40%; text-align: left; }

/* Sticky first column (feature names) */
.compare-table thead th:first-child,
.compare-table tbody tr:not(.compare-group) > th:first-child,
.compare-table tfoot td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-elev);
  box-shadow: inset -1px 0 0 var(--line);
}

.compare-feature-col {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-table tbody th[scope="row"] { font-weight: 500; color: var(--ink); }

.compare-pkg { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.compare-pkg-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.compare-pkg-icon .icon { width: 20px; height: 20px; }
.compare-pkg-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.compare-badge .icon { width: 12px; height: 12px; }

/* Popular column tint */
.compare-table .is-popular { background: color-mix(in srgb, var(--primary) 6%, var(--bg-elev)); }
.compare-table thead .is-popular { box-shadow: inset 0 3px 0 var(--primary); }

/* Group rows */
.compare-group th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--bg-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  text-align: left;
}
.compare-group th > span { position: sticky; left: 16px; }

.compare-yes {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  vertical-align: middle;
}
.compare-yes .icon { width: 16px; height: 16px; }
.compare-no { font-size: 1.15rem; font-weight: 600; color: var(--ink-3); }

.compare-table tfoot td { padding-top: 18px; padding-bottom: 20px; border-bottom: 0; }
.compare-table tfoot .btn { white-space: normal; text-align: center; }

/* ---------- Which package ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.persona-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.persona-title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}
.persona-card > p { flex: 1; margin-bottom: 22px; color: var(--ink-2); font-size: .97rem; }
.persona-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color .2s ease, background-color .2s ease;
}
.persona-link:hover { border-color: var(--accent); background: var(--bg-elev); }
.persona-link-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.persona-link-icon .icon { width: 19px; height: 19px; }
.persona-link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.persona-link-text small {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.persona-link-text strong { font-size: 1.02rem; color: var(--ink); }
.persona-link > .icon { color: var(--primary); transition: transform .2s ease; }
.persona-link:hover > .icon { transform: translateX(3px); }

/* ---------- How it works (3 steps) ---------- */
@media (min-width: 1081px) {
  .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  /* dashed line from the first to the last number */
  .steps-3::before { right: calc((100% - 64px) / 3 - 28px); }
  .steps-3 .step { padding-right: 24px; }
}
.step-link { margin-top: 12px; font-size: .95rem; }
@media (max-width: 1080px) {
  .step-link { grid-column: 2; justify-self: start; }
}

/* ---------- FAQ excerpt ---------- */
.pkg-faq-head .section-lead { margin-bottom: 24px; }
.pkg-faq-head h2 { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .persona-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/*
 * Table min-widths are chosen so the table only scrolls on phones:
 * > 640px it is 560px wide at most (fits the 593px+ container), <= 640px it is 480px,
 * which overflows below ~514px (527px with a classic scrollbar); that is where the scroll hint appears.
 */
@media (max-width: 760px) {
  .compare-table { min-width: 560px; font-size: .9rem; }
  .compare-table th,
  .compare-table td { padding: 12px 10px; }
  .compare-table th:first-child,
  .compare-table td:first-child { width: 36%; min-width: 168px; }
  .compare-badge { white-space: normal; text-align: center; line-height: 1.25; padding: 3px 8px; font-size: .66rem; }
}

@media (max-width: 640px) {
  .page-hero-actions .btn { flex: 1 1 100%; }
  .price-info { padding: 16px; gap: 12px; }
  .compare-table { min-width: 480px; }
  .compare-table th:first-child,
  .compare-table td:first-child { width: 150px; min-width: 150px; }
  .compare-pkg-name { font-size: 1.05rem; }
  .compare-pkg-icon { width: 34px; height: 34px; }
  .compare-table tfoot .btn { padding: 0 12px; }
  .compare-table tfoot .btn .icon { display: none; }
  .persona-card { padding: 22px 20px; }
}

@media (max-width: 527px) {
  .compare-hint { display: flex; }
}

@media (max-width: 380px) {
  .compare-table th:first-child,
  .compare-table td:first-child { width: 136px; min-width: 136px; }
  .compare-table { font-size: .86rem; }
}

@media print {
  .compare-hint { display: none !important; }
  .compare-scroll { overflow: visible; box-shadow: none; }
  .compare-table { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .compare-hint .icon:last-child { animation: none; }
}
