/* /pricing: the four seats, where seats live, the team estimate, compare
 * by seat (one table; on a phone, tabs show one seat's column), and the
 * questions. Every amount is a data-price span from pricing.json. */

.pr-hero {
  padding-top: 80px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.pr-block {
  padding-top: 24px;
  padding-bottom: 56px;
}
.pr-block--homes {
  padding-top: 0;
  padding-bottom: 88px;
}
.pr-label {
  margin: 0 0 14px;
  font-weight: 400;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.plan {
  border: 1px solid var(--ink-edge);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink);
}
.plan--hi {
  border-color: rgba(241, 233, 220, 0.4);
  background: var(--ink-raised);
}
.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.plan__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.plan__badge {
  font-size: 10px;
  color: var(--cream-soft);
}
.plan__for {
  color: var(--grey-soft);
  font-size: 14px;
  min-height: 42px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.amt {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}
.was {
  color: var(--grey);
  font-size: 13px;
}
.per {
  color: var(--grey-soft);
  font-size: 13px;
}
.plan__usage {
  font-size: 14px;
}
.plan__list {
  border-top: 1px solid var(--ink-edge);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan__lead {
  font-size: 13px;
  color: var(--grey);
}
.plan ul,
.home ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan li,
.home li {
  font-size: 14px;
  color: var(--cream-soft);
  display: flex;
  gap: 8px;
}
.pdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey-dim);
  flex: none;
  margin-top: 9px;
}
.homes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.home {
  border: 1px solid var(--ink-edge);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home .plan__name {
  font-size: 19px;
}
.home .plan__for {
  min-height: 0;
}
.home__seats {
  font-size: 14px;
}
.home .btn {
  border-radius: 8px;
}
/* Every card's button is its last line: the cards in a row are one height
   (the grid stretches them) and the button takes the space above it, so the
   buttons of a row line up. */
.plans,
.homes {
  align-items: stretch;
}
.plan__cta {
  margin-top: auto;
  white-space: nowrap;
}

/* The estimate. */
.pr-est {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.pr-est__copy {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.est {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--ink-edge);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.est__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.est__name {
  display: flex;
  flex-direction: column;
  font-size: 17px;
}
.est__step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.est__step button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ink-line);
  background: transparent;
  font-size: 20px;
}
.est__n {
  font-family: var(--font-display);
  font-size: 30px;
  min-width: 40px;
  text-align: center;
}
@media (scripting: none) {
  .est__step button {
    display: none;
  }
}
.est__total {
  border-top: 1px solid var(--ink-edge);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.est__sum {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.est__sum .was {
  font-size: 16px;
}

/* Compare. On a desktop, the whole table; on a phone, one seat's column at a
 * time, picked by the tabs (radios, so it works without a script). */
.pr-cmp {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cmp-tabs {
  display: none;
}
.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--ink-edge);
  border-radius: 14px;
}
.cmp-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--cream-soft);
}
.cmp-table thead th {
  background: var(--ink-card);
  color: var(--grey-soft);
  font-weight: 400;
  text-align: left;
  padding: 14px 18px;
}
.cmp-table thead .cmp-hi {
  color: var(--cream);
}
.cmp-table th[scope="row"] {
  color: var(--cream);
  font-weight: 400;
  text-align: left;
  width: 36%;
}
.cmp-table td,
.cmp-table th[scope="row"] {
  padding: 12px 18px;
  border-top: 1px solid var(--ink-rule);
  vertical-align: baseline;
}
.cmp-grp th {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  padding: 18px 18px 8px;
}
@media (max-width: 720px) {
  .cmp-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    background: var(--ink-card);
    border: 1px solid var(--ink-edge);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 14px;
  }
  .cmp-tab {
    border-radius: 9px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    color: var(--cream-soft);
    border: 1px solid transparent;
  }
  #cmp-0:checked ~ .cmp-tabs label[for="cmp-0"],
  #cmp-1:checked ~ .cmp-tabs label[for="cmp-1"],
  #cmp-2:checked ~ .cmp-tabs label[for="cmp-2"],
  #cmp-3:checked ~ .cmp-tabs label[for="cmp-3"] {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
    font-weight: 600;
  }
  #cmp-0:focus-visible ~ .cmp-tabs label[for="cmp-0"],
  #cmp-1:focus-visible ~ .cmp-tabs label[for="cmp-1"],
  #cmp-2:focus-visible ~ .cmp-tabs label[for="cmp-2"],
  #cmp-3:focus-visible ~ .cmp-tabs label[for="cmp-3"] {
    outline: 2px solid var(--cream);
    outline-offset: 2px;
  }
  .cmp-scroll {
    overflow: visible;
    padding: 4px 16px 8px;
  }
  .cmp-table {
    min-width: 0;
  }
  .cmp-table thead {
    display: none;
  }
  .cmp-table td,
  .cmp-table th[scope="row"] {
    padding: 11px 0;
  }
  .cmp-table td {
    text-align: right;
    color: var(--cream-soft);
  }
  .cmp-table th[scope="row"] {
    width: auto;
    padding-right: 16px;
  }
  .cmp-grp th {
    padding: 18px 0 6px;
  }
  .cmp-table tr > td {
    display: none;
  }
  #cmp-0:checked ~ .cmp-scroll tr > td:nth-child(2),
  #cmp-1:checked ~ .cmp-scroll tr > td:nth-child(3),
  #cmp-2:checked ~ .cmp-scroll tr > td:nth-child(4),
  #cmp-3:checked ~ .cmp-scroll tr > td:nth-child(5) {
    display: table-cell;
  }
}

/* Questions. */
.pr-faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faqs {
  display: flex;
  flex-direction: column;
}
.faq {
  border-top: 1px solid var(--ink-edge);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq__pm::after {
  content: "+";
}
.faq[open] .faq__pm::after {
  content: "\2212";
}
.faq p {
  color: var(--cream-soft);
  font-size: 15px;
  padding: 0 0 20px;
}
@media (max-width: 640px) {
  .pr-hero {
    padding-top: 56px;
  }
}
@media (min-width: 721px) {
  .cmp-radio {
    display: none;
  }
}
