/* /pricing — plan cards, billing toggle, and comparison-table polish.
   Follows the navy/azure design language of the newer marketing pages
   (products.css). Annual pricing is the default view; the toggle switches
   the page to standard monthly pricing via the .pr-monthly class. */

.pr-hero {
  --pr-navy: #153554;
  --pr-navy-deep: #0d2740;
  --pr-azure: #00a9e0;
  --pr-azure-ink: #00719f;
  --pr-ink: #17324d;
  --pr-copy: #52697a;
  --pr-line: #dce6eb;
  --pr-cloud: #f5f8fa;
  --pr-sky: #eaf4f8;
  --pr-green: #2f8a3e;
  --pr-green-soft: #e4f4e6;
  background: linear-gradient(180deg, var(--pr-cloud) 0%, #ffffff 85%);
  padding: 3em 0 3.2em;
}

.pr-hero * {
  box-sizing: border-box;
}

.pr-hero .container {
  max-width: 1150px;
}

.pr-hero button:focus-visible,
.pr-hero a:focus-visible {
  outline: 3px solid var(--pr-azure);
  outline-offset: 2px;
}

/* Billing toggle */
.pr-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.6em;
}

.pr-toggle {
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(21, 53, 84, 0.08);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.pr-seg {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--pr-copy);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  gap: 0.55em;
  line-height: 1.2;
  padding: 0.55em 1.35em;
  transition: background 0.18s ease, color 0.18s ease;
}

.pr-seg:hover {
  color: var(--pr-ink);
}

.pr-seg.is-active {
  background: var(--pr-navy);
  box-shadow: 0 4px 12px rgba(13, 39, 64, 0.35);
  color: #fff;
}

.pr-seg-save {
  background: var(--pr-green-soft);
  border-radius: 999px;
  color: var(--pr-green);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3em 0.75em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pr-seg.is-active .pr-seg-save {
  background: rgba(255, 255, 255, 0.16);
  color: #aef0b8;
}

/* Plan cards */
.pr-cards {
  align-items: stretch;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pr-card {
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(21, 53, 84, 0.08);
  display: flex;
  flex-direction: column;
  padding: 2em 1.7em 1.7em;
  position: relative;
  text-align: left;
}

.pr-card-body {
  flex: 1 1 auto;
}

.pr-plan {
  color: var(--pr-ink);
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.25em;
}

.pr-tagline {
  color: var(--pr-copy);
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 0 1.4em;
}

/* Featured (Pro Plus) card */
.pr-featured {
  background: linear-gradient(180deg, var(--pr-navy) 0%, var(--pr-navy-deep) 100%);
  border-color: var(--pr-navy-deep);
  box-shadow: 0 22px 44px rgba(13, 39, 64, 0.35);
}

.pr-featured .pr-plan {
  color: #fff;
}

.pr-featured .pr-tagline {
  color: #b7c9d9;
}

.pr-badge {
  background: var(--pr-azure);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.08em;
  padding: 0.45em 1.2em;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.pr-wiley {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35em 0.6em;
  margin: 0 0 1.2em;
  max-width: 100%;
  padding: 0.5em 0.8em;
}

.pr-wiley img {
  display: block;
  height: 24px;
  max-width: 100%;
  width: auto;
}

.pr-wiley span {
  color: var(--pr-navy);
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
}

/* Price block. Annual (discounted) numbers show by default; the .pr-monthly
   class on the section swaps in the standard monthly numbers. */
.pr-price {
  align-items: baseline;
  color: var(--pr-ink);
  display: flex;
  gap: 0.1em;
  margin: 0 0 0.35em;
}

.pr-featured .pr-price {
  color: #fff;
}

.pr-was {
  align-self: center;
  color: #9aacb9;
  font-size: 1.05em;
  font-weight: 600;
  margin-right: 0.4em;
  text-decoration: line-through;
}

.pr-featured .pr-was {
  color: #7e93a6;
}

.pr-cur {
  align-self: flex-start;
  font-size: 1.4em;
  font-weight: 700;
  margin-top: 0.3em;
}

.pr-num {
  font-size: 3.2em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pr-per {
  color: var(--pr-copy);
  font-size: 0.95em;
  font-weight: 600;
  margin-left: 0.3em;
}

.pr-featured .pr-per {
  color: #b7c9d9;
}

.pr-custom {
  color: var(--pr-ink);
  font-size: 2.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pr-num-monthly {
  display: none;
}

.pr-monthly .pr-num-annual {
  display: none;
}

.pr-monthly .pr-num-monthly {
  display: inline;
}

.pr-monthly .pr-was {
  display: none;
}

.pr-billed {
  color: var(--pr-copy);
  display: block;
  font-size: 0.85em;
  margin-bottom: 0.9em;
}

.pr-featured .pr-billed {
  color: #b7c9d9;
}

.pr-billed-monthly {
  display: none;
}

.pr-monthly .pr-billed-annual {
  display: none;
}

.pr-monthly .pr-billed-monthly {
  display: inline;
}

.pr-save {
  background: var(--pr-green-soft);
  border-radius: 999px;
  color: var(--pr-green);
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  padding: 0.3em 0.9em;
}

.pr-featured .pr-save {
  background: rgba(0, 169, 224, 0.18);
  color: #7fd8f7;
}

/* Keep card heights stable when toggling to monthly. */
.pr-monthly .pr-save {
  visibility: hidden;
}

/* Feature bullets */
.pr-feats {
  list-style: none;
  margin: 1.2em 0 1.6em;
  padding: 0;
}

.pr-feats li {
  color: var(--pr-ink);
  font-size: 0.92em;
  line-height: 1.4;
  margin: 0 0 0.55em;
  padding-left: 1.5em;
  position: relative;
}

.pr-feats li:before {
  color: var(--pr-azure);
  content: "\2713";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.pr-featured .pr-feats li {
  color: #e8f1f8;
}

/* CTAs */
.pr-card-foot {
  margin-top: auto;
}

.pr-cta {
  background: var(--pr-navy);
  border-radius: 10px;
  color: #fff !important;
  display: block;
  font-weight: 700;
  padding: 0.85em 1em;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.pr-cta:hover {
  background: var(--pr-navy-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.pr-featured .pr-cta {
  background: var(--pr-azure);
  box-shadow: 0 10px 22px rgba(0, 169, 224, 0.35);
}

.pr-featured .pr-cta:hover {
  background: #0096c7;
}

.pr-cta-ghost {
  background: transparent;
  border: 2px solid var(--pr-navy);
  color: var(--pr-navy) !important;
}

.pr-cta-ghost:hover {
  background: var(--pr-sky);
  transform: none;
}

.pr-trial {
  color: var(--pr-copy);
  font-size: 0.78em;
  margin-top: 0.7em;
  text-align: center;
}

.pr-featured .pr-trial {
  color: #b7c9d9;
}

.pr-footnote {
  color: var(--pr-copy);
  margin-top: 1.8em;
  text-align: center;
}

.pr-monthly .pr-footnote {
  visibility: hidden;
}

/* Comparison table polish (base styles live in style.css). With the plan
   cards moved out of the table, the plan-name header row must always show. */
.pr-compare-title {
  color: #153554;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.2em 0 1em;
  text-align: center;
}

section.hero table.pricing-table tbody .table-head span.plan-title {
  display: inline;
}

section.hero table.pricing-table tbody .table-head td {
  border-bottom: 2px solid #00a9e0;
  color: #153554;
  font-size: 1.05em;
  font-weight: 700;
  padding: 0.6em 0;
}

section.hero table.pricing-table tbody tr:nth-child(even) {
  background-color: #f5f8fa;
}

section.hero table.pricing-table tbody tr:hover {
  background-color: #eaf4f8;
}

@media screen and (max-width: 62em) {
  .pr-cards {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    max-width: 420px;
  }

  .pr-featured {
    order: -1;
  }
}

@media screen and (max-width: 30em) {
  .pr-seg {
    font-size: 0.9em;
    padding: 0.55em 0.9em;
  }
}

/* The comparison table keeps a 480px minimum width (style.css); on narrow
   phones let it scroll inside its container instead of widening the page. */
@media screen and (max-width: 40em) {
  section.hero .container {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}
