/*
 * /pricing redesign. Loaded only on the pricing page, after site.css and
 * site-fixes.css. Uses the handoff's tokens (--brand-*, --ink-*, --sand) and
 * component language (pill buttons, 20px cards with a 1px inset border).
 */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.pr-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: 56px 72px;
}
.pr-h1 {
  max-width: 15ch;
  margin-top: 10px;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.pr-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.pr-trust {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}
.pr-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pr-trust svg {
  width: 18px;
  height: 18px;
  color: var(--brand-600);
}

/* Rates at a glance */
.pr-glance {
  background: var(--white);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--ink-100), 0 24px 48px -32px rgba(31, 30, 31, 0.35);
  padding: 22px 22px 18px;
}
.pr-glance-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--ink-100);
}
.pr-glance-h span {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-900);
}
.pr-glance-h small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.pr-glance ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pr-glance li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--ink-100);
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.pr-glance li:last-child a {
  border-bottom: 0;
}
.pr-glance li a:hover {
  background: var(--brand-50);
  color: var(--ink-900);
}
.pr-glance li b {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-600);
  white-space: nowrap;
  text-align: right;
}
.pr-glance li b small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}
.pr-glance-f {
  margin: 10px 4px 0;
  font-size: 12px;
  color: var(--ink-500);
}

/* ---------- Comparison ---------- */
.pr-head-sec {
  margin-bottom: 36px;
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pr-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--ink-100);
  padding: 22px 22px 16px;
  scroll-margin-top: 110px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pr-card:hover,
.pr-card:target {
  box-shadow: inset 0 0 0 1px var(--brand-200), 0 18px 40px -28px rgba(31, 30, 31, 0.35);
}
.pr-card:target {
  box-shadow: inset 0 0 0 2px var(--brand-500), 0 18px 40px -28px rgba(31, 30, 31, 0.35);
}
.pr-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pr-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
}
.pr-head p {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
}
.pr-badge {
  margin-left: 8px;
  vertical-align: 1px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--soon);
  background: var(--soon-50);
}

.pr-rate {
  display: grid;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}
.pr-k,
.pr-mk {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.pr-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink-900);
  margin-top: 6px;
}
.pr-num-text {
  font-size: 28px;
  letter-spacing: -0.025em;
}
.pr-example .pr-num {
  color: var(--ink-700);
}
.pr-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-700);
  margin-top: 4px;
}
.pr-method {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}
.pr-method > svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand-600);
  margin-top: 1px;
}
.pr-method .pr-mk {
  margin-right: 4px;
}

.pr-facts {
  margin: 14px 0 0;
  display: grid;
  gap: 0;
}
.pr-facts > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px dashed var(--ink-100);
  font-size: 14px;
}
.pr-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-weight: 600;
}
.pr-facts dt svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-400);
}
.pr-facts dd {
  margin: 0;
  color: var(--ink-900);
  font-weight: 600;
}
.pr-na {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px dashed var(--ink-200);
  background: var(--ink-50, #f6f6f6);
}

/* More details */
.pr-more {
  margin-top: auto;
  border-top: 1px solid var(--ink-100);
  padding-top: 4px;
  interpolate-size: allow-keywords;
}
.pr-card > .pr-facts + .pr-more {
  margin-top: 10px;
}
.pr-more summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-600);
  border-radius: 8px;
}
.pr-more summary::-webkit-details-marker {
  display: none;
}
.pr-more summary:hover {
  color: var(--brand-700);
}
.pr-more summary:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}
.pr-chev {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.pr-more[open] .pr-chev {
  transform: rotate(180deg);
}
.pr-more::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}
.pr-more[open]::details-content {
  height: auto;
}
.pr-more-body {
  padding: 8px 0 6px;
  font-size: 14px;
  color: var(--ink-600);
  display: grid;
  gap: 10px;
}
.pr-more-body b {
  color: var(--ink-900);
}
.pr-free {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--ok);
}
.pr-free svg {
  width: 16px;
  height: 16px;
}
.pr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.pr-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
}
.pr-links a:hover {
  color: var(--brand-600);
}
.pr-links svg {
  width: 15px;
  height: 15px;
}
.pr-foot {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-500);
  max-width: 80ch;
}

/* ---------- Notices ---------- */
.pr-notices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pr-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--ink-100);
  padding: 24px;
}
.pr-notice h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
}
.pr-notice p {
  margin-top: 6px;
  color: var(--ink-600);
  font-size: 15px;
}

/* ---------- CTA ---------- */
.pr-cta h2 {
  max-width: 22ch;
}
.pr-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pr-rights {
  margin-top: 14px !important;
  opacity: 1 !important;
}
.pr-rights a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pr-rights svg {
  width: 15px;
  height: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .pr-hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .pr-glance {
    max-width: 560px;
  }
  .pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .pr-hero-in {
    padding-block: 36px 48px;
  }
  .pr-grid,
  .pr-notices {
    grid-template-columns: minmax(0, 1fr);
  }
  .pr-glance li b {
    white-space: normal;
  }
  .pr-glance li b small {
    display: block;
  }
  .pr-num {
    font-size: 36px;
  }
  .pr-facts > div {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .pr-ctas .btn,
  .pr-cta-btns .btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 400px) {
  .pr-ctas .btn,
  .pr-cta-btns .btn {
    flex-basis: 100%;
    justify-content: center;
  }
  .pr-facts > div {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
@media (max-width: 340px) {
  .pr-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pr-more::details-content,
  .pr-chev,
  .pr-card {
    transition: none;
  }
}
