/* Pricing page. Builds on home.css (h- classes, reveals, calculator); everything here is prefixed p-. */
.p-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hero */
.p-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 20px;
}
.p-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40px -50vw 0;
  background-image:
    linear-gradient(#ffffff08 1px, #0000 1px),
    linear-gradient(90deg, #ffffff08 1px, #0000 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 55% 70% at 65% 40%, #000, #0000);
  pointer-events: none;
}
.p-hero h1 {
  margin-top: 26px;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 650;
  animation: h-in 0.9s var(--ease) 0.08s both;
}
.p-lede {
  margin-top: 26px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
}
.p-hero-copy > [data-reveal]:nth-child(3) { --i: 1; }
.p-hero-copy > [data-reveal]:nth-child(4) { --i: 2; }
.p-hero-copy > [data-reveal]:nth-child(5) { --i: 3; }

/* Hero receipt */
.p-bill {
  --i: 2;
  margin: 0;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px circle at 100% 0%, #d2f88b12, #0000 60%),
    var(--surface);
  box-shadow: 0 20px 40px #0007;
  overflow: hidden;
}
.p-bill .h-chrome {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.p-bill-rows {
  margin: 0;
  padding: 8px 22px 0;
  list-style: none;
}
.p-bill-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #2f3032;
  animation: p-row 0.6s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.28s);
}
.p-bill-rows li > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.p-bill-rows b {
  font-size: 14.5px;
  font-weight: 600;
}
.p-bill-rows b .h-plan {
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  vertical-align: 2px;
}
.p-bill-rows small {
  color: var(--muted);
}
.p-bill-rows strong {
  flex: none;
  min-width: 44px;
  text-align: right;
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.p-bill-rows strong.p-zero {
  color: #6f716c;
}
.p-bill-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 22px 12px;
  animation: p-row 0.6s var(--ease) 2.3s both;
}
.p-bill-total span {
  font-weight: 600;
}
.p-bill-total strong {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.p-bill-meter {
  height: 8px;
  margin: 0 22px;
  border-radius: 9px;
  background: #2e2f31;
  overflow: hidden;
}
.p-bill-meter i {
  display: block;
  width: 11.8%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: p-grow 1s var(--ease) 2.5s both;
}
.p-bill figcaption {
  padding: 12px 22px 0;
  font-size: 13px;
  color: var(--muted);
}

/* Plan cards */
.p-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1040px;
}
.p-cards > :nth-child(2) { --i: 1; }
.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.p-card.featured {
  border-color: #d2f88b66;
  background:
    radial-gradient(520px circle at 100% 0%, #d2f88b17, #0000 60%),
    var(--surface);
  box-shadow: 0 15px 35px #0006;
}
.p-badge {
  position: absolute;
  top: -13px;
  right: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #172011;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.p-for {
  font-size: 17px;
  color: var(--text);
}
.p-allow {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff06;
  border: 1px solid #2c2d2f;
  color: var(--text);
}
.p-allow b {
  font-size: 20px;
  font-weight: 650;
}
.p-allow span {
  font-size: 13.5px;
  color: var(--muted);
}
.p-meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}
.p-meter i {
  height: 8px;
  border-radius: 3px;
  background: #2b2c2e;
}
.p-meter i.on {
  background: var(--accent);
  animation: p-pop 0.5s var(--ease) both;
  animation-delay: calc(0.4s + var(--i) * 70ms);
}
.p-card:not(.featured) .p-meter i.on {
  background: #a6a7a3;
}
.p-list-head {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.p-list {
  display: grid;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.p-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.p-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff0f;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.p-list-plus li::before {
  background: #d2f88b1f;
  color: var(--accent);
}
.p-list b {
  color: var(--text);
  font-weight: 600;
}
.p-card .button {
  margin-top: auto;
}
.p-card small {
  margin-top: -6px;
  color: var(--muted);
  text-align: center;
}

/* Credit calculator and rules */
.p-credit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}
.p-calc {
  position: sticky;
  top: 108px;
}
.p-rules {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-rules li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.p-rules strong {
  font-size: 46px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.p-rules li:last-child strong {
  color: var(--accent);
}
.p-rules b {
  font-weight: 600;
}
.p-rules p {
  margin-top: 4px;
  font-size: 14.5px;
}

/* What 600 credits cover */
.p-examples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.p-examples article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.p-examples strong {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.p-examples b {
  margin-top: 8px;
  font-weight: 600;
}
.p-examples span {
  font-size: 14px;
  color: var(--muted);
}
.p-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
}
.p-dots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
  animation: p-pop 0.4s var(--ease) both;
  animation-delay: calc(0.3s + var(--d) * 40ms);
}
.p-examples article:nth-child(2) .p-dots i { background: var(--orange); }
.p-examples article:nth-child(3) .p-dots i { background: var(--violet); }
.p-examples article:nth-child(4) .p-dots i { background: #e9eae3; }
.p-mix {
  margin-top: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.p-mix-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}
.p-mix h3 {
  font-size: 26px;
}
.p-bar {
  display: flex;
  gap: 4px;
  height: 18px;
  margin-top: 22px;
}
.p-bar i {
  width: var(--w);
  border-radius: 6px;
  transform-origin: left;
  animation: p-grow 0.9s var(--ease) both;
}
.p-bar i:nth-child(2) { animation-delay: 0.25s; }
.p-bar i:nth-child(3) { animation-delay: 0.5s; }
.p-bar i:nth-child(4) { animation-delay: 0.75s; }
.p-seg-1 { --c: var(--accent); }
.p-seg-2 { --c: var(--violet); }
.p-seg-3 { --c: var(--orange); }
.p-seg-4 { --c: #3a3b3e; }
.p-bar i {
  background: var(--c);
}
.p-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.p-legend li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--c);
}
.p-legend span {
  display: grid;
  gap: 2px;
}
.p-legend b {
  font-size: 14px;
  font-weight: 600;
}
.p-legend small {
  color: var(--muted);
}
.p-legend strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.p-note {
  margin-top: 22px;
  font-size: 14px;
}

/* Comparison table */
.p-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  overflow: hidden;
}
.p-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.p-col-feature {
  width: 56%;
}
.p-table th,
.p-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #2a2b2d;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.p-table th[scope='row'] {
  text-align: left;
  font-weight: 600;
}
.p-table th[scope='row'] small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.p-table thead th {
  padding-top: 24px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.p-table thead small {
  display: block;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}
.p-table .p-plus-col {
  background: #d2f88b08;
}
.p-table thead .p-plus-col {
  color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}
.p-group th {
  padding-top: 26px;
  padding-bottom: 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfc0b9;
  background: #141516;
}
.p-table tbody tr:not(.p-group) {
  transition: background 0.2s;
}
.p-table tbody tr:not(.p-group):hover {
  background: #ffffff05;
}
.p-yes,
.p-no {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  vertical-align: middle;
}
.p-yes {
  background: #d2f88b1f;
}
.p-yes::before {
  content: '✓';
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.p-no::before {
  content: '';
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #55575a;
}
.p-table tfoot th,
.p-table tfoot td {
  border-bottom: 0;
  padding-top: 22px;
  padding-bottom: 24px;
}
.p-table-cta {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #454649;
  border-radius: 9px;
  background: var(--raised);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.25s var(--ease);
}
.p-table-cta:hover {
  transform: translateY(-2px);
  background: #303133;
}
.p-table-cta.primary-cta {
  border-color: var(--accent);
  background: var(--accent);
  color: #172011;
}
.p-table-cta.primary-cta:hover {
  background: #e0ffae;
}

/* Risk reducers */
.p-assure {
  margin-top: 0;
}
.p-assure h2 em {
  display: block;
}

@keyframes p-row {
  from { opacity: 0; transform: translateX(-14px); }
}
@keyframes p-grow {
  from { transform: scaleX(0); }
}
@keyframes p-pop {
  from { opacity: 0; transform: scale(0.4); }
}

@media (max-width: 1100px) {
  .p-hero,
  .p-credit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-bill {
    max-width: 620px;
  }
  .p-calc {
    position: static;
  }
  .p-examples,
  .p-legend {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .p-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-card.featured {
    order: -1;
  }
}
@media (max-width: 640px) {
  .p-hero {
    padding-top: 32px;
    gap: 40px;
  }
  .p-hero h1 {
    font-size: 44px;
  }
  .p-lede {
    font-size: 16px;
  }
  .p-bill-rows {
    padding-inline: 16px;
  }
  .p-bill-rows b {
    font-size: 13.5px;
  }
  .p-bill-total,
  .p-bill figcaption {
    padding-inline: 16px;
  }
  .p-bill-meter {
    margin-inline: 16px;
  }
  .p-card {
    padding: 26px 22px;
  }
  .p-rules li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 18px;
  }
  .p-rules strong {
    font-size: 34px;
  }
  .p-examples,
  .p-legend {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-examples article {
    padding: 22px;
  }
  .p-mix {
    padding: 22px;
  }
  .p-col-feature {
    width: 50%;
  }
  .p-table th,
  .p-table td {
    padding: 12px 8px;
    font-size: 13.5px;
  }
  .p-table th[scope='row'],
  .p-group th {
    padding-left: 14px;
  }
  .p-table th[scope='row'] small {
    font-size: 12px;
  }
  .p-table thead th {
    font-size: 15px;
  }
  .p-table-cta {
    padding: 8px 10px;
    font-size: 13px;
  }
}
