/* =========================================================
   GRAFT /pricing page styles (pricing/index.html only)
   Depends on tokens.css + base.css + components.css (the shared
   header/footer + PRICING CARDS block). Reuses .pricing /
   .pricing-cards / .p-card from components.css. Adds the compare
   table, FAQ accordion, and closing CTA. home.css is not linked
   here, so the minimal .mod heading base is replicated below.
   ========================================================= */

/* Anchored sections clear the sticky header on jump */
[id] { scroll-margin-top: 96px; }

/* Module base (replicated, since home.css is not linked on /pricing) */
.mod { padding: 120px 0; position: relative; z-index: 1; }
.mod h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.mod h2 .dot { color: var(--lime); }
/* Page-level h1 (the pricing headline) shares the h2 visual scale */
.mod h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.mod h1 .dot { color: var(--lime); }
.mod-sub {
  font-size: 18px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.55;
}

/* ============ SECTION 2 - COMPARE PLANS ============ */
.compare { padding: 40px 0 120px; }
.compare-head { text-align: center; margin-bottom: 48px; }
.compare-head h2 { margin-bottom: 0; }
.compare-wrap { max-width: 880px; margin: 0 auto; }

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.cmp caption { text-align: left; }
.cmp thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg);
  text-align: left;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-2);
}
.cmp thead th:nth-child(2) { color: var(--dim); }       /* Free */
.cmp thead th:nth-child(3) { color: var(--lime); }       /* Pro emphasis */
.cmp tbody th[scope="row"] {
  text-align: left; font-weight: 700; color: var(--text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.cmp tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  vertical-align: middle;
}
.cmp td.col-free { color: var(--dim); }                  /* Free slightly muted */
.cmp td.col-pro {
  color: var(--text);
  background: rgba(200, 245, 66, 0.03);                   /* subtle lime emphasis */
}
.cmp tbody tr:hover td,
.cmp tbody tr:hover th[scope="row"] { background: var(--bg-1); }
.cmp tbody tr:hover td.col-pro { background: rgba(200, 245, 66, 0.06); }

/* included / not-included markers (SVG only, with visually-hidden text) */
.cmp-mark { display: inline-flex; align-items: center; justify-content: center; }
.cmp-mark svg { width: 18px; height: 18px; }
.cmp-yes svg { color: var(--lime); }
.cmp-no svg { color: var(--dimmer); }

.compare-foot {
  margin-top: 28px;
  font-weight: 700; color: var(--text);
  text-align: center;
}
.compare-caption {
  margin-top: 10px;
  font-size: 12px; color: var(--dim);
  text-align: center;
}

/* Mobile: stack each feature as a card (name + Free value + Pro value) */
@media (max-width: 700px) {
  .cmp thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 6px 14px 10px;
    background: var(--bg-1);
  }
  .cmp tbody th[scope="row"] {
    border-bottom: 1px solid var(--border);
    padding: 12px 0 10px;
    font-size: 16px;
  }
  .cmp tbody td {
    border-bottom: none;
    padding: 8px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    color: var(--text);
  }
  .cmp td.col-pro { background: transparent; }
  .cmp tbody td::before {
    content: attr(data-label);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--dim);
  }
  .cmp td.col-pro::before { color: var(--lime); }
}

/* ============ SECTION 3 - FAQ ============ */
.faq { padding: 120px 0; }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-head h2 { margin-bottom: 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  min-height: 44px;
  font-size: 20px; font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--lime); }
.faq-item[open] summary { color: var(--lime); }
.faq-chevron {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--lime);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 4px 24px;
  font-size: 17px; line-height: 1.6;
  color: var(--dim);
  max-width: 64ch;
}
.faq-item[open] .faq-answer {
  animation: faqIn 0.35s var(--ease-out);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SECTION 4 - CLOSING CTA ============ */
.pr-closing { text-align: center; padding: 96px 0 104px; }
.pr-closing h2 { margin-bottom: 16px; }
.pr-closing-sub { font-size: 18px; color: var(--dim); margin-bottom: 36px; }
.pr-cta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: center;
}

@media (max-width: 700px) {
  .compare { padding: 24px 0 80px; }
  .faq { padding: 80px 0; }
  .pr-closing { padding: 72px 0 80px; }
}
