/* ── Pricing (/pricing/) ───────────────────────────────────────────────────
   Redesigned 2026-09-29: Ashley asked for a facelift and for every price box
   to be a dropdown, "so every price is not right there". Loaded only by
   page-pricing.php; js/pricing.js opens a dropdown a link points at and runs
   each section's "Open all" button.
   The hero is the /it-support/ and /licensing/ hero: light and static, the
   stone-mark watermark, route cards that are real links with the mega menu's
   art. Colour restraint: ink, plum, blush and stone on light tints only. */

.prc { --prc-field: #F6ECF0; --prc-field-2: #F1ECE5; }
.prc :where(h1, h2, h3) { text-wrap: balance; }
.prc :where(p, li span) { text-wrap: pretty; }

/* Hero */
.prc-hero { position: relative; overflow: hidden; color: var(--ink); background: var(--paper); padding: clamp(52px, 7vw, 84px) 0 0; }
.prc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 80% at 86% 14%, rgba(232,208,218,.5), transparent 66%),
    url("../img/hero-mark-ghost.svg") no-repeat right -40px top 36px / auto 86%;
}
.prc-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(40px, 5.5vw, 76px); align-items: center; }
.prc-hero-copy { min-width: 0; }
.prc-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; color: var(--stone-ink); }
.prc-kicker > span:first-child { padding: 5px 11px; border-radius: 999px; background: var(--blush); color: var(--plum); letter-spacing: .08em; }
.prc-hero h1 {
  margin: 0; max-width: 16ch; font-family: "Lora", Georgia, serif; font-weight: 700;
  font-size: clamp(42px, 4.8vw, 62px); line-height: 1.055; letter-spacing: -.025em; color: var(--ink);
}
.prc-lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.62; color: var(--muted); }
.prc-caveat { margin: 14px 0 0; max-width: 60ch; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.prc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.prc-hero-contact { margin: 17px 0 0; font-size: 14.5px; color: var(--muted); }
.prc-hero-contact a { color: var(--plum); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(92,36,65,.3); }
.prc-hero-contact a:hover, .prc-hero-contact a:focus-visible { text-decoration-color: currentColor; }

/* Route cards: one per section, each a link down the page. */
.prc-routes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.prc-routes > li { margin: 0; padding: 0; }
.prc-routes > li::before { content: none; }
.prc-route {
  position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 14px 20px 14px 14px; border: 1px solid var(--border); border-radius: 18px; background: #fff;
  color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(28,32,36,.04);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.prc-route:hover, .prc-route:focus-visible { transform: translateY(-2px); border-color: rgba(92,36,65,.45); box-shadow: 0 16px 34px rgba(92,36,65,.13); color: var(--ink); text-decoration: none; }
.prc-route:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.prc-route-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--prc-field); }
.prc-routes > li:nth-child(2) .prc-route-art { background: var(--prc-field-2); }
.prc-route-art img { display: block; width: 100%; height: 100%; }
.prc-route-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.prc-route-name { font-family: "Lora", Georgia, serif; font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.prc-route-desc { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.prc-route-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; align-self: stretch; margin-top: 8px; }
.prc-route-count { font-size: 12.5px; font-weight: 600; color: var(--stone-ink); }
.prc-route-go { font-size: 14px; font-weight: 700; color: var(--plum); white-space: nowrap; }
.prc-route-go span { display: inline-block; margin-left: 2px; transition: transform .2s ease; }
.prc-route:hover .prc-route-go span, .prc-route:focus-visible .prc-route-go span { transform: translateX(3px); }

/* Four facts along the foot of the hero. */
.prc-facts {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(46px, 6vw, 68px) 0 0; padding: 0;
  list-style: none; border-top: 1px solid rgba(111,99,85,.24);
}
.prc-facts li { margin: 0; padding: 22px 20px 26px; border-left: 1px solid rgba(111,99,85,.2); }
.prc-facts li:first-child { border-left: 0; padding-left: 0; }
.prc-facts li::before { content: none; }
.prc-facts strong { display: block; font-family: "Lora", Georgia, serif; font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; color: var(--ink); line-height: 1.18; }
.prc-facts span { display: block; max-width: 25ch; margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Sections: the heading sits in a sticky column on the left, the dropdowns
   run down the right. */
.prc-sec { padding: clamp(56px, 7vw, 88px) 0; background: #fff; scroll-margin-top: 110px; }
.prc-sec:nth-of-type(odd) { background: #FBF9F6; }
.prc-sec + .prc-sec { border-top: 1px solid var(--border); }
.prc-sec-inner { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prc-sec-head { position: sticky; top: 150px; }
.prc-sec-num { margin: 0 0 6px; font-family: "Lora", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--stone-ink); }
.prc-sec-head h2 { margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.prc-sec-line { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.prc-toggle-all {
  margin-top: 20px; padding: 8px 15px; border: 1px solid rgba(92,36,65,.28); border-radius: 999px;
  background: rgba(92,36,65,.07); color: var(--plum); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.prc-toggle-all:hover { background: rgba(92,36,65,.12); border-color: rgba(92,36,65,.45); }
.prc-toggle-all:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

/* The dropdowns. Closed: art, name, one line, a count and a plus. No figures. */
.prc-list { display: grid; gap: 12px; min-width: 0; }
.prc-item {
  border: 1px solid var(--border); border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(28,32,36,.04); scroll-margin-top: 120px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prc-item:hover { border-color: rgba(92,36,65,.32); }
.prc-item[open] { border-color: rgba(92,36,65,.35); box-shadow: 0 18px 40px rgba(92,36,65,.1); }
.prc-sum {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 40px; gap: 18px; align-items: center;
  padding: 12px 18px 12px 12px; list-style: none; cursor: pointer; border-radius: 18px;
}
.prc-sum::-webkit-details-marker { display: none; }
.prc-sum::marker { content: ""; }
.prc-sum:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.prc-sum-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 11px; background: var(--prc-field); }
.prc-item:nth-child(even) .prc-sum-art { background: var(--prc-field-2); }
.prc-sum-art img { display: block; width: 100%; height: 100%; }
.prc-sum-art img.is-photo { object-fit: cover; }
.prc-sum-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prc-sum-name { font-family: "Lora", Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.prc-sum-sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.prc-sum-meta { font-size: 12.5px; font-weight: 600; color: var(--stone-ink); white-space: nowrap; }
.prc-sum-icon {
  position: relative; width: 36px; height: 36px; border-radius: 50%; justify-self: end;
  background: rgba(92,36,65,.07); transition: background .2s ease, transform .25s ease;
}
.prc-sum-icon::before, .prc-sum-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px;
  border-radius: 2px; background: var(--plum); transition: transform .25s ease;
}
.prc-sum-icon::after { transform: rotate(90deg); }
.prc-sum:hover .prc-sum-icon { background: rgba(92,36,65,.13); }
.prc-item[open] .prc-sum-icon { background: var(--plum); }
.prc-item[open] .prc-sum-icon::before, .prc-item[open] .prc-sum-icon::after { background: #fff; }
.prc-item[open] .prc-sum-icon::after { transform: rotate(0deg); }

/* Open: the registry rows, then the way into the service page. The height
   eases where the browser supports it (::details-content), and simply
   appears elsewhere. */
@supports selector(::details-content) {
  .prc { interpolate-size: allow-keywords; }
  .prc-item::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
  .prc-item[open]::details-content { height: auto; }
}
.prc-body { padding: 4px 24px 22px 134px; }
.prc-note { margin: 4px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.prc-part { margin: 20px 0 2px; font-family: "Work Sans", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-ink); }
.prc-rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--blush); }
.prc-part + .prc-rows { border-top-width: 1px; border-top-color: var(--border); }
.prc-rows > li { margin: 0; padding: 0; }
.prc-rows > li::before { content: none; }
.prc-rows > li + li { border-top: 1px solid var(--border); }
.prc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 -10px; padding: 12px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; transition: background .15s ease;
}
.prc-row:hover, .prc-row:focus-visible { background: var(--paper); color: var(--ink); text-decoration: none; }
.prc-row:focus-visible { outline: 2px solid var(--plum); outline-offset: 0; }
.prc-row-text { display: block; min-width: 0; }
.prc-row-label { display: block; font-size: 15.5px; font-weight: 600; }
.prc-row-note { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.prc-row-amount { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; }
.prc-row-figure { font-family: "Lora", Georgia, serif; font-size: 23px; font-weight: 700; line-height: 1.1; color: var(--plum); white-space: nowrap; }
/* "from" at body size, so the figure stays the thing you read. */
.prc-row-pre { margin-right: 5px; font-family: "Work Sans", Arial, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.prc-row-qual { max-width: 16ch; margin-top: 3px; font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: .02em; color: var(--muted); }
.prc-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prc-foot .btn-primary, .prc-foot .btn-outline { padding: 11px 20px; font-size: 14px; }

/* Paying us: the payment terms beside four short assurances. */
.prc-pay-sec { padding: clamp(56px, 7vw, 88px) 0; background: #fff; border-top: 1px solid var(--border); }
.prc-pay-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.prc-pay { padding: 28px 30px; border-radius: 18px; background: var(--prc-field); }
.prc-pay h2 { margin: 0 0 12px; font-family: "Lora", Georgia, serif; font-size: 26px; color: var(--ink); }
.prc-pay p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); }
.prc-pay a, .prc-assure a { color: var(--plum); }
.prc-assure { margin: 0; padding: 0; list-style: none; }
.prc-assure li { margin: 0; padding: 16px 0; border-top: 1px solid var(--border); }
.prc-assure li:first-child { border-top: 0; padding-top: 4px; }
.prc-assure li::before { content: none; }
.prc-assure strong { display: block; font-family: "Lora", Georgia, serif; font-size: 18px; color: var(--ink); }
.prc-assure span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .prc-route, .prc-route-go span, .prc-sum-icon, .prc-sum-icon::before, .prc-sum-icon::after { transition: none; }
  .prc-route:hover, .prc-route:focus-visible, .prc-route:hover .prc-route-go span, .prc-route:focus-visible .prc-route-go span { transform: none; }
  @supports selector(::details-content) { .prc-item::details-content { transition: none; } }
}

/* Below 1100px the routes run three across under the copy, art on top. */
@media (max-width: 1100px) {
  .prc-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .prc-hero::before {
    background:
      radial-gradient(ellipse 60% 50% at 90% 8%, rgba(232,208,218,.5), transparent 66%),
      url("../img/hero-mark-ghost.svg") no-repeat right -80px top 20px / auto 52%;
  }
  .prc-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prc-route { grid-template-columns: 1fr; gap: 12px; padding: 12px 12px 16px; align-content: start; height: 100%; }
  .prc-route-body { padding: 0 6px; }
}
@media (max-width: 960px) {
  .prc-sec-inner { grid-template-columns: 1fr; gap: 26px; }
  .prc-sec-head { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; }
  .prc-sec-num, .prc-sec-head h2, .prc-sec-line { grid-column: 1; }
  .prc-toggle-all { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
  .prc-pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .prc-facts { grid-template-columns: 1fr 1fr; }
  .prc-facts li { padding: 18px 14px 20px 0; border-left: 0; }
  .prc-facts li:nth-child(n+3) { border-top: 1px solid rgba(111,99,85,.2); }
  .prc-facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(111,99,85,.2); }
}
@media (max-width: 700px) {
  .prc-routes { grid-template-columns: 1fr; }
  .prc-route { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 12px 16px 12px 12px; }
  .prc-route-body { padding: 0; }
  .prc-sum { grid-template-columns: 76px minmax(0, 1fr) 34px; gap: 14px; padding: 10px 14px 10px 10px; }
  .prc-sum-meta { display: none; }
  .prc-sum-name { font-size: 18px; }
  .prc-sum-sub { font-size: 13.5px; }
  .prc-sum-icon { width: 32px; height: 32px; }
  .prc-body { padding: 2px 16px 18px; }
  .prc-pay { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .prc-hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .prc-sum-art { display: none; }
  .prc-sum { grid-template-columns: minmax(0, 1fr) 32px; padding: 14px 14px 14px 18px; }
  .prc-body { padding: 0 18px 18px; }
  .prc-row { gap: 12px; }
  .prc-row-figure { font-size: 20px; }
  .prc-foot .btn-primary, .prc-foot .btn-outline { flex: 1 1 auto; text-align: center; }
  .prc-sec-head { grid-template-columns: 1fr; }
  .prc-toggle-all { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 16px; }
}

@media print {
  .prc-item::details-content { height: auto; content-visibility: visible; }
  .prc-sec-head { position: static; }
}
