/*
 * Pricing page (v2). Loaded after home.css on /pricing/ and /nl/pricing/.
 * Light tones only: cream page, darker cream band for the comparison,
 * cards in #faf8f3, sage for the enterprise row.
 */

.cv2-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cv2-prhero {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 5.6vw, 80px);
}

.cv2-prhero__title {
  max-width: 980px;
}

/* Team plans */

.cv2-plans {
  padding-bottom: clamp(80px, 9vw, 130px);
}

.cv2-plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.cv2-plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--card);
}

.cv2-plan__name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cv2-plan__price {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.cv2-plan__price span {
  color: var(--ink);
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cv2-plan__facts {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid #e6e1d4;
  border-bottom: 1px solid #e6e1d4;
  font-size: 15px;
  font-weight: 600;
}

.cv2-plan__tagline {
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.cv2-plan__features {
  margin-top: 16px;
  margin-bottom: 28px;
}

.cv2-plan__features li {
  font-size: 15px;
}

.cv2-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: auto;
  padding: 0 22px;
  border: 1.5px solid var(--g2);
  border-radius: 6px;
  color: var(--g2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cv2 .cv2-btn-outline:hover {
  background: var(--sage);
  color: var(--g2);
}

.cv2-plans__ent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  margin-top: 24px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 10px;
  background: var(--sage);
}

.cv2-plans__ent > div {
  flex: 1 1 420px;
}

.cv2-plans__ent p {
  max-width: 680px;
  margin-top: 8px;
  color: #454a44;
  font-size: 16px;
  line-height: 1.5;
}

/* Comparison tables */

.cv2-prcompare {
  scroll-margin-top: 24px;
}

.cv2-ptable__hint {
  display: none;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.cv2-ptable {
  /* Positioning context, so the hidden "included" labels stay inside the scroll box. */
  position: relative;
  margin-top: clamp(32px, 3.6vw, 48px);
  overflow-x: auto;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--card);
}

.cv2-ptable:focus-visible {
  outline: 3px solid var(--g3);
  outline-offset: 3px;
}

.cv2-ptable table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.cv2-ptable th,
.cv2-ptable td {
  padding: 13px 20px;
  border-bottom: 1px solid #e6e1d4;
  text-align: left;
  vertical-align: middle;
}

.cv2-ptable thead th {
  font-size: 16px;
  font-weight: 600;
}

.cv2-ptable thead th:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.cv2-ptable tbody th {
  width: 38%;
  font-weight: 500;
}

.cv2-ptable td {
  color: var(--text);
}

.cv2-ptable__group th {
  padding-top: 22px;
  color: var(--g2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cv2-ptable tbody:last-child tr:last-child th,
.cv2-ptable tbody:last-child tr:last-child td {
  border-bottom: 0;
}

.cv2-ptable__yes,
.cv2-ptable__no {
  display: inline-block;
  vertical-align: middle;
}

.cv2-ptable__yes {
  width: 12px;
  height: 12px;
  background: var(--g3);
}

.cv2-ptable__no {
  width: 12px;
  height: 2px;
  background: #b9b9ac;
}

/* Plans for individuals: deliberately quieter */

.cv2-individuals {
  border-top: 1px solid var(--line);
}

.cv2-individuals__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
}

.cv2-individuals__head .cv2-card__text {
  margin-top: 0;
}

.cv2-iplans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 40px;
  margin-top: clamp(28px, 3vw, 40px);
}

.cv2-iplan {
  display: flex;
  flex-direction: column;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.cv2-iplan__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.cv2-iplan h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.cv2-iplan__price {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.cv2-iplan__price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.cv2-iplan__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.cv2-iplan__tagline {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.cv2-iplan__features {
  margin-top: 10px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.cv2-iplan__features li::before {
  content: "· ";
  color: var(--g3);
}

.cv2-iplan .cv2-textlink {
  margin-top: auto;
  font-size: 15px;
}

.cv2-idetails {
  margin-top: 24px;
}

.cv2-idetails summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--g2);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.cv2-idetails summary::-webkit-details-marker {
  display: none;
}

.cv2-idetails summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
}

.cv2-idetails[open] summary::after {
  content: "\2212";
}

.cv2-idetails summary:focus-visible {
  outline: 3px solid var(--g3);
  outline-offset: 3px;
}

.cv2-idetails .cv2-ptable {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .cv2-ptable__hint {
    display: block;
  }

  /* Keep the feature names in view while the plans scroll sideways. */
  .cv2-ptable tbody th[scope="row"],
  .cv2-ptable thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    min-width: 150px;
    background: var(--card);
    box-shadow: 1px 0 0 #e6e1d4;
  }

  .cv2-ptable table {
    min-width: 560px;
  }

  .cv2-ptable__group th span {
    display: inline-block;
    position: sticky;
    left: 14px;
  }

  .cv2-ptable th,
  .cv2-ptable td {
    padding: 12px 14px;
  }
}
