/* ═══════════════════════════════════════════════════════════════════
   MetricsLens.AI — Features & Pricing page components
   ═══════════════════════════════════════════════════════════════════ */

/* ── FAQ page (grouped accordions) ──────────────────────────────── */
.faqpage { max-width: 980px; margin: 0 auto; }
.faqgroup { display: grid; grid-template-columns: 260px 1fr; gap: 44px; }
.faqgroup + .faqgroup { margin-top: 52px; padding-top: 52px; border-top: 1px solid var(--line); }
.faqgroup-head { position: sticky; top: 96px; align-self: start; }
.faqgroup-head .gno { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--faint); }
.faqgroup-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-top: 12px; }
.faqgroup-head p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.faqgroup .faq { max-width: none; margin: 0; }
.faq-search { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto 0; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; background: var(--paper); box-shadow: 0 1px 2px rgba(11,13,16,.04); }
.faq-search svg { flex: none; color: var(--faint); }
.faq-search input { flex: 1; border: 0; outline: 0; font-family: var(--sans); font-size: 15px; color: var(--ink); background: transparent; }
.faq-search input::placeholder { color: var(--faint); }
.faq-noresults { text-align: center; color: var(--muted); font-size: 15px; padding: 40px 0; display: none; }
.faqgroup.is-hidden { display: none; }
.faq-item.is-hidden { display: none; }
.faq-contact { border: 1px solid var(--line); border-radius: var(--radius-lg); background:
  radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0 / 22px 22px, var(--paper-3);
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.faq-contact h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.faq-contact p { font-size: 14.5px; color: var(--muted); margin-top: 8px; max-width: 46ch; }
.faq-contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 920px) {
  .faqgroup { grid-template-columns: 1fr; gap: 20px; }
  .faqgroup-head { position: static; }
}

/* ── Page sub-hero ──────────────────────────────────────────────── */
.phero { position: relative; overflow: hidden; padding: 92px 0 84px; text-align: center;
  background:
    radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--paper-2), var(--paper)); }
.phero .kicker { margin-bottom: 22px; }
.phero h1 { max-width: 18ch; margin: 0 auto 20px; }
.phero .lede { max-width: 600px; margin: 0 auto 32px; }
.phero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Feature deep-dive rows ─────────────────────────────────────── */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.frow + .frow { margin-top: 96px; }
.frow--flip .frow-copy { order: 2; }
.frow-copy .kicker { margin-bottom: 18px; }
.frow-copy h2 { margin-bottom: 16px; }
.frow-copy p { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 22px; max-width: 46ch; }
.frow-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.frow-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.frow-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; background: var(--ink); transform: rotate(45deg); }
.frow-visual { border: 1px solid var(--line); border-radius: var(--radius-lg); background:
  radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0 / 22px 22px, var(--paper-3);
  padding: 28px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }

/* ── Spec grid (capabilities) ───────────────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.spec { padding: 30px 28px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.spec:nth-child(3n) { border-right: 0; }
.specs .spec:nth-last-child(-n+3) { border-bottom: 0; }
.spec-ic { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; color: var(--ink); }
.spec h3 { font-size: 16px; margin-bottom: 8px; }
.spec p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Security band ──────────────────────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-item { border: 1px solid var(--d-line); border-radius: var(--radius); padding: 24px; }
.sec-item .mono-num, .sec-item .v { font-family: var(--mono); font-size: 13px; color: #fff; }
.sec-ic { width: 36px; height: 36px; border: 1px solid var(--d-line); border-radius: 9px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.sec-item h3 { font-size: 15px; color: #fff; margin-bottom: 7px; font-weight: 600; }
.sec-item p { font-size: 13px; color: var(--d-text); line-height: 1.55; }

/* ═══════════════════════════════════════════════════ PRICING */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); padding: 30px 28px; display: flex; flex-direction: column; position: relative; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -28px rgba(11,13,16,.4); }
.pcard.is-best { border-color: var(--ink); border-width: 1.5px; }
.pcard.is-rec { box-shadow: 0 22px 50px -30px rgba(11,13,16,.5); }
.pcard-pop { position: absolute; top: -11px; left: 28px; }
.pcard-name { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pcard-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.pcard-price .amt { font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard-price .per { font-size: 14px; color: var(--muted); }
.pcard-unit { font-size: 13px; color: var(--muted); }
.pcard-unit .save { color: var(--pos); font-weight: 600; }
.pcard-cr { display: inline-flex; align-items: center; gap: 7px; margin: 22px 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pcard-cr b { font-weight: 600; }
.pcard ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.pcard li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.pcard li svg { flex: none; margin-top: 3px; color: var(--ink); }
.pcard li.off { color: var(--ghost); }
.pcard li.off svg { color: var(--ghost); }
.pcard .btn { margin-top: auto; }

.pcard.is-best { background: var(--ink); color: #fff; }
.pcard.is-best .pcard-name { color: rgba(255,255,255,.6); }
.pcard.is-best .pcard-price .amt, .pcard.is-best li { color: #fff; }
.pcard.is-best .pcard-price .per, .pcard.is-best .pcard-unit { color: rgba(255,255,255,.6); }
.pcard.is-best .pcard-cr { border-color: var(--d-line); color: rgba(255,255,255,.85); }
.pcard.is-best li svg { color: #fff; }

/* ── Credit calculator ──────────────────────────────────────────── */
.calc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.calc-left { padding: 36px 38px; border-right: 1px solid var(--line); }
.calc-right { padding: 36px 38px; background:
  radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0 / 22px 22px, var(--paper-3);
  display: flex; flex-direction: column; justify-content: center; }
.calc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.calc-readout { display: flex; align-items: baseline; gap: 10px; margin-bottom: 26px; }
.calc-readout .n { font-family: var(--mono); font-size: 52px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-readout .u { font-size: 15px; color: var(--muted); }
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-3); outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(11,13,16,.3); }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 3px solid #fff; }
.calc-ticks { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.calc-rec-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.calc-rec-pack { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.calc-rec-line { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.calc-rec-line b { color: var(--ink); font-weight: 600; font-family: var(--mono); }
.calc-rec-cta { margin-top: 24px; }
.calc-compare { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-compare .strike { text-decoration: line-through; color: var(--ghost); }

/* ── What's included table ──────────────────────────────────────── */
.incl { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.incl th, .incl td { padding: 16px 22px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.incl thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--paper-3); border-bottom: 1px solid var(--line); }
.incl th:first-child, .incl td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.incl thead th.hl { background: var(--ink); color: #fff; }
.incl td.hl { background: var(--paper-2); font-weight: 600; color: var(--ink); }
.incl tr:last-child td { border-bottom: 0; }
.incl .yes { color: var(--pos); font-weight: 700; }
.incl .no { color: var(--ghost); }

@media (max-width: 920px) {
  .frow { grid-template-columns: 1fr; gap: 28px; }
  .frow--flip .frow-copy { order: 0; }
  .frow + .frow { margin-top: 56px; }
  .specs { grid-template-columns: 1fr; }
  .spec { border-right: 0; }
  .specs .spec:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .specs .spec:last-child { border-bottom: 0; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .incl-wrap { overflow-x: auto; }
}
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; }
}
