/* IQ Mindware pricing pages v2
   Contemporary, evidence-aware pricing for individuals and organisations.
   Uses the shared science-chic system: white space, cyan structure and sparse lime signals.
*/

.wf-skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--wf-navy-950);
  background: var(--wf-white);
  box-shadow: 0 12px 30px rgba(3, 22, 38, 0.2);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.wf-skip-link:focus {
  transform: translateY(0);
}

.wf-pricing-hero .wf-page-hero__inner {
  align-items: center;
}

.wf-pricing-contact {
  max-width: 62ch;
  margin: 1.1rem 0 0;
  color: rgba(236, 244, 251, 0.78);
  font-size: clamp(0.9rem, 1.2vw, 0.98rem);
  line-height: 1.6;
}

.wf-pricing-contact strong {
  color: var(--wf-white);
}

.wf-pricing-contact a,
.wf-cta-band .wf-pricing-email-link {
  color: var(--wf-lime);
  font-weight: 780;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.wf-pricing-hero-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-color: rgba(34, 170, 255, 0.36);
  background:
    linear-gradient(160deg, rgba(34, 170, 255, 0.12), rgba(204, 255, 102, 0.035)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.wf-pricing-hero-card::after {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(204, 255, 102, 0.32);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at 35% 35%, rgba(204, 255, 102, 0.42), transparent 42%),
    rgba(34, 170, 255, 0.08);
  pointer-events: none;
}

.wf-hero-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: baseline;
  margin: 0.7rem 0 0.85rem;
}

.wf-hero-price b {
  color: var(--wf-white);
  font-family: var(--wf-font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.wf-hero-price small {
  max-width: 12rem;
  color: rgba(236, 244, 251, 0.72);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

.wf-pricing-switcher {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--wf-line);
  background: var(--wf-white);
}

.wf-pricing-switcher .wf-shell {
  width: min(calc(100% - (2 * var(--wf-gutter))), 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding-block: 0.75rem;
}

.wf-pricing-switcher a {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--wf-radius-md);
  color: var(--wf-ink-soft);
  background: transparent;
  text-align: center;
  text-decoration: none;
}

.wf-pricing-switcher a:hover,
.wf-pricing-switcher a:focus-visible {
  border-color: var(--wf-cyan-line);
  color: var(--wf-navy-950);
  background: var(--wf-cyan-soft);
}

.wf-pricing-switcher a.is-active {
  border-color: rgba(34, 170, 255, 0.34);
  color: var(--wf-navy-950);
  background:
    linear-gradient(135deg, rgba(34, 170, 255, 0.10), rgba(204, 255, 102, 0.055)),
    var(--wf-white);
  box-shadow: 0 10px 28px rgba(6, 37, 61, 0.08);
}

.wf-pricing-switcher span,
.wf-pricing-switcher small {
  display: block;
}

.wf-pricing-switcher span {
  font-size: 0.92rem;
  font-weight: 820;
}

.wf-pricing-switcher small {
  margin-top: 0.14rem;
  color: var(--wf-ink-soft);
  font-size: 0.7rem;
  line-height: 1.3;
}

.wf-pricing-nav {
  border-bottom: 1px solid var(--wf-line);
  background: var(--wf-canvas);
}

.wf-pricing-nav .wf-shell {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding-block: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wf-pricing-nav a {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius-pill);
  color: var(--wf-ink-soft);
  background: var(--wf-white);
  font-size: 0.76rem;
  font-weight: 760;
  text-decoration: none;
}

.wf-pricing-nav a:hover,
.wf-pricing-nav a:focus-visible {
  border-color: var(--wf-cyan-line);
  color: var(--wf-cyan-700);
  background: var(--wf-cyan-soft);
}

.wf-plan-grid {
  width: 100%;
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  align-items: stretch;
}

.wf-plan-grid--individual {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-plan-grid--organisation {
  width: min(100%, 1120px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
}

.wf-plan-card {
  --wf-plan-accent: var(--wf-cyan);
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  overflow: visible;
  border-color: rgba(34, 170, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 170, 255, 0.035), transparent 9rem),
    var(--wf-white);
  box-shadow: 0 16px 44px rgba(7, 39, 62, 0.07);
}

.wf-plan-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: inherit;
  content: "";
  background: var(--wf-plan-accent);
}

.wf-plan-card:nth-child(3) {
  --wf-plan-accent: var(--wf-deep-blue, #2764b7);
}

.wf-plan-card:nth-child(4) {
  --wf-plan-accent: var(--wf-teal-700);
}

.wf-plan-card--featured {
  --wf-plan-accent: linear-gradient(90deg, var(--wf-cyan), var(--wf-lime));
  border-color: rgba(34, 170, 255, 0.56);
  background:
    linear-gradient(155deg, rgba(34, 170, 255, 0.095), rgba(204, 255, 102, 0.035) 42%, transparent 72%),
    var(--wf-white);
  box-shadow: 0 28px 74px rgba(6, 37, 61, 0.14);
}

.wf-plan-card--featured::before {
  height: 6px;
  background: linear-gradient(90deg, var(--wf-cyan), var(--wf-lime));
}

.wf-plan-card__header h3 {
  margin: 0.8rem 0 0.55rem;
  color: var(--wf-navy-950);
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.wf-plan-card__best {
  min-height: 4.8rem;
  margin: 0;
  color: var(--wf-ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.wf-plan-card__best strong {
  color: var(--wf-navy-950);
}

.wf-plan-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  margin: 1.25rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wf-line);
}

.wf-plan-price strong {
  color: var(--wf-navy-950);
  font-family: var(--wf-font-display);
  font-size: clamp(2.8rem, 5vw, 4.15rem);
  font-weight: 670;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.wf-plan-price span {
  color: var(--wf-cyan-700);
  font-family: var(--wf-font-mono);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.wf-plan-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.wf-plan-facts > div {
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius-md);
  background: rgba(244, 248, 251, 0.72);
}

.wf-plan-facts dt,
.wf-plan-facts dd {
  margin: 0;
}

.wf-plan-facts dt {
  color: var(--wf-ink-soft);
  font-size: 0.63rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wf-plan-facts dd {
  margin-top: 0.22rem;
  color: var(--wf-navy-950);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
}

.wf-plan-card__summary {
  margin: 0 0 0.95rem;
  color: var(--wf-ink-soft);
  font-size: 0.86rem;
  line-height: 1.58;
}

.wf-plan-card .wf-check-list {
  margin-bottom: 1.35rem;
}

.wf-plan-card .wf-sales-actions {
  margin-top: auto;
}

.wf-sales-notice--calm {
  border-color: var(--wf-line);
  background: rgba(244, 248, 251, 0.86);
}

.wf-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.2rem);
}

.wf-choice-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wf-choice-grid > article {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius-lg);
  background: var(--wf-white);
  box-shadow: 0 12px 32px rgba(6, 37, 61, 0.055);
}

.wf-choice-grid > article > span {
  min-width: 2.1rem;
  min-height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--wf-cyan-line);
  border-radius: 50%;
  color: var(--wf-cyan-700);
  background: var(--wf-cyan-soft);
  font-family: var(--wf-font-mono);
  font-size: 0.7rem;
  font-weight: 820;
}

.wf-choice-grid h3 {
  margin: 0.9rem 0 0.5rem;
  color: var(--wf-navy-950);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.wf-choice-grid p {
  margin: 0;
  color: var(--wf-ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.wf-addon-prices {
  display: grid;
  gap: 0.8rem;
}

.wf-addon-prices article,
.wf-licence-examples article {
  padding: 1rem 1.1rem;
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius-lg);
  background: var(--wf-white);
  box-shadow: 0 12px 34px rgba(6, 37, 61, 0.055);
}

.wf-addon-prices span,
.wf-addon-prices strong,
.wf-addon-prices small,
.wf-licence-examples span,
.wf-licence-examples strong,
.wf-licence-examples small {
  display: block;
}

.wf-addon-prices span,
.wf-licence-examples span {
  color: var(--wf-ink-soft);
  font-size: 0.72rem;
  font-weight: 760;
}

.wf-addon-prices strong,
.wf-licence-examples strong {
  margin: 0.25rem 0 0.18rem;
  color: var(--wf-navy-950);
  font-family: var(--wf-font-display);
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.wf-addon-prices small,
.wf-licence-examples small {
  color: var(--wf-ink-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.wf-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.wf-addon-card {
  min-width: 0;
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  border-color: rgba(34, 170, 255, 0.18);
}

.wf-addon-card h3 {
  margin: 0.35rem 0 1rem;
  color: var(--wf-navy-950);
  font-size: clamp(1.3rem, 2vw, 1.62rem);
  letter-spacing: -0.035em;
}

.wf-licence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

.wf-licence-formula {
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border-color: rgba(34, 170, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(34, 170, 255, 0.085), rgba(204, 255, 102, 0.035)),
    var(--wf-white);
}

.wf-licence-formula > span,
.wf-licence-formula > strong,
.wf-licence-formula > p {
  display: block;
}

.wf-licence-formula > span {
  color: var(--wf-cyan-700);
  font-family: var(--wf-font-mono);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.wf-licence-formula > strong {
  margin-top: 0.65rem;
  color: var(--wf-navy-950);
  font-family: var(--wf-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.wf-licence-formula > p {
  margin: 0.18rem 0 1rem;
  color: var(--wf-ink-soft);
}

.wf-licence-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.wf-licence-examples article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.wf-health-plan-panel {
  align-items: center;
}

.wf-pricing-path-grid {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin-inline: auto;
}

.wf-pricing-path-card {
  min-width: 0;
  padding: clamp(1.45rem, 3vw, 2rem);
  border-color: rgba(34, 170, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(34, 170, 255, 0.06), transparent 42%),
    var(--wf-white);
  box-shadow: 0 22px 60px rgba(6, 37, 61, 0.085);
}

.wf-pricing-path-card h2 {
  margin: 0.8rem 0 0.55rem;
  color: var(--wf-navy-950);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
}

.wf-pricing-path-card > p {
  min-height: 4.6rem;
  color: var(--wf-ink-soft);
  line-height: 1.58;
}

.wf-path-price {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid var(--wf-cyan-line);
  border-radius: var(--wf-radius-lg);
  background: var(--wf-cyan-soft);
}

.wf-path-price span,
.wf-path-price strong,
.wf-path-price small {
  display: block;
}

.wf-path-price span {
  color: var(--wf-cyan-700);
  font-family: var(--wf-font-mono);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.wf-path-price strong {
  margin: 0.25rem 0 0.18rem;
  color: var(--wf-navy-950);
  font-family: var(--wf-font-display);
  font-size: clamp(2.7rem, 5vw, 3.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.wf-path-price small {
  color: var(--wf-ink-soft);
  font-size: 0.72rem;
}

.wf-pricing-path-card > .wf-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.wf-quick-actions {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}

.wf-quick-actions .wf-btn {
  width: 100%;
  justify-content: center;
}

@media (hover: hover) {
  .wf-plan-card,
  .wf-pricing-path-card,
  .wf-choice-grid > article,
  .wf-addon-prices article,
  .wf-licence-examples article {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease;
  }

  .wf-plan-card:hover,
  .wf-pricing-path-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 170, 255, 0.42);
    box-shadow: 0 26px 68px rgba(6, 37, 61, 0.13);
  }
}

@media (max-width: 1000px) {
  .wf-plan-grid--individual,
  .wf-choice-grid--four,
  .wf-licence-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-plan-grid--individual .wf-plan-card--featured {
    grid-column: 1 / -1;
    width: min(100%, 680px);
    justify-self: center;
  }

  .wf-choice-grid--four > article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .wf-plan-grid--organisation,
  .wf-pricing-path-grid,
  .wf-addon-grid,
  .wf-licence-layout {
    grid-template-columns: 1fr;
  }

  .wf-plan-card__best,
  .wf-pricing-path-card > p {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .wf-pricing-switcher .wf-shell {
    width: min(calc(100% - 1.25rem), 760px);
  }

  .wf-pricing-switcher a {
    min-height: 56px;
    padding: 0.6rem 0.65rem;
  }

  .wf-pricing-switcher small {
    display: none;
  }

  .wf-pricing-nav .wf-shell {
    width: calc(100% - 1rem);
  }

  .wf-choice-grid,
  .wf-choice-grid--four,
  .wf-plan-grid--individual,
  .wf-licence-examples {
    grid-template-columns: 1fr;
  }

  .wf-plan-grid--individual .wf-plan-card--featured,
  .wf-choice-grid--four > article:last-child {
    grid-column: auto;
    width: auto;
  }

  .wf-plan-facts {
    grid-template-columns: 1fr 1fr;
  }

  .wf-plan-price strong {
    font-size: 3rem;
  }
}

@media (max-width: 500px) {
  .wf-plan-card,
  .wf-pricing-path-card,
  .wf-addon-card {
    padding: 1.15rem;
  }

  .wf-plan-facts {
    grid-template-columns: 1fr;
  }

  .wf-hero-price {
    display: block;
  }

  .wf-hero-price small {
    margin-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-skip-link,
  .wf-plan-card,
  .wf-pricing-path-card,
  .wf-choice-grid > article,
  .wf-addon-prices article,
  .wf-licence-examples article {
    transition: none;
  }
}

