/* ==========================================================================
   PRICING — DWS plans + comparison matrix
   ========================================================================== */

.pr-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}

/* Intro -------------------------------------------------------------------- */
.pr-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.pr-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 18px;
}

.pr-title {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--text-white);
  margin: 0 0 18px;
}

.pr-lede {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Plan cards --------------------------------------------------------------- */
.pr-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 96px;
}

.pr-cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.pr-cards--4 .pr-card {
  padding: 34px 26px;
}

.pr-cards--4 .pr-price-amount {
  font-size: 40px;
}

.pr-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.pr-cards--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pr-card--featured {
  border-color: var(--accent-red-30, rgba(255, 0, 21, 0.3));
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 0, 21, 0.14) 0%, rgba(255, 0, 21, 0.02) 45%, rgba(255, 255, 255, 0.012) 100%);
  box-shadow: 0 24px 70px -30px rgba(255, 0, 21, 0.65);
}

.pr-card--featured:hover {
  border-color: var(--accent-red, #ff0015);
}

.pr-badge {
  position: absolute;
  top: -11px;
  left: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-red, #ff0015);
  padding: 5px 12px;
  border-radius: 100px;
}

.pr-card-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-white);
  margin: 0 0 18px;
}

.pr-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.pr-price-amount {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--text-white);
}

.pr-price-period {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.pr-price-annual {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 26px;
}

.pr-cta {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-white);
  text-decoration: none;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.pr-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.pr-cta:active {
  transform: translateY(1px);
}

.pr-cta--primary {
  background: var(--accent-red, #ff0015);
  border-color: var(--accent-red, #ff0015);
  color: #fff;
}

.pr-cta--primary:hover {
  background: var(--accent-red-hover, #e60012);
  border-color: var(--accent-red-hover, #e60012);
}

.pr-card-meta {
  list-style: none;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pr-card-meta li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.pr-card-meta strong {
  color: var(--text-white);
  font-weight: 600;
}

/* Feature bullets with a check (used on the free plan) */
.pr-card-meta .pr-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
}

.pr-card-meta .pr-feat .pr-check {
  color: var(--accent-red, #ff0015);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Comparison matrix -------------------------------------------------------- */
.pr-compare {
  margin-top: 8px;
}

.pr-compare-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-white);
  text-align: center;
  margin: 0 0 10px;
}

.pr-compare-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 34px;
}

.pr-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
}

.pr-table thead th {
  padding: 22px 20px;
  text-align: center;
  vertical-align: bottom;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pr-th-feature {
  text-align: left !important;
  width: 40%;
}

.pr-th-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.pr-th-plan.is-featured {
  background: rgba(255, 0, 21, 0.07);
  box-shadow: inset 0 2px 0 var(--accent-red, #ff0015);
}

.pr-th-plan-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.3px;
}

.pr-th-plan-price {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.pr-th-plan-price span {
  opacity: 0.7;
}

.pr-name-short {
  display: none;
}

.pr-table tbody tr {
  transition: background 0.15s ease;
}

.pr-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.pr-td-feature {
  padding: 15px 20px;
  font-size: 14.5px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pr-td-note {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.pr-td-val {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--accent-red, #ff0015);
}

.pr-td-val.is-featured {
  background: rgba(255, 0, 21, 0.045);
}

.pr-check {
  display: inline-block;
  vertical-align: middle;
}

.pr-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

/* "Not included" dash (free plan) */
.pr-none {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
}

/* Free column header — make "Free" read as a price */
.pr-th-plan.is-free .pr-th-plan-price {
  color: #fff;
  font-weight: 600;
}

.pr-tr-value .pr-td-feature {
  font-weight: 600;
  color: var(--text-white);
}

/* Screen-reader-only text for checkmark cells */
.pr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA row */
.pr-tr-cta .pr-td-feature,
.pr-tr-cta .pr-td-val {
  border-bottom: none;
  padding-top: 22px;
  padding-bottom: 26px;
}

.pr-cta--sm {
  display: inline-block;
  padding: 11px 22px;
  font-size: 12px;
}

.pr-foot-note {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 26px 0 0;
}

.pr-foot-note a {
  color: var(--accent-red, #ff0015);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 21, 0.4);
}

.pr-foot-note a:hover {
  border-bottom-color: var(--accent-red, #ff0015);
}

/* Anchor offset so the footer "Pricing" link doesn't hide the heading
   under the fixed header when jumping to #pricing on the DWS page. */
#pricing {
  scroll-margin-top: 90px;
}

/* Responsive --------------------------------------------------------------- */
/* 4-up cards collapse to 2-up on medium screens */
@media (max-width: 1080px) {
  .pr-cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .pr-cards,
  .pr-cards--2,
  .pr-cards--3,
  .pr-cards--4 {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablet: allow a little horizontal scroll if needed */
@media (max-width: 900px) and (min-width: 601px) {
  .pr-table-wrap {
    overflow-x: auto;
  }

  .pr-table {
    min-width: 620px;
  }
}

/* Phones: fit all three columns on screen — no horizontal scroll */
@media (max-width: 600px) {
  .pr-section {
    padding: 56px 20px 90px;
  }

  .pr-title {
    font-size: 32px;
  }

  .pr-compare-title {
    font-size: 22px;
  }

  .pr-table {
    width: 100%;
    table-layout: fixed;
  }

  /* Feature column stays wide; plan columns share the rest evenly */
  .pr-th-feature {
    width: 46%;
  }

  .pr-th-plan {
    width: 18%;
    padding: 14px 4px !important;
  }

  /* 4-column matrix (with the free plan) needs tighter proportions */
  .pr-table--4 .pr-th-feature {
    width: 34%;
  }

  .pr-table--4 .pr-th-plan {
    width: 16.5%;
  }

  .pr-table--4 .pr-td-feature,
  .pr-table--4 .pr-td-val {
    padding-left: 3px;
    padding-right: 3px;
  }

  .pr-table--4 .pr-th-plan-name {
    font-size: 12px;
  }

  /* Short plan names, drop the price sub-line to save space */
  .pr-name-full {
    display: none;
  }

  .pr-name-short {
    display: inline;
  }

  .pr-th-plan-name {
    font-size: 13px;
  }

  .pr-th-plan-price {
    display: none;
  }

  .pr-th-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .pr-td-feature {
    padding: 13px 10px 13px 4px;
    font-size: 13px;
    line-height: 1.35;
  }

  .pr-td-note {
    font-size: 10.5px;
  }

  .pr-td-val {
    padding: 13px 4px;
  }

  .pr-check {
    width: 16px;
    height: 16px;
  }

  .pr-num {
    font-size: 14px;
  }

  /* Stack the in-table CTA buttons tighter */
  .pr-cta--sm {
    padding: 9px 8px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}
