/* Copyright (c) 2026 Web Upp Limited. Licensed under the GPL-2.0-or-later; see LICENSE. */
.wu-plan {
  overflow: clip;
}

.wu-prices__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--wu-prices-glow-a, transparent), var(--wu-prices-glow-b, transparent) 60%, transparent);
  pointer-events: none;
}

.wu-plan .wu-wrap {
  position: relative;
}

.wu-prices__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
  text-align: center;
}

.wu-prices__foot p {
  margin: 0;
}

.wu-price {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  padding: 32px;
  border: 1px solid var(--wu-line);
  border-radius: var(--wu-card-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--wu-surface-2) 78%, transparent), color-mix(in srgb, var(--wu-surface) 78%, transparent));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--wu-card-shadow);
}

.wu-price--featured {
  border-color: transparent;
  background: linear-gradient(180deg, var(--wu-featured-top, var(--wu-surface-2)), var(--wu-featured-bottom, var(--wu-surface))) padding-box, var(--wu-gradient) border-box;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--wu-featured-glow, transparent) var(--wu-glow-mix, 100%), transparent);
}

.wu-price__name {
  margin: 0;
  font-family: var(--wu-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wu-price__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 24px 0 0;
}

.wu-price__amount {
  font-family: var(--wu-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.wu-price__pence {
  font-size: 0.5em;
  letter-spacing: -0.01em;
}

.wu-price__per {
  color: var(--wu-muted);
  font-size: 15px;
}

.wu-price__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wu-price__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.wu-price__list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--wu-success);
  stroke-width: 2.2;
}

.wu-price__button {
  width: 100%;
  margin-top: 28px;
}

.wu-plan__card {
  max-width: 520px;
  margin: 0 auto;
}

.wu-plan__term {
  margin: 10px 0 0;
  color: var(--wu-accent);
  font-family: var(--wu-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.wu-plan__list {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--wu-line);
}

.wu-plan--home .wu-plan__card {
  margin-top: 56px;
}

.wu-plan--home .wu-price__button {
  order: 3;
}

.wu-plan--home .wu-plan__card {
  display: flex;
  flex-direction: column;
}

.wu-plan--home .wu-plan__main {
  display: contents;
}

/* Pricing page: the large card, two parts on desktop. */
.wu-plan--full .wu-plan__card {
  max-width: none;
  margin-top: 48px;
  padding: 40px;
}

@media (min-width: 1025px) {
  .wu-plan--full .wu-plan__card {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    padding: 48px 56px;
  }
  .wu-plan--full .wu-plan__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 32px;
    align-content: start;
    margin-top: 0;
    padding: 0 0 0 56px;
    border-top: 0;
    border-left: 1px solid var(--wu-line);
  }
}
.wu-plan__rules {
  display: grid;
  gap: 0 40px;
  margin: 40px 0 0;
}

@media (min-width: 1025px) {
  .wu-plan__rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.wu-plan__rules > div {
  padding: 20px 0;
  border-top: 1px solid var(--wu-line);
}

.wu-plan__rules dt {
  color: var(--wu-accent);
  font-family: var(--wu-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wu-plan__rules dd {
  margin: 8px 0 0;
  color: var(--wu-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* The arrow after a button's or a text link's words (3.13.0, working rule
   12): the slot --wu-button-arrow is its display, inline-block when unset;
   none hides every arrow the parent draws on buttons and text links. In
   each block's own stylesheet, so it holds where a child dequeues the
   parent's sections.css. An icon before the words is not an arrow. From
   3.16.1 every part but the svg is in :where(), so the rule weighs 0,0,1:
   a child's own rule on the arrow, written before 3.13.0 (Canine Sense's
   `.wu-ihero .wu-button svg`, 0,2,1), still wins, as it did when the
   parent set no display there (3.13.0 to 3.16.0 weighed 0,4,1). */
:where(.wu-plan) :where(.wu-button:not(.wu-button--icon, .wu-contact__link), .wu-textlink:not(.wu-textlink--icon)) > svg:where(:last-child) {
  display: var(--wu-button-arrow, inline-block);
}

/* The eyebrow's slots (3.17.0): --wu-label-gap and the rule's
   --wu-label-rule-length, -width (its thickness), -radius, --wu-label-rule
   (its colour) and -opacity. sections.css reads them with the values drawn
   before; here, of no weight and with no fallback, they reach a site that
   dequeues sections.css and draws the eyebrow itself, wherever its own
   rules leave these properties unset (unset, each is as if absent; the
   rule's span is empty, so flex none changes no box). Every block
   stylesheet that draws an eyebrow carries this rule. */
:where(.wu-label) {
  gap: var(--wu-label-gap);
}

:where(.wu-label__rule) {
  flex: none;
  width: var(--wu-label-rule-length);
  height: var(--wu-label-rule-width);
  border-radius: var(--wu-label-rule-radius);
  background: var(--wu-label-rule);
  opacity: var(--wu-label-rule-opacity);
}