/* ==========================================================================
   The public price list — minimalist, gradient-accented.

   Built on theme.css's tokens plus one thing of its own: the Komunidad brand
   gradient, the same four stops the checkout dialog takes from
   k_logo_color.svg. It appears exactly where the eye should land — the
   headline, the selected billing period, the popular card's edge and button,
   and the End-to-End panel — and nowhere else. Everything around those
   moments is hairlines and whitespace: boxes were removed, not decorated.

   Three column layout that collapses to one, and every wide thing — the
   tables especially — scrolls inside its own box so the page body never
   scrolls sideways.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.pr {
  /* The brand gradient, from k_logo_color.svg — the same stops as the
     payment dialog, so the page that quotes the price and the dialog that
     takes it wear one identity. */
  --g1: #1f3556;
  --g2: #21495f;
  --g3: #1f7079;
  --g4: #2ba093;
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 38%,
                          var(--g3) 70%, var(--g4) 100%);
  --grad-h: linear-gradient(90deg, var(--g1) 0%, var(--g3) 55%, var(--g4) 100%);
  --grad-wash: linear-gradient(135deg,
                 color-mix(in srgb, var(--g2) 6%, transparent) 0%,
                 color-mix(in srgb, var(--g4) 9%, transparent) 100%);

  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) 0 88px;
}

/* --- Head ---------------------------------------------------------------- */

.pr__head {
  position: relative;
  text-align: center;
}

/* A soft glow behind the headline. Decorative, inert, and behind everything. */
.pr__head::before {
  content: "";
  position: absolute;
  inset: -80px -10% auto;
  height: 340px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 100% at 30% 0%,
      color-mix(in srgb, var(--g4) 10%, transparent) 0%, transparent 70%),
    radial-gradient(46% 100% at 72% 8%,
      color-mix(in srgb, var(--g2) 8%, transparent) 0%, transparent 70%);
}

.pr__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border: 1px solid color-mix(in srgb, var(--g4) 32%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--g4) 7%, transparent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--g3);
}

.pr__h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .pr__h1 {
    background: var(--grad-h);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.pr__lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.pr__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-bottom: 44px;
}

/* The billing toggle. A radio group wearing a segmented control: the input is
   hidden from sight but not from the accessibility tree or the keyboard, and
   the checked option wears the gradient. */
.pr__toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 60, 66, .04);
}

.pr__opt { display: inline-flex; cursor: pointer; }
.pr__opt input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.pr__opt span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.pr__opt i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--g3);
}
.pr__opt input:checked + span {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--g3) 70%, transparent);
}
.pr__opt input:checked + span i { color: rgba(255, 255, 255, .85); }
.pr__opt input:focus-visible + span { box-shadow: var(--ring); }

.pr__sites {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.pr__sites input {
  width: 92px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  text-align: center;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pr__sites input:hover { border-color: color-mix(in srgb, var(--g4) 45%, var(--rule-strong)); }
.pr__sites input:focus-visible { outline: none; border-color: var(--g3); box-shadow: var(--ring); }

.pr__siteshint {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- Plan cards ---------------------------------------------------------- */

.pr__tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.prc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.prc:hover {
  border-color: color-mix(in srgb, var(--g4) 38%, var(--rule));
  box-shadow: 0 18px 44px -28px rgba(20, 60, 66, .28);
  transform: translateY(-2px);
}

/* The one card that is meant to be picked wears the gradient as its edge —
   a transparent border filled from the border-box, so the frame itself is
   the brand rather than a second colour laid beside it. */
.prc--pop {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 20px 50px -30px color-mix(in srgb, var(--g3) 55%, transparent);
}
.prc--pop:hover {
  border-color: transparent;
  box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--g3) 65%, transparent);
}

.prc__tag {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--g3) 70%, transparent);
}

.prc__name { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.prc__who { margin: 3px 0 20px; font-size: 13px; color: var(--ink-3); }

.prc__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  font-size: 44px;
  font-weight: 550;
  letter-spacing: -.035em;
  /* Tabular figures, so 19 -> 15.83 does not shuffle the layout under the
     billing toggle. */
  font-variant-numeric: tabular-nums;
}
.prc__cur { font-size: 22px; color: var(--ink-3); font-weight: 500; }
.prc__price small {
  margin-left: 7px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}

.prc__total {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--g3);
  font-variant-numeric: tabular-nums;
}
.prc__total:empty { margin: 0; }

.prc__feats {
  flex: 1;
  margin: 22px 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.prc__feats li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14px;
  color: var(--ink-2);
}
.prc__feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--g4);
  border-bottom: 2px solid var(--g4);
  transform: rotate(-45deg);
}

.prc__cta {
  display: block;
  padding: 13px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease,
              transform .12s ease, filter .15s ease;
}
.prc__cta:hover {
  border-color: var(--g3);
  color: var(--g3);
}
.prc__cta--pop {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--g3) 80%, transparent);
}
.prc__cta--pop:hover {
  border-color: transparent;
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--g3) 85%, transparent);
}
.prc__cta[disabled], .prc__cta[aria-disabled="true"] {
  opacity: .6;
  cursor: progress;
  transform: none;
}

.pr__trialnote {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* --- Section rhythm --------------------------------------------------------
   The comparison and the assistant are open sections, not boxed cards: a
   centred heading, a hairline-framed table, air on both sides. The one boxed
   thing left on the page is the End-to-End panel, which earns it by being the
   page's gradient moment. */

.pr__compare, .pr__assistant { margin-top: 88px; }

.pr__compare h2, .pr__assistant h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
}
.pr__sub {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.pr__sub b { color: var(--ink); font-weight: 500; }

/* --- Tables ---------------------------------------------------------------- */

.pr__scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}

.pr__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.pr__table th, .pr__table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.pr__table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
.pr__table tbody th { font-weight: 500; color: var(--ink); }
.pr__table tbody td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr__table tbody tr:last-child th,
.pr__table tbody tr:last-child td { border-bottom: 0; }

.pr__foot {
  max-width: 680px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- Comparison ----------------------------------------------------------
   The three cards answer "what do I get". Only this answers "what do I lose
   by going down a tier", which is the question somebody comparing prices is
   actually asking. */

.pr__table--cmp { min-width: 640px; }
.pr__table--cmp th[scope="row"] { width: 38%; font-weight: 400; }
.pr__table--cmp thead th { text-align: center; }
.pr__table--cmp .pr__ccol { border-left: 1px solid var(--rule); }
.pr__table--cmp th, .pr__table--cmp td { vertical-align: middle; }

.pr__clbl { display: block; color: var(--ink); font-weight: 500; }
.pr__cnote {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 52ch;
}

/* Centered over the column. Named with the table's own class because
   `.pr__table td` sets text-align: left at higher specificity. */
.pr__table--cmp .pr__ccol { text-align: center; }
.pr__ccol { text-align: center; font-size: 13.5px; }

/* The popular column, washed with the gradient the whole way down rather than
   outlined: a border on every cell of one column draws a ladder. */
.pr__ccol--pop { color: var(--g3); }
.pr__table--cmp thead th:nth-child(3),
.pr__table--cmp tbody td:nth-child(3) { background: var(--grad-wash); }

.pr__yes { color: var(--g4); font-weight: 700; }
.pr__no { color: var(--ink-faint); }

/* --- End-to-End panel -------------------------------------------------------
   The page's one gradient surface. Everything above it points at self-service;
   this is the door for everyone the three cards do not fit, and it is dressed
   to be unmissable without shouting: the brand gradient, white ink, and the
   enquiry form sitting directly on it. */

.pr__strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
  gap: 36px;
  margin-top: 88px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 28px 64px -36px color-mix(in srgb, var(--g2) 75%, transparent);
}
/* A quiet highlight in the corner, so the panel reads as lit rather than flat. */
.pr__strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 90% at 85% -10%,
    rgba(255, 255, 255, .14) 0%, transparent 60%);
}
.pr__strip > * { position: relative; }

.pr__stript h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; color: #fff; }
.pr__stript p { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .78); }

.pr__form { display: grid; gap: 12px; }
.pr__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pr__field { display: grid; gap: 5px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.pr__field input, .pr__field textarea {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  font: inherit;
  font-size: 14px;
  color: #fff;
  resize: vertical;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pr__field input::placeholder, .pr__field textarea::placeholder {
  color: rgba(255, 255, 255, .45);
}
.pr__field input:hover, .pr__field textarea:hover {
  border-color: rgba(255, 255, 255, .4);
}
.pr__field input:focus-visible, .pr__field textarea:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

/* The honeypot. Off-canvas rather than display:none — some bots skip fields
   that are display:none, and this one is meant to be filled in. */
.pr__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pr__acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* On the gradient the primary button inverts: white on brand, because a
   gradient button on a gradient panel disappears. */
.pr__acts .prc__cta {
  flex: none;
  padding: 12px 26px;
  border-color: transparent;
  background: #fff;
  color: var(--g2);
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .45);
}
.pr__acts .prc__cta:hover {
  color: var(--g1);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5);
}
.pr__note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.pr__note a { color: #fff; }
.pr__note[data-state="ok"] { color: #a9ecd8; }
.pr__note[data-state="bad"] { color: #ffc4be; }

/* --- Legal ------------------------------------------------------------------ */

.pr__legal {
  margin: 48px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* --- Narrow -------------------------------------------------------------- */

@media (max-width: 760px) {
  .pr__compare, .pr__assistant, .pr__strip { margin-top: 56px; }
  .pr__strip { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .pr__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pr__opt span, .prc, .prc__cta { transition: none; }
  .prc:hover, .prc__cta--pop:hover, .pr__acts .prc__cta:hover { transform: none; }
}
