/* ============================================================
   Numbrief — pricing page
   Public site ke tokens (site.css) par hi bana hai: ink on paper,
   hara rang sirf wahan jahan kuch "included" ya "active" hai.
   Ek hi cheez ulti (dark) hai: All Access plan.
   ============================================================ */

.pr { padding-bottom: 88px; }
.pr h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3vw, 31px); letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 10px;
}
.pr-sub { color: var(--ink-2); margin: 0 0 26px; max-width: 60ch; }
.pr-link { color: var(--ink-2); font-size: 15px; text-underline-offset: 4px; }
.pr-link:hover { color: var(--up); }

/* ---------------- hero ---------------- */
.pr-hero { padding: 72px 0 44px; }
.pr-hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 18px;
}
@media (min-width: 900px) { .pr-hero h1 span { display: block; } }
.pr-lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; max-width: 58ch; }
.pr-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.pr-signed { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.pr-signed b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.pr-signed .pr-link { margin-left: 8px; white-space: nowrap; }

.pr-facts {
  list-style: none; margin: 40px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 44px;
  font-size: 15px; color: var(--ink-2);
}
.pr-facts b { color: var(--ink); font-weight: 600; }

/* ---------------- banners ---------------- */
.pr-banner {
  border-radius: var(--radius); padding: 13px 16px; margin: 0 0 18px;
  font-size: 14.5px; border: 1px solid var(--line); background: var(--surface);
}
.pr-banner-test { background: #fbf3e2; border-color: #ecd9ad; color: #6b4e12; }
.pr-banner-warn { background: var(--down-wash); border-color: #efc9c5; color: var(--down); }
.pr-banner-ok   { background: var(--up-wash); border-color: #bcd9cd; color: var(--up); }

/* ---------------- free trial ---------------- */
.pr-trial {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin: 0 0 26px; padding: 22px 24px;
  border-radius: var(--radius-lg); border: 1px solid #ecd9ad;
  background: #fbf3e2; color: #4a360a;
}
.pr-trial > div { flex: 1 1 380px; min-width: 0; }
.pr-trial h2 { font-size: 21px; margin: 0 0 6px; color: #33250a; }
.pr-trial p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.pr-trial .pill { flex: 0 0 auto; cursor: pointer; font: inherit; font-weight: 600; }
.pr-trial .pill[disabled] { opacity: .6; cursor: progress; }
.pr-trial-on { background: var(--up-wash); border-color: #bcd9cd; color: var(--ink-2); }
.pr-trial-on h2 { color: var(--ink); }

/* ---------------- active plans ---------------- */
.pr-active { margin: 30px 0 44px; }
.pr-active h2 { font-size: 19px; margin-bottom: 12px; }
.pr-active ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pr-active li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.pr-active-plan { font-weight: 600; }
.pr-active-prop { color: var(--muted); overflow-wrap: anywhere; }
.pr-active-ends { margin-left: auto; color: var(--up); font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-active-ends.soon { color: #8a5a0b; }

/* ---------------- plans: source down the side, plans beside it ---------------- */
.pr-plans { border-top: 1px solid var(--ink); }
.pr-group {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.pr-group:last-child { border-bottom: 0; padding-bottom: 0; }
.pr-group-head h2 { font-size: 22px; margin: 4px 0 8px; }
.pr-group-head p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 30ch; }

.pr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 26px 24px;
  display: flex; flex-direction: column; min-width: 0;
}
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plan h3 {
  font-family: var(--display); font-size: 21px; font-weight: 600;
  letter-spacing: -0.015em; margin: 0;
}
.plan-flag {
  font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 100px;
  background: var(--up-wash); color: var(--up);
}
.plan-flag-quiet { background: var(--paper); color: var(--ink-2); }

.plan-price { margin: 18px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-amt {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 4.4vw, 46px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-per { font-size: 14px; color: var(--muted); }

.plan-blurb { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }

.plan-list { list-style: none; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; }
.plan-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--up); border-bottom: 2px solid var(--up);
  transform: rotate(-45deg);
}

.plan-buy { margin-top: auto; }
.picker { display: grid; gap: 12px; margin-bottom: 14px; }
.picker label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.picker select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14.5px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.picker select:hover { border-color: var(--muted); }

.plan-btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none;
  padding: 13px 18px; border-radius: 100px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
}
.plan-btn:hover { background: var(--up); border-color: var(--up); color: #fff; }
.plan-btn:disabled { opacity: .55; cursor: default; background: var(--ink); border-color: var(--ink); }
.plan-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.owned-note { font-size: 13.5px; margin-top: 10px; color: var(--up); font-weight: 600; }
.msg { font-size: 13.5px; margin-top: 8px; min-height: 1.2em; color: var(--ink-2); }
.msg.err { color: var(--down); }
.msg.ok  { color: var(--up); font-weight: 600; }

/* the one inverted card */
.plan-feat { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan-feat .plan-per, .plan-feat .plan-hint { color: #a9b8b1; }
.plan-feat .plan-blurb, .plan-feat .picker label, .plan-feat .msg { color: #d5ddd8; }
.plan-feat .plan-list { border-top-color: rgba(255,255,255,.16); }
.plan-feat .plan-list li::before { border-color: #7fd6b5; }
.plan-feat .plan-flag { background: #7fd6b5; color: var(--ink); }
.plan-feat .picker select { background: #223029; color: var(--paper); border-color: #3b4c44; }
.plan-feat .plan-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-feat .plan-btn:hover { background: #7fd6b5; border-color: #7fd6b5; color: var(--ink); }
.plan-feat .plan-btn:disabled { background: var(--paper); border-color: var(--paper); }
.plan-feat .owned-note, .plan-feat .msg.ok { color: #7fd6b5; }
.plan-feat .msg.err { color: #f3b1a8; }
.plan-feat :focus-visible { outline-color: #7fd6b5; }

/* arrived with ?plan=… */
.plan.is-picked { box-shadow: 0 0 0 3px var(--up); border-color: var(--up); }
.plan-feat.is-picked { box-shadow: 0 0 0 3px #7fd6b5; }

/* ---------------- compare table ---------------- */
.pr-compare { padding-top: 76px; }
.pr-table-scroll {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pr-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14.5px; }
.pr-table th, .pr-table td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.pr-table thead th { vertical-align: bottom; padding-top: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 400; }
.pr-table th:first-child { text-align: left; padding-left: 22px; font-weight: 500; min-width: 220px; }
.pr-table thead th:first-child { color: var(--muted); font-size: 13.5px; }
.pr-th-name { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.pr-th-src { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.pr-th-price { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-tr-group th {
  text-align: left; padding: 22px 22px 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.pr-table tbody tr:last-child th, .pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-yes { color: var(--up); font-weight: 700; font-size: 16px; }
.pr-no { color: #b9c3bd; }
.pr-table .col-feat { background: var(--up-wash); }

/* ---------------- how it works (a real sequence) ---------------- */
.pr-how { padding-top: 76px; }
.pr-steps {
  list-style: none; margin: 22px 0 0; padding: 0; counter-reset: prs;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.pr-steps li { counter-increment: prs; border-top: 2px solid var(--up); padding-top: 12px; }
.pr-steps li::before {
  content: counter(prs); display: block;
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--up); margin-bottom: 8px;
}
.pr-steps h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.pr-steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------------- questions ---------------- */
.pr-faq { padding-top: 76px; max-width: 78ch; }
.pr-faq h2 { margin-bottom: 18px; }
.pr-faq details { border-top: 1px solid var(--line); }
.pr-faq details:last-child { border-bottom: 1px solid var(--line); }
.pr-faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-size: 22px; font-weight: 400; color: var(--muted);
}
.pr-faq details[open] summary::after { content: "\2212"; }
.pr-faq summary:hover { color: var(--up); }
.pr-faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 68ch; }

/* ---------------- closing ---------------- */
.pr-close {
  margin-top: 76px; padding: 40px 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pr-close p { margin: 0 0 22px; color: var(--ink-2); font-size: 17px; }

/* ---------------- small screens ---------------- */
@media (max-width: 900px) {
  .pr-group { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }
  .pr-group-head p { max-width: 60ch; }
  .pr-steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .pr-hero { padding: 48px 0 32px; }
  .pr-lede { font-size: 16.5px; }
  .pr-cards { grid-template-columns: 1fr; }
  .plan { padding: 22px 20px 20px; }
  .pr-facts { gap: 8px 28px; margin-top: 30px; }
  .pr-active-ends { margin-left: 0; width: 100%; }
  .pr-compare, .pr-how, .pr-faq { padding-top: 56px; }
  .pr-close { margin-top: 56px; padding: 28px 22px; }
}

/* ---------------- "On request" + custom report card ---------------- */
.plan-custom {
  flex-direction: row; align-items: stretch; gap: 36px;
  border-style: dashed; border-color: var(--muted);
}
.plan-custom-body { flex: 1 1 0; min-width: 0; }
.plan-custom-body h3 { margin-bottom: 10px; }
.plan-custom .plan-list { margin-bottom: 0; }
.plan-custom-cta {
  flex: 0 0 240px; display: flex; flex-direction: column; justify-content: center;
  padding-left: 36px; border-left: 1px solid var(--line-soft);
}
.plan-custom-cta .plan-price { margin: 0 0 16px; }
.plan-amt-text { font-size: clamp(26px, 3vw, 32px); }

/* three plans in the last group would be cramped at two columns on mid screens */
@media (max-width: 760px) {
  .plan-custom { flex-direction: column; gap: 22px; }
  .plan-custom-cta { flex-basis: auto; padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
}

/* ---------------- contact page ---------------- */
.ct {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px;
  padding-top: 68px; align-items: start;
}
.ct-intro h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.028em;
  margin: 0 0 16px;
}
.ct-points { margin: 0 0 24px; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.ct-points li { margin-bottom: 6px; }
.ct-back { margin: 0; }

.ct-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 30px 28px;
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { margin-bottom: 18px; min-width: 0; }
.ct-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ct-opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px;
}
.ct-field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-color: var(--muted); }
.ct-field [aria-invalid="true"] { border-color: var(--down); }
.ct-err { display: block; margin-top: 6px; font-size: 13.5px; color: var(--down); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send { margin-top: 4px; }

@media (max-width: 860px) {
  .ct { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
}
@media (max-width: 520px) {
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-form { padding: 22px 18px 20px; }
}
