/* Pricing page. Builds on styles.css: same ink, lemon, lines, type and motion. Flat surfaces, borders, no shadows. */

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

.pricing-page .mobile-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Hero ---------- */
.pr-hero {
  padding: 72px 0 0;
}
.pr-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 48px;
  margin-top: 30px;
}
.pr-hero h1 {
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.pr-hero-row > p {
  font-size: 17px;
  color: var(--muted);
  max-width: 34ch;
  padding-bottom: 10px;
}
.pr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pr-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.pr-toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
}
.pr-toggle button[aria-checked="true"] {
  color: var(--ink);
}
.pr-toggle-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0px);
  transform: translateX(var(--x, 4px));
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  transition:
    transform 0.5s var(--ease-out),
    width 0.5s var(--ease-out);
}
.pr-save {
  font-size: 9.5px;
  letter-spacing: 0.9px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--yellow);
  border: 1px solid #e6df5e;
  color: var(--ink);
}
.pr-currency select {
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231c1e1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  font: 500 14px/1 var(--sans);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.pr-currency select:hover {
  border-color: #c9ccc2;
}
.pr-currency select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Plan cards ---------- */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.pc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.pc.is-popular {
  border-color: var(--ink);
}
.pc-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--yellow);
  border: 1px solid #e6df5e;
  font-size: 9.5px;
  letter-spacing: 0.9px;
  vertical-align: 4px;
}
.pc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 28px;
}
.pc-name {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 550;
}
.pc-for {
  margin-top: 8px;
  min-height: 3.1em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 26px;
}
.pc-amount {
  display: inline-flex;
  align-items: baseline;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.pc-sym {
  font-size: 0.55em;
  letter-spacing: 0;
  margin-right: 2px;
  transform: translateY(-0.55em);
}
.pc-talk {
  font-size: 40px;
  letter-spacing: -0.04em;
}
.pc-per {
  font-size: 14px;
  color: var(--muted);
}
.pc-billing {
  margin-top: 8px;
  min-height: 1.5em;
  font-size: 13px;
  color: var(--muted);
}
.pc-included {
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pc-included strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pc-extra {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.pc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
.pc-cta span {
  font-size: 19px;
  font-weight: 400;
  transition: transform 0.25s;
}
.pc-cta:hover {
  border-color: var(--ink);
}
.pc-cta:hover span {
  transform: translate(2px, -2px);
}
.pc-cta.is-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pc-cta.is-dark:hover {
  background: #33362f;
}
.pc-lead {
  margin-top: 26px;
  font-size: 10px;
  color: #727868;
}
.pc-points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 14px;
  line-height: 1.4;
}
.pc-points li {
  display: flex;
  gap: 10px;
}
.pc-tick {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 9px;
}
.pt-soon {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: 450 9.5px/1.4 var(--mono);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 1px;
  white-space: nowrap;
}
.pr-fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Estimate ---------- */
.pr-estimate {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  margin-top: 130px;
  align-items: start;
}
.pr-estimate h2,
.pr-counts h2,
.pr-compare h2 {
  font-size: clamp(40px, 4.4vw, 62px);
  letter-spacing: -0.035em;
  margin-top: 28px;
}
.pr-estimate-copy p {
  margin-top: 22px;
  max-width: 36ch;
  font-size: 15px;
  color: var(--muted);
}
.pr-estimate-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  background: #fff;
  background-image: radial-gradient(#e3e5de 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: -9px -9px;
}
.pr-slider-label {
  display: block;
  font-size: 15px;
  color: var(--muted);
}
.pr-volume-num {
  display: block;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.pr-slider {
  --fill: 33%;
  width: 100%;
  height: 28px;
  margin: 26px 0 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.pr-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--line) var(--fill));
}
.pr-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--line) var(--fill));
}
.pr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}
.pr-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}
.pr-slider:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 6px;
}
.pr-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: #727868;
}
.pr-results {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pr-results li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.3s;
}
.pr-results li.is-best {
  border-color: var(--ink);
}
.pr-results .r-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 550;
}
.pr-results .r-best {
  font-size: 9.5px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--yellow);
  border: 1px solid #e6df5e;
}
.pr-results .r-total {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pr-results .r-total small {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.pr-results .r-detail {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}
.pr-results-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.pr-results-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- What counts ---------- */
.pr-counts {
  margin-top: 130px;
}
.pr-counts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 44px;
}
.pr-count-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px 28px;
}
.pr-count-card.is-free {
  background: var(--paper);
}
.pr-count-card > .mono {
  font-size: 10.5px;
  color: #727868;
}
.pr-count-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 16px;
  line-height: 1.4;
}
.pr-count-card li {
  display: flex;
  gap: 12px;
}
.pr-count-card li::before {
  content: "1";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  font: 500 11px/1 var(--mono);
}
.pr-count-card.is-free li::before {
  content: "0";
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

/* ---------- Comparison ---------- */
.pr-compare {
  margin-top: 130px;
}
.pt-wrap {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pt-switch {
  display: none;
}
.pt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.pt thead th {
  position: sticky;
  top: var(--sticky-top, 0px);
  transition: top 0.6s var(--ease-out);
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 16px 20px;
  vertical-align: bottom;
  text-align: left;
  font-weight: 400;
}
.pt thead th:not(.pt-corner) {
  width: 17%;
}
.pt-corner {
  vertical-align: top !important;
}
.pt-corner .mono {
  font-size: 10px;
  color: #727868;
}
.pt-plan {
  display: block;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.pt-price {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pt-price small {
  font-size: 12px;
}
.pt-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  transition: border-color 0.25s;
}
.pt-cta:hover {
  border-color: var(--ink);
}
.pt-cta.is-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pt tbody th,
.pt tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid #eef0ea;
  text-align: left;
  vertical-align: top;
}
.pt tbody tr:last-child th,
.pt tbody tr:last-child td {
  border-bottom-color: var(--line);
}
.pt tbody:last-child tr:last-child th,
.pt tbody:last-child tr:last-child td {
  border-bottom: 0;
}
.pt tbody th {
  font-weight: 400;
  width: 32%;
}
.pt-label {
  display: block;
  font-weight: 500;
}
.pt-note {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.pt-group th {
  padding: 30px 16px 12px !important;
  background: #fff;
  border-bottom: 1px solid var(--line) !important;
}
.pt-group .mono {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
}
.pt-group .cross {
  font-size: 18px;
}
.pt-yes {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}
.pt-no {
  color: #b9bcb3;
}
.pt-text {
  font-variant-numeric: tabular-nums;
}
.pt tbody td .pt-soon {
  margin-left: 0;
}
/* the plan everyone looks at first */
.pt thead th:nth-child(3),
.pt tbody td:nth-child(3) {
  background: #fdfdf6;
}
.pt thead th:nth-child(3) {
  box-shadow: inset 0 3px 0 var(--yellow);
}

/* The table's header sticks under the site header while you read. */
@media (min-width: 651px) {
  .pt thead th:first-child {
    border-top-left-radius: 14px;
  }
  .pt thead th:last-child {
    border-top-right-radius: 14px;
  }
}

/* ---------- FAQ and closing, tuned for this page ---------- */
.pricing-page .faq {
  margin-top: 40px;
}
.pricing-page .closing {
  margin-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .pr-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pr-estimate {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 900px) {
  .pr-hero-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pr-hero-row > p {
    padding-bottom: 0;
  }
  .pr-counts-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .pr-hero {
    padding-top: 40px;
  }
  .pr-controls {
    margin-top: 36px;
  }
  .pr-toggle {
    flex: 1 1 100%;
  }
  .pr-save {
    white-space: nowrap;
  }
  .pr-currency {
    margin-left: auto;
  }
  .pr-toggle button {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
  }
  .pr-currency {
    flex: 0 0 auto;
  }
  .pr-plans {
    grid-template-columns: 1fr;
  }
  .pc-for {
    min-height: 0;
  }
  .pr-estimate,
  .pr-counts,
  .pr-compare {
    margin-top: 90px;
  }
  .pr-estimate-panel {
    padding: 22px 18px;
  }
  .pr-volume-num {
    font-size: 52px;
  }
  /* Phones: pick one plan to compare, feature by feature. */
  .pt-wrap {
    border: 0;
    border-radius: 0;
  }
  .pt-switch {
    position: sticky;
    top: calc(var(--sticky-top, 0px) + 8px);
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    transition: top 0.6s var(--ease-out);
  }
  .pt-switch button {
    height: 38px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
  }
  .pt-switch button[aria-checked="true"] {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
  }
  .pt thead {
    display: none;
  }
  .pt :is(thead, tbody) :is(th, td):not(:first-child) {
    display: none;
  }
  .pt[data-col="1"] :is(th, td):nth-child(2),
  .pt[data-col="2"] :is(th, td):nth-child(3),
  .pt[data-col="3"] :is(th, td):nth-child(4),
  .pt[data-col="4"] :is(th, td):nth-child(5) {
    display: table-cell;
  }
  .pt tbody th {
    width: auto;
    padding-left: 0;
  }
  .pt tbody td {
    width: 34%;
    padding-right: 0;
    text-align: right;
    background: transparent !important;
  }
  .pt-group th {
    padding-left: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pr-toggle-pill,
  .pr-toggle button {
    transition: none;
  }
}

/* A usual month at a glance: the static table under the estimator copy. */
.pr-glance {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.pr-glance caption {
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 10px;
}
.pr-glance th,
.pr-glance td {
  padding: 9px 10px 9px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.pr-glance thead th {
  font-size: 12px;
  color: var(--muted);
  border-top: 0;
}
.pr-glance tbody th {
  font-weight: 500;
}
.pr-glance-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
