/* The pricing page (src/pages/pricing.html, src/partials/pricing.html from scripts/pricing-partial.mjs,
   assets/js/pricing.js). Care after launch has its own sheet (assets/css/pricing-care.css, loaded after this one).

   One reading path, on one centre line: what things cost (the scope switch, then four product cards: Website,
   Web app, Desktop app with a Mac / Windows switch, AI assistant, and one quiet line on VAT), care after launch,
   questions, and the way to start. Every section head is centred; every grid spans the panel's content width.

   Colours, type sizes, radii and shadows come from the tokens and components in site.css (.section, .panel,
   .section-title, .section-lead, .button, .faq__*). The grids follow the width the panel gives them (container
   queries on .pricing-panel), not the window.

   Two switches, both native radios and pure CSS (:has), with or without JavaScript:
   - the scope (#pricing-scope-front, #pricing-scope-full) shows the [data-for] blocks of the checked scope;
   - the platform on the desktop card (#pricing-platform-mac, #pricing-platform-windows) shows the
     [data-platform] block of the checked platform and turns its picture into a Mac or a Windows window.

   The product cards. Each card is a picture (.pricing-product__visual, a scene from
   scripts/pricing-visuals-products.mjs), its name and one line, "From" and the price, and a button. The cards of
   a row share their row lines (subgrid), so pictures, names, prices and buttons line up across the row in both
   scopes and both platforms; the platform switch floats over the top of the desktop card's picture, so it takes
   no row of its own. The price is the hero of the card: large, tight, tabular figures.

   Each picture has its own look and its own accent from the brand layers, and the website, web app and AI
   pictures carry short demo words in the page's language:
   - Website (--layer-ui): a boutique hotel's site (Kalma) in a browser (tab, padlock address): its menu, a hero
     with a headline, buttons, a rating and a sea photo, scrolling down to its features and footer, and the same
     site on a phone in front;
   - Web app (--layer-api): an online shop's admin (Luma): sidebar, search, team avatars, today's figures, an
     orders table whose pending order turns paid, a teammate's named cursor and a toast for a new order;
   - Desktop app (--layer-data): drawn by scripts/pricing-visuals-desktop.mjs and styled in its own sheet,
     assets/css/pricing-desktop.css (it reuses .pps, .pps__box and .pps__layer from here);
   - AI assistant (--glacier on the night): a chat in the page's language whose answer streams in word by word,
     then a confirmation card.

   Motion, in four layers (variables from site.js on the grid, and from pricing.js on each card):
   - The deal: as the grid comes up the screen, each card's surface and picture rise into place, one card after
     the other (--enter, staggered with :nth-child), and the picture's layers gather from depth. The words never
     move with the scroll: they hold their place, so the space's veil under them (field.js) always fits.
   - Depth: inside each picture the layers (.pps__layer, --z) drift by their depth while the page scrolls
     (--center) and shift toward the pointer (--px, --py).
   - Lean: under a mouse or pen the card tilts toward the pointer with a soft light following it (--px, --py,
     --gx, --gy, .is-pointed), and lifts a little on hover.
   - Life: while the grid is in view and motion is allowed (.is-live), every scene plays short loops.
   Every plain style is the FINISHED, still state: without JavaScript, with reduced motion, or out of view, the
   cards rest in place and every picture shows complete. Only transform, opacity, clip-path and
   stroke-dashoffset animate. */

/* ------------------------------------------------------------ scope blocks */

.pricing:has(#pricing-scope-front:checked) [data-for='full'],
.pricing:has(#pricing-scope-full:checked) [data-for='front'] { display: none; }

.pricing-product--desktop:has(#pricing-platform-mac:checked) [data-platform='windows'],
.pricing-product--desktop:has(#pricing-platform-windows:checked) [data-platform='mac'] { display: none; }

/* ---------------------------------------------------------------- shared */

.pricing-intro { padding-top: calc(var(--header-h) + var(--section-y)); }
.pricing-panel { container: pricing-panel / inline-size; }

/* A centred section head: the title and one line under it. */
.pricing-head { display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(36px, 5vw, 64px); text-align: center; }
.pricing-head .section-lead { margin-inline: auto; }

.pricing [data-amount] { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* On a phone the large title takes the standard title size, so long words (German, Greek) stay whole. */
@media (max-width: 599px) {
  .pricing .section-title--xl { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
}

/* ------------------------------------------------------------------ hero */

.pricing-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing-hero .section-lead { margin-inline: auto; }

.pricing-scope {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: fit-content; max-width: 100%; margin-top: clamp(28px, 4vw, 40px); padding: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-s);
}
/* The selected segment: a pill that slides under the chosen label. */
.pricing-scope::before {
  content: ''; grid-area: 1 / 1; border-radius: 999px;
  background: var(--text); box-shadow: var(--shadow-s);
  transition: transform 420ms var(--ease);
}
.pricing-scope:has(#pricing-scope-full:checked)::before { transform: translateX(100%); }
.pricing-scope__option {
  position: relative; z-index: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 6px 22px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.006em; text-align: center; color: var(--text-2);
  cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: color var(--fast) var(--ease);
}
.pricing-scope__option--front { grid-column: 1; }
.pricing-scope__option--full { grid-column: 2; }
.pricing-scope__option:hover { color: var(--text); }
.pricing-scope__input:checked + .pricing-scope__option { color: var(--bg); cursor: default; }
.pricing-scope__input:focus-visible + .pricing-scope__option { outline: 2px solid var(--ring); outline-offset: 3px; }
@media (max-width: 479px) {
  .pricing-scope { width: 100%; }
  .pricing-scope__option { padding-inline: 12px; font-size: 0.875rem; }
}
@media (forced-colors: active) {
  .pricing-scope::before { background: Highlight; forced-color-adjust: none; }
  .pricing-scope__input:checked + .pricing-scope__option { color: HighlightText; forced-color-adjust: none; }
}

/* What the chosen scope means, in one line. Both lines hold the same place, so switching never moves the cards. */
.pricing-scope__notes { display: grid; max-width: 56ch; margin-top: 16px; }
.pricing-scope__note { grid-area: 1 / 1; font-size: 0.9688rem; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.pricing:has(#pricing-scope-front:checked) .pricing-scope__note[data-for='full'],
.pricing:has(#pricing-scope-full:checked) .pricing-scope__note[data-for='front'] { display: block; visibility: hidden; }

/* ------------------------------------------------------- product cards */

/* One column on a narrow panel, two by two at medium width, four across once there is room. */
.pricing-grid--products {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap);
  margin-top: clamp(44px, 6vw, 72px);
}
@container pricing-panel (min-width: 560px) { .pricing-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container pricing-panel (min-width: 1040px) { .pricing-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* One column: a card as wide as the panel (about 280 to 560px). */
@container pricing-panel (max-width: 559.98px) {
  .pricing-grid--products .pricing-product { --pp-pad: clamp(14px, 5cqi, 22px); --pp-price: clamp(2.125rem, 11cqi, 3rem); }
}
/* Two by two: cards of about 270 to 500px. */
@container pricing-panel (min-width: 560px) and (max-width: 1039.98px) {
  .pricing-grid--products .pricing-product { --pp-pad: 18px; --pp-price: clamp(2.25rem, 4.6cqi, 2.875rem); }
}
/* Four across: cards of about 240 to 320px. */
@container pricing-panel (min-width: 1040px) {
  .pricing-grid--products .pricing-product { --pp-pad: 16px; --pp-price: clamp(2.125rem, 2.6cqi, 2.625rem); }
}

.pricing-grid--products .pricing-product {
  /* The deal: 0 while the grid's top is low on the screen, 1 once this card has risen into place. Each card
     starts a little after the one before it (--i); --glide eases the way (fast at first, settling softly). */
  --i: 0;
  --deal: clamp(0, calc((var(--enter, 1) - 0.03 - var(--i) * 0.045) / 0.26), 1);
  --undealt: calc(1 - var(--deal));
  --glide: calc(var(--undealt) * var(--undealt));
  /* --pp-pad (the side margin of the words) and --pp-price (the size of the price) come by layout from the
     container queries above. The card itself is no size container: containment would end its subgrid. */
  position: relative; isolation: isolate;
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  min-width: 0;
  padding: 7px 7px clamp(18px, 2vw, 22px);
  border-radius: var(--r-l);
  translate: 0 0;
  transition: translate 420ms var(--ease);
}
.pricing-grid--products .pricing-product:nth-child(2) { --i: 1; }
.pricing-grid--products .pricing-product:nth-child(3) { --i: 2; }
.pricing-grid--products .pricing-product:nth-child(4) { --i: 3; }
.pricing-product--site { --pp-accent: var(--layer-ui); --pp-accent-deep: var(--layer-api); }
.pricing-product--webapp { --pp-accent: var(--layer-api); --pp-accent-deep: var(--layer-data); }
.pricing-product--desktop { --pp-accent: var(--layer-data); --pp-accent-deep: var(--deep); }
.pricing-product--ai { --pp-accent: var(--glacier); --pp-accent-deep: var(--logo-blue); }

/* The card's surface: the site's card, dealt in from below with a slight turn. */
.pricing-grid--products .pricing-product::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  border: 1px solid var(--card-border); border-radius: inherit;
  background: var(--card-bg); box-shadow: var(--card-shadow);
  transform-origin: 50% 100%;
  transform: perspective(900px) translateY(calc(var(--glide) * 56px)) rotateX(calc(var(--glide) * 12deg)) scale(calc(1 - var(--glide) * 0.04));
  opacity: var(--deal);
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
/* The light under the pointer, on the surface (under the words). */
.pricing-grid--products .pricing-product::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(440px circle at var(--gx, 50%) var(--gy, 0%), var(--pp-glare), transparent 62%);
  opacity: 0;
  transition: opacity 380ms var(--ease);
}
.pricing-grid--products .pricing-product.is-pointed::after { opacity: 1; }

/* The lean toward the pointer (only while live: pricing.js sets --px and --py under a mouse or pen). */
.pricing-grid--products.is-live .pricing-product {
  transform: perspective(1100px) rotateX(calc(var(--py, 0) * -3deg)) rotateY(calc(var(--px, 0) * 4deg));
}
.pricing-grid--products .pricing-product.is-pointed { will-change: transform; }
@media (hover: hover) {
  .pricing-grid--products .pricing-product:hover { translate: 0 -4px; }
  .pricing-grid--products .pricing-product:hover::before {
    border-color: color-mix(in srgb, var(--pp-accent) 60%, var(--card-border));
    box-shadow: var(--card-shadow), 0 34px 64px -34px color-mix(in srgb, var(--pp-accent) 70%, transparent);
  }
  .pricing-grid--products .pricing-product:hover .pricing-product__action { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
  .pricing-grid--products .pricing-product:hover .pricing-product__action:hover { background: var(--btn-hover); }
  .pricing-grid--products .pricing-product:hover .pricing-product__action:active { background: var(--btn-press); }
}
@media (max-width: 599px) {
  .pricing-grid--products .pricing-product { border-radius: var(--r-m); }
}

/* Row 1: the picture, 4:3 and at most 273px tall. It is a size container: the scene's em is a 28th of its
   width (at most 13px), so the scene scales as one and always fits its 21em height. */
.pricing-product__visual {
  grid-area: 1 / 1; justify-self: stretch; align-self: start;
  container-type: inline-size;
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; aspect-ratio: 4 / 3; max-height: 273px; line-height: 1;
  border-radius: calc(var(--r-l) - 7px);
  background: var(--pps-stage);
  pointer-events: none; -webkit-user-select: none; user-select: none;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--glide) * 34px)) scale(calc(1 - var(--glide) * 0.05));
  opacity: var(--deal);
}
@media (max-width: 599px) {
  .pricing-product__visual { border-radius: calc(var(--r-m) - 7px); }
}
/* A hairline rim over the scene, and the pointer's light on its glass. */
.pricing-product__visual::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--pps-rim);
}
.pricing-product__visual::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  background: radial-gradient(70% 90% at var(--gx, 50%) var(--gy, 0%), var(--pps-sheen), transparent 70%);
  opacity: 0;
  transition: opacity 380ms var(--ease);
}
.pricing-product.is-pointed .pricing-product__visual::after { opacity: 1; }

/* Row 2: the name and one line. */
.pricing-grid--products .pricing-card__head { grid-area: 2 / 1; min-width: 0; margin: 20px var(--pp-pad, 16px) 0; }
.pricing-grid--products .pricing-card__name {
  font-size: 1.1875rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--text); text-wrap: balance;
}
/* A small mark in the card's accent, the shape of its picture's world. */
.pricing-grid--products .pricing-card__name::before {
  content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.45em;
  border-radius: 0.14em; background: var(--pp-accent); vertical-align: 0.08em;
}
.pricing-product--ai .pricing-card__name::before { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 10%, var(--glacier) 40%, var(--logo-blue)); }
.pricing-grid--products .pricing-card__line { max-width: 40ch; margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* Row 3: "From" and the price, the hero of the card. */
.pricing-grid--products .pricing-price {
  grid-area: 3 / 1; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  margin: 22px var(--pp-pad, 16px) 0; padding-top: 16px; border-top: 1px solid var(--line);
}
.pricing-grid--products .pricing-price__from { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; color: var(--text-2); }
.pricing-grid--products .pricing-price__amount {
  font-size: var(--pp-price, 2.25rem);
  font-weight: 680; line-height: 1; letter-spacing: -0.04em; color: var(--text);
}

/* Row 4: the button, across the card. */
.pricing-product__action { grid-area: 4 / 1; align-self: end; margin: 20px var(--pp-pad, 16px) 0; }

/* The blocks of a scope and of a platform give their price and button to the card's rows. */
.pricing-product__scope, .pricing-product__platform { display: contents; }

/* Without subgrid each card is a column, its button at the foot. */
@supports not (grid-template-rows: subgrid) {
  .pricing-grid--products .pricing-product { display: flex; flex-direction: column; grid-row: auto; }
  .pricing-product__action { margin-top: auto; }
  .pricing-grid--products .pricing-price { margin-bottom: 20px; }
}

/* The newly shown price settles in (scope or platform switched), so the change reads at a glance. */
@media (prefers-reduced-motion: no-preference) {
  .pricing-grid--products .pricing-price__from,
  .pricing-product__action { animation: pricing-swap 380ms var(--ease) backwards; }
  .pricing-grid--products .pricing-price__amount { animation: pricing-settle 560ms var(--ease) 40ms backwards; }
}
@keyframes pricing-swap { from { opacity: 0; transform: translateY(4px); } }
@keyframes pricing-settle { from { opacity: 0; transform: translateY(0.3em) scale(0.97); } }

/* --------------------------------------------------- the platform switch */
/* Over the top of the desktop card's picture: two segments with a pill that slides under the chosen one.
   Each label is a full 44px target; the visible track sits inside it. */

.pricing-platform {
  position: absolute; z-index: 3; top: 14px; left: 50%; translate: -50% 0;
  isolation: isolate;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: max-content; max-width: calc(100% - 32px);
  /* It arrives with its card's picture: the same deal (opacity from --deal, the picture's rise from --glide),
     so it never shows before the picture does. No scale, so its labels stay 44px tall at every step of the
     deal. Finished (no --enter): in place and fully shown. */
  transform: translateY(calc(var(--glide, 0) * 34px));
  opacity: var(--deal, 1);
}
/* Reached by the keyboard before the card is dealt in: shown at once, so the focus ring is never hidden. */
.pricing-platform:focus-within { transform: none; opacity: 1; }
.pricing-platform::after {
  content: ''; position: absolute; inset: 6px 0; z-index: -1; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass-bg-solid);
  box-shadow: var(--shadow-m);
}
.pricing-platform::before {
  content: ''; position: absolute; z-index: 0; top: 9px; bottom: 9px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--text); box-shadow: var(--shadow-s);
  transition: transform 460ms var(--ease);
}
.pricing-platform:has(#pricing-platform-windows:checked)::before { transform: translateX(100%); }
.pricing-platform__option {
  position: relative; z-index: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.006em; white-space: nowrap; color: var(--text-2);
  cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: color var(--fast) var(--ease);
}
.pricing-platform__option--mac { grid-column: 1; }
.pricing-platform__option--windows { grid-column: 2; }
.pricing-platform__option:hover { color: var(--text); }
.pricing-platform__input:checked + .pricing-platform__option { color: var(--bg); cursor: default; }
.pricing-platform__input:focus-visible + .pricing-platform__option { outline: 2px solid var(--ring); outline-offset: 0; }
@media (forced-colors: active) {
  .pricing-platform::after { border-color: CanvasText; background: Canvas; }
  .pricing-platform::before { background: Highlight; forced-color-adjust: none; }
  .pricing-platform__input:checked + .pricing-platform__option { color: HighlightText; forced-color-adjust: none; }
}

/* ------------------------------------------------------------ the scenes */
/* The scenes' own surfaces, like the product windows in What we build: opaque, in both themes. */

.pricing-grid--products {
  --pp-glare: rgb(255 255 255 / 0.6);
  --pps-stage: #eef4f8;
  --pps-rim: rgb(40 44 51 / 0.08);
  --pps-sheen: rgb(255 255 255 / 0.32);
  --pps-win: #ffffff;
  --pps-bar: #f1f5f8;
  --pps-tabs: #e3eaef;
  --pps-ink: #282c33;
  --pps-ink-2: #52616e;
  --pps-accent-ink: #245d76;
  --pps-btn: #245d76;
  --pps-btn-ink: #ffffff;
  --pps-skel: #dbe3e9;
  --pps-row: #eef3f6;
  --pps-line: rgb(40 44 51 / 0.08);
  --pps-border: rgb(40 44 51 / 0.12);
  --pps-shadow: 0 0.15em 0.4em rgb(24 27 32 / 0.06), 0 1.6em 2.6em -1.2em rgb(24 27 32 / 0.34);
  --pps-dot: rgb(36 93 118 / 0.13);
  --pps-grid: rgb(36 93 118 / 0.07);
  --pps-sky-1: #bfe2f3;
  --pps-sky-2: #f3fafd;
  --pps-bezel: #08090b;
  --pps-metal-1: #e6e3dc;
  --pps-metal-2: #b4b0a7;
  --pps-metal-3: #77746d;
  --pps-rail: #24303a;
  --pps-trend: var(--layer-data);
  --pps-ok: #2f8a5b;
  --pps-ok-ink: #1f6b44;
  --pps-ok-bg: #dcf0e4;
  --pps-wait: #7a5510;
  --pps-wait-bg: #f7ecce;
  --pps-info: #245d76;
  --pps-info-bg: #e1eef5;
  --pps-peer: #e07a52;
  --pps-peer-ink: #181b20;
  --pps-sun: #f2c14e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pricing-grid--products {
    --pp-glare: rgb(167 216 239 / 0.1); --pps-stage: #1b1f25; --pps-rim: rgb(241 245 249 / 0.08); --pps-sheen: rgb(167 216 239 / 0.1);
    --pps-win: #23272e; --pps-bar: #2b3038; --pps-tabs: #1d2127; --pps-ink: #eef2f5; --pps-ink-2: #a9b4bf; --pps-skel: #3b424b; --pps-row: #2b3038;
    --pps-accent-ink: #7fbfdd; --pps-btn: #a7d8ef; --pps-btn-ink: #10161c;
    --pps-line: rgb(241 245 249 / 0.08); --pps-border: rgb(241 245 249 / 0.14);
    --pps-shadow: 0 0.15em 0.4em rgb(0 0 0 / 0.3), 0 1.6em 2.6em -1.2em rgb(0 0 0 / 0.75);
    --pps-dot: rgb(167 216 239 / 0.1); --pps-grid: rgb(167 216 239 / 0.06); --pps-sky-1: #1f4558; --pps-sky-2: #2f5f75;
    --pps-bezel: #08090b; --pps-metal-1: #9a9ea5; --pps-metal-2: #5d6168; --pps-metal-3: #2c2f34;
    --pps-rail: #14181d; --pps-trend: var(--glacier);
    --pps-ok: #7fd1a2; --pps-ok-ink: #7fd1a2; --pps-ok-bg: #324241; --pps-wait: #e3c16f; --pps-wait-bg: #424038;
    --pps-info: #a7d8ef; --pps-info-bg: #38434d;
    --pps-peer: #f09a74; --pps-peer-ink: #181b20; --pps-sun: #e7b844;
  }
}
:root[data-theme='dark'] .pricing-grid--products {
  --pp-glare: rgb(167 216 239 / 0.1); --pps-stage: #1b1f25; --pps-rim: rgb(241 245 249 / 0.08); --pps-sheen: rgb(167 216 239 / 0.1);
  --pps-win: #23272e; --pps-bar: #2b3038; --pps-tabs: #1d2127; --pps-ink: #eef2f5; --pps-ink-2: #a9b4bf; --pps-skel: #3b424b; --pps-row: #2b3038;
  --pps-accent-ink: #7fbfdd; --pps-btn: #a7d8ef; --pps-btn-ink: #10161c;
  --pps-line: rgb(241 245 249 / 0.08); --pps-border: rgb(241 245 249 / 0.14);
  --pps-shadow: 0 0.15em 0.4em rgb(0 0 0 / 0.3), 0 1.6em 2.6em -1.2em rgb(0 0 0 / 0.75);
  --pps-dot: rgb(167 216 239 / 0.1); --pps-grid: rgb(167 216 239 / 0.06); --pps-sky-1: #1f4558; --pps-sky-2: #2f5f75;
  --pps-bezel: #08090b; --pps-metal-1: #9a9ea5; --pps-metal-2: #5d6168; --pps-metal-3: #2c2f34;
  --pps-rail: #14181d; --pps-trend: var(--glacier);
  --pps-ok: #7fd1a2; --pps-ok-ink: #7fd1a2; --pps-ok-bg: #324241; --pps-wait: #e3c16f; --pps-wait-bg: #424038;
  --pps-info: #a7d8ef; --pps-info-bg: #38434d;
  --pps-peer: #f09a74; --pps-peer-ink: #181b20; --pps-sun: #e7b844;
}

/* The frame of every scene: a stage, and a composition box of 26 by 19 em in its middle. */
.pps { position: absolute; inset: 0; font-size: 9px; font-size: min(calc(100cqi / 28), 13px); }
.pps__box { position: absolute; left: 50%; top: 50%; width: 26em; height: 19em; margin: -9.5em 0 0 -13em; }
/* A layer at depth --z: it drifts with the scroll and toward the pointer by its depth, and gathers from
   below by its depth while the card is dealt in. Its loops use transform, so the three never collide. */
.pps__layer {
  position: absolute;
  translate:
    calc(var(--px, 0) * var(--z, 1) * 0.5em)
    calc(var(--py, 0) * var(--z, 1) * 0.36em + var(--center, 0) * var(--z, 1) * 0.9em + var(--glide, 0) * var(--z, 1) * 2.2em);
}
.pps svg { overflow: visible; }
.pps-dots { display: flex; gap: 0.32em; }
.pps-dots i { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--pps-skel); }

/* Parts the scenes share: a browser's address with its padlock, a photo and a pointer. */
.pps-url {
  flex: 0 1 11em; min-width: 0; display: flex; align-items: center; gap: 0.35em;
  height: 0.95em; margin-inline: auto; padding: 0 0.5em;
  border-radius: 999px; background: var(--pps-win); box-shadow: inset 0 0 0 1px var(--pps-line);
}
.pps-lock { flex: none; width: 0.48em; height: 0.58em; }
.pps-lock rect { fill: var(--pps-ink-2); }
.pps-lock path { fill: none; stroke: var(--pps-ink-2); stroke-width: 1.6; }
.pps-scenery { position: relative; display: block; overflow: hidden; background: linear-gradient(180deg, var(--pps-sky-1), var(--pps-sky-2)); }
.pps-scenery__sun {
  position: absolute; left: 62%; top: 15%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffffff, var(--ice));
  box-shadow: 0 0 1em 0.15em rgb(255 255 255 / 0.6);
}
.pps-scenery__hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 58%; }
.pps-scenery__hill--back { fill: var(--layer-ui); }
.pps-scenery__hill--front { fill: var(--layer-api); }
.pps-cursor {
  display: block; width: 1.3em; height: 1.6em;
  fill: #ffffff; stroke: var(--carbon); stroke-width: 1.2; stroke-linejoin: round;
  filter: drop-shadow(0 0.12em 0.2em rgb(24 27 32 / 0.3));
}

/* The scenes' words (demo names, and placeholders the build fills in the page's language): Inter from the page,
   small and tight like a real interface. Each one-line label truncates with an ellipsis in its own box instead
   of overflowing, whatever the language. Every colour of words reaches 4.5:1 on the solid surface under it. */
.pps-url__text, .pps-site__tab span, .pps-site__link, .pps-site__navcta, .pps-site__kicker, .pps-site__cta, .pps-site__ghost,
.pps-site__rating span, .pps-site__legal, .pps-site__mcta, .pps-site__mfooter span,
.pps-app__search span, .pps-app__title, .pps-app__new, .pps-app__klabel, .pps-app__kvalue, .pps-app__head > span,
.pps-app__id, .pps-app__name, .pps-app__total, .pps-app__pill {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.pps-url__text { font-size: 0.54em; font-weight: 450; line-height: 1.2; letter-spacing: -0.005em; color: var(--pps-ink-2); }

/* ----------------------------------------- Website: a public site, on a laptop and a phone */
/* A boutique hotel's site with real words: its name, address and menu, the hero's headline, line, buttons and
   rating, three features and the footer. Labels keep to one line and truncate; the headlines, the line and the
   features take at most two lines in a box of two, so a long language never moves the layout. */

.pps--site {
  background:
    radial-gradient(var(--pps-dot) 0.07em, transparent 0.11em) 0 0 / 1.1em 1.1em,
    var(--pps-stage);
}
.pps__glow {
  position: absolute; right: -5em; top: -7em; width: 19em; height: 19em; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--layer-ui) 55%, transparent), transparent);
  translate: calc(var(--px, 0) * -0.6em) calc(var(--py, 0) * -0.4em - var(--center, 0) * 1.2em);
}

/* The browser: a tab strip, the address bar and the viewport the page scrolls in. */
.pps-site__win {
  left: 0.2em; top: 0.3em; width: 19.8em; height: 16.4em;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 0.8em; background: var(--pps-win); border: 1px solid var(--pps-border); box-shadow: var(--pps-shadow);
}
.pps-site__tabs { flex: none; height: 1.4em; display: flex; align-items: flex-end; gap: 0.6em; padding: 0 0.7em; background: var(--pps-tabs); }
.pps-site__tabs .pps-dots { align-self: center; }
.pps-site__tab { display: flex; align-items: center; gap: 0.35em; width: 5.4em; height: 1.05em; padding: 0 0.5em; border-radius: 0.4em 0.4em 0 0; background: var(--pps-bar); }
.pps-site__tab i { flex: none; width: 0.45em; height: 0.45em; border-radius: 0.14em; background: var(--pp-accent-deep); }
.pps-site__tab span { font-size: 0.56em; font-weight: 550; line-height: 1.2; letter-spacing: -0.01em; color: var(--pps-ink); }
.pps-site__plus {
  align-self: center; width: 0.5em; height: 0.5em; opacity: 0.6;
  background:
    linear-gradient(var(--pps-ink-2), var(--pps-ink-2)) 50% / 100% 0.08em no-repeat,
    linear-gradient(var(--pps-ink-2), var(--pps-ink-2)) 50% / 0.08em 100% no-repeat;
}
.pps-site__bar { flex: none; height: 1.45em; display: flex; align-items: center; gap: 0.6em; padding: 0 0.7em; background: var(--pps-bar); border-bottom: 1px solid var(--pps-line); }
.pps-site__arrows { display: flex; gap: 0.45em; }
.pps-site__arrows i { width: 0.32em; height: 0.32em; border: solid var(--pps-ink-2); border-width: 0 0 0.08em 0.08em; rotate: 45deg; }
.pps-site__arrows i + i { rotate: -135deg; opacity: 0.45; }
.pps-site__view { flex: 1; min-height: 0; overflow: hidden; }

/* The page: nav, a hero with its photo, three features below the fold, a footer. --scroll is how far it
   scrolls while live, to its footer (every block has a fixed height, whatever the language). */
.pps-site__page { --scroll: -6.45em; display: flex; flex-direction: column; padding: 0.8em 1.1em 0; }
.pps-site__nav { flex: none; display: flex; align-items: center; gap: 0.45em; height: 1em; }
.pps-site__logo {
  flex: none; display: flex; align-items: center; gap: 0.34em; margin-right: auto;
  font-size: 0.7em; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; color: var(--pps-ink);
}
.pps-site__logo::before { content: ''; flex: none; width: 0.8em; height: 0.8em; border-radius: 50%; background: linear-gradient(135deg, var(--pp-accent), var(--pp-accent-deep)); }
.pps-site__link { flex: 0 1 auto; font-size: 0.5em; font-weight: 500; line-height: 1.2; color: var(--pps-ink-2); }
.pps-site__navcta {
  flex: none; padding: 0 0.85em; border-radius: 999px;
  font-size: 0.52em; font-weight: 600; line-height: 1.83; background: var(--pps-ink); color: var(--pps-win);
}
.pps-site__hero { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 6.6em; gap: 0.8em; align-items: center; margin-top: 1em; }
.pps-site__copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.pps-site__kicker { max-width: 100%; font-size: 0.56em; font-weight: 600; line-height: 1.25; letter-spacing: 0.01em; color: var(--pps-accent-ink); }
.pps-site__h, .pps-site__lead, .pps-site__fname, .pps-site__mh {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  align-self: stretch; overflow: hidden; overflow-wrap: break-word;
}
.pps-site__h { height: 2.16em; margin-top: 0.26em; font-size: 1.22em; font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; color: var(--pps-ink); }
.pps-site__lead { height: 2.7em; margin-top: 0.83em; font-size: 0.6em; font-weight: 450; line-height: 1.35; color: var(--pps-ink-2); }
.pps-site__ctas { display: flex; gap: 0.4em; max-width: 100%; margin-top: 0.7em; }
.pps-site__cta, .pps-site__ghost {
  flex: 0 1 auto; padding: 0 0.85em; border-radius: 999px;
  font-size: 0.58em; font-weight: 600; line-height: 2.2; letter-spacing: -0.01em;
}
.pps-site__cta { background: var(--pps-btn); color: var(--pps-btn-ink); }
.pps-site__ghost { color: var(--pps-ink); box-shadow: inset 0 0 0 1px var(--pps-border); }
.pps-site__rating { display: flex; align-items: center; gap: 0.3em; max-width: 100%; margin-top: 0.55em; }
.pps-site__star {
  flex: none; width: 0.62em; height: 0.62em; background: var(--pps-sun);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.pps-site__rating span { font-size: 0.56em; font-weight: 500; line-height: 1.3; color: var(--pps-ink-2); }
.pps-site__photo { height: 8.6em; border-radius: 0.6em; }
/* The hotel's sea, in front of the hills of both photos. */
.pps--site .pps-scenery::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, var(--layer-ui), var(--layer-api));
  box-shadow: inset 0 0.08em 0 rgb(255 255 255 / 0.55);
}
.pps-site__features { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; margin-top: 1.2em; }
.pps-site__feature { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3em; min-width: 0; padding: 0.5em; border-radius: 0.55em; background: var(--pps-row); }
.pps-site__icon { flex: none; width: 0.95em; height: 0.95em; border-radius: 0.32em; background: color-mix(in srgb, var(--pp-accent) 50%, var(--pps-win)); }
.pps-site__feature:nth-child(2) .pps-site__icon { background: var(--pp-accent-deep); }
.pps-site__feature:nth-child(3) .pps-site__icon { background: var(--layer-brand); }
.pps-site__fname { height: 2.4em; font-size: 0.56em; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--pps-ink); }
/* The feature the visitor's pointer rests on while the page is scrolled. */
.pps-site__features .pps-site__feature:nth-child(2)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 1px var(--pp-accent), 0 0.5em 1em -0.5em var(--pp-accent);
  opacity: 0;
}
.pps-site__footer {
  flex: none; display: flex; align-items: center; gap: 0.8em; height: 2em; margin: 1.2em -1.1em 0; padding: 0 1.1em;
  background: var(--pps-bar); border-top: 1px solid var(--pps-line);
}
.pps-site__legal { margin-right: auto; font-size: 0.54em; font-weight: 500; line-height: 1.2; color: var(--pps-ink-2); }
.pps-site__footer > i { flex: none; width: 1.3em; height: 0.28em; border-radius: 0.15em; background: var(--pps-skel); }

/* The same site on a phone, in front: its nav folds into a menu and everything stacks. The phone is a modern
   iPhone, drawn in em: a body of 1 : 2.06 with corners of about 17.5% of its width, a slim titanium rim (lit from
   the top left), a thin black bezel all round, a screen with concentric corners (1.1em minus rim and bezel), the
   Dynamic Island, the status bar and the home indicator; the action and volume buttons at the left, the side
   button at the right. */
.pps-site__phone {
  left: 18.6em; top: 5.4em; width: 6.3em; height: 12.98em; padding: 0.08em;
  border-radius: 1.1em;
  background: linear-gradient(135deg, var(--pps-metal-1), var(--pps-metal-2) 45%, var(--pps-metal-3));
  box-shadow: inset 0 0 0 0.02em rgb(255 255 255 / 0.35), 0 0.08em 0.2em rgb(0 0 0 / 0.16), var(--pps-shadow);
}
.pps-site__phone::before, .pps-site__phone::after { content: ''; position: absolute; width: 0.08em; }
/* Left: the action button and the two volume buttons. */
.pps-site__phone::before {
  left: -0.07em; top: 17%; height: 27%; border-radius: 0.04em 0 0 0.04em;
  background:
    linear-gradient(var(--pps-metal-2), var(--pps-metal-2)) 0 0 / 100% 10% no-repeat,
    linear-gradient(var(--pps-metal-2), var(--pps-metal-2)) 0 39% / 100% 26% no-repeat,
    linear-gradient(var(--pps-metal-2), var(--pps-metal-2)) 0 100% / 100% 26% no-repeat;
}
/* Right: the side button. */
.pps-site__phone::after { right: -0.07em; top: 30%; height: 15%; border-radius: 0 0.04em 0.04em 0; background: var(--pps-metal-2); }
/* The screen inside its black bezel; what it shows is clipped by its round corners. */
.pps-site__screen {
  position: relative; height: 100%; overflow: hidden;
  border: 0.24em solid var(--pps-bezel); border-radius: 1.02em; background: var(--pps-win);
}
/* A very soft glass highlight over the screen. */
.pps-site__screen::after {
  content: ''; position: absolute; inset: 0; border-radius: 0.78em; pointer-events: none;
  background: linear-gradient(125deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0) 34%);
}
.pps-site__island { position: absolute; left: 50%; top: 0.22em; width: 1.7em; height: 0.51em; margin-left: -0.85em; border-radius: 999px; background: var(--pps-bezel); }
/* The status bar, on a solid strip the page scrolls under: the time left of the island, signal, Wi-Fi and
   battery right of it. */
.pps-site__status {
  position: absolute; left: 0; right: 0; top: 0; height: 0.95em;
  display: grid; grid-template-columns: minmax(0, 1fr) 1.7em minmax(0, 1fr); align-items: center; justify-items: center;
  background: var(--pps-win); color: var(--pps-ink);
}
.pps-site__time { grid-column: 1; font-size: 0.5em; font-weight: 600; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pps-site__sys { grid-column: 3; display: flex; align-items: center; gap: 0.1em; }
.pps-site__signal {
  flex: none; width: 0.36em; height: 0.26em;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0.065em 40% no-repeat,
    linear-gradient(currentColor, currentColor) 33.3% 100% / 0.065em 60% no-repeat,
    linear-gradient(currentColor, currentColor) 66.6% 100% / 0.065em 80% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 0.065em 100% no-repeat;
}
.pps-site__wifi {
  flex: none; width: 0.36em; height: 0.26em;
  background: radial-gradient(circle at 50% 100%, currentColor 0 0.055em, transparent 0.06em 0.1em, currentColor 0.105em 0.155em, transparent 0.16em 0.2em, currentColor 0.205em 0.255em, transparent 0.26em);
  -webkit-mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0);
  mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0);
}
.pps-site__battery {
  position: relative; flex: none; width: 0.5em; height: 0.25em; margin-right: 0.04em; border-radius: 0.07em;
  box-shadow: inset 0 0 0 0.03em color-mix(in srgb, currentColor 45%, transparent);
  background: linear-gradient(currentColor, currentColor) 0.055em 50% / 72% calc(100% - 0.11em) no-repeat;
}
.pps-site__battery::after {
  content: ''; position: absolute; right: -0.05em; top: 35%; width: 0.03em; height: 30%; border-radius: 0 0.02em 0.02em 0;
  background: color-mix(in srgb, currentColor 45%, transparent);
}
.pps-site__home { position: absolute; left: 50%; bottom: 0.14em; width: 1.9em; height: 0.1em; margin-left: -0.95em; border-radius: 999px; background: var(--pps-ink); }
.pps-site__mpage { --scroll: -3.05em; display: flex; flex-direction: column; padding: 1.15em 0.55em 0; }
.pps-site__mnav { flex: none; display: flex; align-items: center; justify-content: space-between; height: 0.7em; }
.pps-site__mnav .pps-site__logo { font-size: 0.56em; }
.pps-site__burger {
  flex: none; width: 0.7em; height: 0.5em;
  background:
    linear-gradient(var(--pps-ink), var(--pps-ink)) top / 100% 0.1em no-repeat,
    linear-gradient(var(--pps-ink), var(--pps-ink)) center / 100% 0.1em no-repeat,
    linear-gradient(var(--pps-ink), var(--pps-ink)) bottom / 100% 0.1em no-repeat;
}
.pps-site__mphoto { flex: none; height: 3em; margin-top: 0.55em; border-radius: 0.4em; }
.pps-site__mh { flex: none; height: 2.3em; margin-top: 1.035em; font-size: 0.62em; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--pps-ink); }
.pps-site__mcta {
  flex: none; margin-top: 1.2em; padding: 0 0.6em; border-radius: 999px;
  font-size: 0.46em; font-weight: 600; line-height: 2.4; text-align: center;
  background: var(--pps-btn); color: var(--pps-btn-ink);
}
.pps-site__mfeature {
  flex: none; display: grid; grid-template-columns: 0.8em minmax(0, 1fr); gap: 0.22em 0.4em; align-items: center;
  margin-top: 0.4em; padding: 0.42em; border-radius: 0.4em; background: var(--pps-row);
}
.pps-site__mcta + .pps-site__mfeature { margin-top: 0.6em; }
.pps-site__mfeature .pps-site__icon { grid-row: span 2; width: 0.8em; height: 0.8em; border-radius: 0.25em; }
.pps-site__mfeature + .pps-site__mfeature .pps-site__icon { background: var(--pp-accent-deep); }
.pps-site__mfeature i + i { width: 80%; height: 0.26em; border-radius: 0.13em; background: var(--pps-ink-2); }
.pps-site__mfeature i + i + i { width: 100%; height: 0.22em; background: var(--pps-skel); }
.pps-site__mfooter {
  flex: none; display: flex; align-items: center; justify-content: center; height: 1.4em; margin: 0.6em -0.55em 0; padding: 0 0.55em;
  background: var(--pps-bar); border-top: 1px solid var(--pps-line);
}
.pps-site__mfooter span { font-size: 0.46em; font-weight: 500; line-height: 1.2; color: var(--pps-ink-2); }

/* The visitor's pointer, resting just beside the hero's buttons, below the line of their words (so every label
   and the rating stay whole, in every language); while live it presses the call to action. */
.pps-site__pointer { left: 10.25em; top: 13.5em; width: 1.3em; height: 1.6em; }
.pps-site__ripple {
  position: absolute; left: -0.95em; top: -0.95em; width: 2.2em; height: 2.2em; border-radius: 50%;
  border: 0.12em solid var(--pp-accent); opacity: 0;
}

/* --------------------------------------- Web app: an online shop's admin the whole team works in */
/* Real words: the shop's address, search, the orders page with three figures (amounts in the page's currency
   format), a table of orders with their status, the teammate's name on their cursor and the toast. */

.pps--webapp {
  background:
    linear-gradient(var(--pps-grid) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    linear-gradient(90deg, var(--pps-grid) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    radial-gradient(80% 70% at 10% 105%, color-mix(in srgb, var(--layer-api) 32%, transparent), transparent 70%),
    var(--pps-stage);
}
.pps-app__win {
  left: 0; top: 0.2em; width: 23.6em; height: 16.2em;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 0.8em; background: var(--pps-win); border: 1px solid var(--pps-border); box-shadow: var(--pps-shadow);
}
.pps-app__bar { flex: none; height: 1.5em; display: flex; align-items: center; padding: 0 0.7em; background: var(--pps-bar); border-bottom: 1px solid var(--pps-line); }
.pps-app__body { flex: 1; min-height: 0; display: flex; }
.pps-app__side { flex: none; width: 3em; display: flex; flex-direction: column; align-items: center; gap: 0.75em; padding: 0.8em 0; background: var(--pps-rail); }
/* The shop's mark, on the dark rail in both themes. */
.pps-app__brand {
  display: grid; place-items: center; width: 1.875em; height: 1.875em; margin-bottom: 0.375em; border-radius: 0.56em;
  font-size: 0.8em; font-weight: 750; line-height: 1; letter-spacing: -0.02em; background: var(--glacier); color: #10161c;
}
.pps-app__navicon { position: relative; display: grid; place-items: center; width: 1.6em; height: 1.15em; border-radius: 0.35em; }
.pps-app__navicon::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 0.15em; background: rgb(255 255 255 / 0.3); }
.pps-app__navicon--on { background: rgb(167 216 239 / 0.18); }
.pps-app__navicon--on::before { background: var(--glacier); }
.pps-app__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5em; padding: 0.65em 0.85em 0; }

/* The top bar: search, the team on the page and the signed-in user. */
.pps-app__top { flex: none; display: flex; align-items: center; gap: 0.6em; height: 1.25em; }
.pps-app__search {
  flex: 0 1 9.4em; min-width: 0; display: flex; align-items: center; gap: 0.35em; height: 1.25em; margin-right: auto; padding: 0 0.6em;
  border-radius: 999px; background: var(--pps-row);
}
.pps-app__search::before {
  content: ''; flex: none; width: 0.42em; height: 0.42em; border-radius: 50%; box-shadow: inset 0 0 0 0.08em var(--pps-ink-2);
}
.pps-app__search span { font-size: 0.54em; font-weight: 450; line-height: 1.2; color: var(--pps-ink-2); }
.pps-app__team { flex: none; display: flex; padding-left: 0.35em; }
.pps-app__team i {
  width: 1.2em; height: 1.2em; margin-left: -0.35em; border-radius: 50%;
  background: linear-gradient(135deg, var(--layer-brand), var(--layer-ui)); box-shadow: 0 0 0 0.12em var(--pps-win);
}
.pps-app__team i:nth-child(2) { background: linear-gradient(135deg, var(--pps-peer), color-mix(in srgb, var(--pps-peer) 50%, var(--pps-win))); }
.pps-app__team i:nth-child(3) { background: linear-gradient(135deg, var(--layer-data), var(--layer-cloud)); }
.pps-app__me {
  position: relative; flex: none; width: 1.4em; height: 1.4em; border-radius: 50%;
  background: linear-gradient(135deg, var(--layer-brand), var(--layer-api));
  box-shadow: 0 0 0 0.12em var(--pps-win), 0 0 0 0.22em color-mix(in srgb, var(--pp-accent) 45%, transparent);
}
.pps-app__me::after {
  content: ''; position: absolute; right: -0.05em; bottom: -0.05em; width: 0.42em; height: 0.42em; border-radius: 50%;
  background: var(--pps-ok); box-shadow: 0 0 0 0.1em var(--pps-win);
}

/* The page: its title and the button to add an order, then three figures for today. */
.pps-app__heading { flex: none; display: flex; align-items: center; gap: 0.6em; height: 1.2em; }
.pps-app__title { flex: 0 1 auto; margin-right: auto; font-size: 1em; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; color: var(--pps-ink); }
.pps-app__new {
  flex: 0 1 auto; padding: 0 0.95em 0 0.8em; border-radius: 999px;
  font-size: 0.54em; font-weight: 600; line-height: 2.13; background: var(--pps-btn); color: var(--pps-btn-ink);
}
.pps-app__new::before {
  content: ''; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.4em; vertical-align: -0.08em;
  background:
    linear-gradient(currentColor, currentColor) 50% / 100% 0.14em no-repeat,
    linear-gradient(currentColor, currentColor) 50% / 0.14em 100% no-repeat;
}
.pps-app__kpis { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5em; }
.pps-app__kpi {
  display: flex; flex-direction: column; gap: 0.18em; min-width: 0; padding: 0.3em 0.5em;
  border-radius: 0.5em; background: var(--pps-win); box-shadow: inset 0 0 0 1px var(--pps-line);
}
.pps-app__klabel { font-size: 0.5em; font-weight: 500; line-height: 1.2; color: var(--pps-ink-2); }
.pps-app__kvalue { font-size: 0.86em; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--pps-ink); }
.pps-app__krow { display: flex; align-items: center; gap: 0.35em; min-width: 0; }
.pps-app__spark { flex: none; width: 1.9em; height: 0.7em; margin-left: auto; fill: none; stroke: var(--pps-trend); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The orders: number, customer, total and status, newest first. The list runs on past the window. */
.pps-app__table {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--pps-line); border-bottom: 0; border-radius: 0.55em 0.55em 0 0;
}
.pps-app__head, .pps-app__row { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 2.9em 4.3em; gap: 0.5em; align-items: center; padding: 0 0.6em; border-bottom: 1px solid var(--pps-line); }
.pps-app__head { position: relative; z-index: 1; flex: none; height: 1em; background: var(--pps-bar); }
.pps-app__head > span { font-size: 0.5em; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; color: var(--pps-ink-2); }
.pps-app__head > span:nth-child(3), .pps-app__total { text-align: right; }
.pps-app__rows { display: flex; flex-direction: column; }
.pps-app__row { position: relative; flex: none; height: 1.5em; }
.pps-app__row > span { position: relative; min-width: 0; }
.pps-app__id { font-size: 0.54em; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--pps-ink-2); }
.pps-app__cust { display: flex; align-items: center; gap: 0.35em; }
.pps-app__who { flex: none; width: 0.9em; height: 0.9em; border-radius: 50%; background: linear-gradient(135deg, var(--layer-brand), var(--layer-ui)); }
.pps-app__row:nth-child(2) .pps-app__who { background: linear-gradient(135deg, var(--layer-ui), var(--layer-api)); }
.pps-app__row:nth-child(3) .pps-app__who { background: linear-gradient(135deg, var(--layer-data), var(--layer-cloud)); }
.pps-app__row:nth-child(4) .pps-app__who { background: linear-gradient(135deg, var(--pps-peer), color-mix(in srgb, var(--pps-peer) 50%, var(--pps-win))); }
.pps-app__row:nth-child(5) .pps-app__who { background: linear-gradient(135deg, var(--layer-brand), var(--layer-api)); }
.pps-app__row:nth-child(6) .pps-app__who { background: linear-gradient(135deg, var(--layer-cloud), var(--graphite)); }
.pps-app__name { font-size: 0.58em; font-weight: 550; line-height: 1.2; letter-spacing: -0.01em; color: var(--pps-ink); }
.pps-app__total { font-size: 0.58em; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--pps-ink); }
/* A status cell shows one pill; the changing one holds two, stacked, and only the one in the cell shows. */
.pps-app__status { display: block; height: 0.9em; overflow: hidden; }
.pps-app__flip { display: flex; flex-direction: column; align-items: flex-start; }
.pps-app__pill {
  display: inline-block; vertical-align: top; max-width: 100%; padding: 0 0.6em 0 0.5em; border-radius: 999px;
  font-size: 0.5em; font-weight: 600; line-height: 1.8;
}
.pps-app__pill::before { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.35em; border-radius: 50%; background: currentColor; vertical-align: 0.05em; }
.pps-app__pill--paid { color: var(--pps-ok-ink); background: var(--pps-ok-bg); }
.pps-app__pill--shipped { color: var(--pps-info); background: var(--pps-info-bg); }
.pps-app__pill--pending { color: var(--pps-wait); background: var(--pps-wait-bg); }
/* The newest order: marked at its edge, and lit (under its words) for a moment when it comes in. */
.pps-app__lit { position: absolute; inset: 0; background: color-mix(in srgb, var(--pp-accent) 16%, transparent); opacity: 0; }
.pps-app__row--new::after { content: ''; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 0.16em; border-radius: 0 0.08em 0.08em 0; background: var(--pp-accent); }

/* A teammate's cursor with its name tag, the same colour as their face in the top bar. It rests (and clicks)
   just right of #1045's status pill, past the longest pill of any language; its tag sits beside the arrow, over
   the table's empty right edge, so neither hides a word. */
.pps-app__peer { left: 21.4em; top: 13.4em; width: 1.1em; height: 1.35em; }
.pps-app__peer .pps-cursor { width: 1.1em; height: 1.35em; fill: var(--pps-peer); stroke: #ffffff; }
.pps-app__tag {
  position: absolute; left: 2.02em; top: 0.38em; padding: 0 0.6em; border-radius: 0.4em 0.85em 0.85em 0.85em;
  font-size: 0.52em; font-weight: 600; line-height: 1.7; white-space: nowrap;
  background: var(--pps-peer); color: var(--pps-peer-ink);
  box-shadow: 0 0.4em 1em -0.3em rgb(24 27 32 / 0.35);
}

/* A toast, in front: a new order has come in. */
.pps-app__toast { left: 15.6em; top: 14.5em; width: 10em; height: 3.1em; }
.pps-app__toastin {
  display: flex; align-items: center; gap: 0.6em; width: 100%; height: 100%; padding: 0 0.8em;
  border-radius: 0.8em; background: var(--pps-win); border: 1px solid var(--pps-border); box-shadow: var(--pps-shadow);
}
.pps-app__check { flex: none; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--pps-ok); }
.pps-app__check svg { width: 0.9em; height: 0.9em; fill: none; stroke: var(--pps-win); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pps-app__msg {
  flex: 1; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: break-word;
  font-size: 0.6em; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--pps-ink);
}

/* ------------------------------------------- AI assistant: a chat that answers and acts */
/* Real text, in the page's language: the question, the answer (its words are spans from pricing.js, each
   with its index --w) and a card for what the assistant did. The thread sits on the field to ask the next
   question; if a language runs long, its top fades under the assistant's name. While live, every element
   with text comes and goes by transform and clip-path, never by opacity, so its contrast never drops. */

.pps--ai {
  background:
    radial-gradient(circle at 16% 4%, rgb(59 125 154 / 0.5), transparent 44%),
    radial-gradient(circle at 92% 112%, rgb(36 93 118 / 0.55), transparent 50%),
    linear-gradient(180deg, #17222b, #10161c);
}
.pps-ai__stars {
  position: absolute; inset: -1em;
  background:
    radial-gradient(rgb(167 216 239 / 0.55) 0.06em, transparent 0.1em) 0 0 / 2.3em 2.1em,
    radial-gradient(rgb(255 255 255 / 0.35) 0.05em, transparent 0.09em) 1.1em 1em / 3.1em 2.7em;
  translate: calc(var(--px, 0) * -0.3em) calc(var(--py, 0) * -0.2em - var(--center, 0) * 0.5em);
}

/* The assistant: a small orb (its face), its name and that it is online. */
.pps-ai__head { left: 1em; top: 0.3em; height: 2.6em; display: flex; align-items: center; gap: 0.7em; }
.pps-ai__orb { position: relative; flex: none; width: 2.6em; height: 2.6em; }
.pps-ai__halo, .pps-ai__ring, .pps-ai__arc, .pps-ai__core { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.pps-ai__halo { width: 5.2em; height: 5.2em; margin: -2.6em; background: radial-gradient(closest-side, rgb(167 216 239 / 0.34), transparent); }
.pps-ai__ring { width: 3.6em; height: 3.6em; margin: -1.8em; border: 1px solid rgb(167 216 239 / 0.28); }
.pps-ai__arc {
  width: 2.6em; height: 2.6em; margin: -1.3em;
  background: conic-gradient(from 0deg, transparent 0 60%, rgb(167 216 239 / 0.95) 86%, transparent 88%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.13em), #000 calc(100% - 0.1em));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.13em), #000 calc(100% - 0.1em));
}
.pps-ai__core {
  width: 1.9em; height: 1.9em; margin: -0.95em;
  background: radial-gradient(circle at 34% 30%, #ffffff 0 4%, #dff2fb 12%, var(--glacier) 32%, var(--logo-blue) 62%, var(--deep) 90%);
  box-shadow: 0 0 1em 0.1em rgb(167 216 239 / 0.5), inset -0.18em -0.26em 0.5em rgb(16 22 28 / 0.45);
}
.pps-ai__id { display: flex; flex-direction: column; gap: 0.4em; }
.pps-ai__name { width: 4.2em; height: 0.46em; border-radius: 0.23em; background: rgb(223 242 251 / 0.75); }
.pps-ai__online { display: flex; align-items: center; gap: 0.3em; }
.pps-ai__online i { width: 0.4em; height: 0.4em; border-radius: 50%; background: #7fd1a2; box-shadow: 0 0 0.4em rgb(127 209 162 / 0.7); }
.pps-ai__online i + i { width: 2.4em; height: 0.3em; border-radius: 0.15em; background: rgb(223 242 251 / 0.3); box-shadow: none; }
.pps-ai__spark { width: 0.8em; height: 0.8em; margin: -1.4em 0 0 -0.1em; fill: var(--glacier); }

/* The thread, anchored on the field below it. */
.pps-ai__chat {
  left: 1em; top: 3.4em; width: 24em; height: 12.3em;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 1em);
  mask-image: linear-gradient(transparent, #000 1em);
}
.pps-ai__thread { display: flex; flex-direction: column; gap: 0.6em; }
.pps-ai__ask, .pps-ai__answer, .pps-ai__note {
  font-size: 0.95em; font-weight: 500; line-height: 1.32; letter-spacing: -0.006em;
  text-wrap: pretty; overflow-wrap: anywhere;
}
.pps-ai__ask {
  align-self: flex-end; display: block; max-width: 16em; padding: 0.5em 0.8em;
  border-radius: 0.95em 0.95em 0.3em 0.95em; background: #e9f3f8; color: #13202a;
  transform-origin: 100% 100%;
}
.pps-ai__reply { position: relative; display: block; }
.pps-ai__answer { display: block; max-width: 24.5em; color: #e6f1f7; }
.pps-ai__word { position: relative; display: inline-block; }
.pps-ai__typing {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.28em; height: 1.5em; padding: 0 0.6em;
  border-radius: 0.75em 0.75em 0.75em 0.25em; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  transform-origin: 0 100%; opacity: 0;
}
.pps-ai__typing i { width: 0.38em; height: 0.38em; border-radius: 50%; background: var(--glacier); }
.pps-ai__done {
  align-self: flex-start; display: flex; align-items: center; gap: 0.55em; max-width: 100%; padding: 0.5em 0.85em 0.5em 0.5em;
  border-radius: 0.75em; background: rgb(167 216 239 / 0.1); box-shadow: inset 0 0 0 1px rgb(167 216 239 / 0.24); color: #dff2fb;
  transform-origin: 0 50%;
}
.pps-ai__tick { flex: none; display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--glacier); }
.pps-ai__tick svg { width: 0.85em; height: 0.85em; fill: none; stroke: #10161c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pps-ai__note { min-width: 0; }

.pps-ai__input {
  left: 1em; top: 16.2em; width: 24em; height: 2.3em;
  display: flex; align-items: center; gap: 0.6em; padding: 0 0.35em 0 1em;
  border-radius: 999px; background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(167 216 239 / 0.22), 0 0.6em 1.6em -0.6em rgb(0 0 0 / 0.6);
}
.pps-ai__placeholder { width: 7em; height: 0.4em; margin-right: auto; border-radius: 0.2em; background: rgb(223 242 251 / 0.3); }
.pps-ai__send { display: grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--glacier); }
.pps-ai__send svg { width: 1em; height: 1em; fill: none; stroke: #10161c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ life */
/* Only while the grid is in view and motion is allowed (pricing.js sets .is-live). Each loop rests on the
   finished picture for most of its time, then plays and lands on the finished picture again. */

/* Website: the page scrolls down to its features and footer on both screens and back up; the pointer
   follows to a feature, then presses the call to action and comes back to rest beside the buttons. */
.pricing-grid--products.is-live .pps-site__scroll { animation: pps-scroll 12s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes pps-scroll {
  0%, 22% { transform: none; }
  44%, 60% { transform: translateY(var(--scroll)); }
  80%, 100% { transform: none; }
}
.pricing-grid--products.is-live .pps-site__pointer { animation: pps-point 12s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes pps-point {
  0%, 20% { transform: none; }
  40%, 62% { transform: translate(-0.2em, -2em); }
  80% { transform: translate(-6.95em, -0.5em); }
  86% { transform: translate(-6.95em, -0.5em) scale(0.84); }
  90% { transform: translate(-6.95em, -0.5em); }
  100% { transform: none; }
}
.pricing-grid--products.is-live .pps-site__features .pps-site__feature:nth-child(2)::after { animation: pps-hover 12s ease-in-out infinite; }
@keyframes pps-hover { 0%, 40%, 64%, 100% { opacity: 0; } 44%, 60% { opacity: 1; } }
.pricing-grid--products.is-live .pps-site__ripple { animation: pps-ripple 12s ease-out infinite; }
@keyframes pps-ripple {
  0%, 85% { opacity: 0; transform: scale(0.4); }
  87% { opacity: 0.9; transform: scale(0.5); }
  96% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(0.4); }
}
.pricing-grid--products.is-live .pps-site__cta { animation: pps-press 12s ease-in-out infinite; }
@keyframes pps-press {
  0%, 85% { transform: none; }
  87% { transform: scale(0.92); }
  91% { transform: scale(1.05); }
  95%, 100% { transform: none; }
}

/* Web app: the newest order slides away under the table's head and comes in again at the top, lit; the
   teammate's cursor wanders over the table and comes back to #1045 to mark it paid (its status slides from
   pending to paid); the toast for the new order rises in. The words move only by transform and clip-path, so
   their contrast never drops. */
.pricing-grid--products.is-live .pps-app__rows { animation: pps-rows 12s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes pps-rows {
  0%, 12% { transform: none; }
  17%, 34% { transform: translateY(-1.5em); }
  40%, 100% { transform: none; }
}
.pricing-grid--products.is-live .pps-app__lit { animation: pps-row-light 12s ease-out infinite; }
@keyframes pps-row-light { 0%, 36% { opacity: 0; } 40%, 52% { opacity: 1; } 70%, 100% { opacity: 0; } }
.pricing-grid--products.is-live .pps-app__flip { animation: pps-flip 12s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes pps-flip {
  0%, 12% { transform: none; }
  16%, 56% { transform: translateY(-50%); }
  60%, 100% { transform: none; }
}
.pricing-grid--products.is-live .pps-app__peer { animation: pps-peer 12s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes pps-peer {
  0%, 20% { transform: none; }
  32%, 42% { transform: translate(-8.6em, -1.4em); }
  52% { transform: none; }
  54% { transform: scale(0.86); }
  56%, 100% { transform: none; }
}
.pricing-grid--products.is-live .pps-app__toastin { animation: pps-toast 12s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes pps-toast {
  0%, 10% { transform: none; clip-path: inset(-3em); }
  15%, 58% { transform: translateY(0.9em); clip-path: inset(100% -3em 0 -3em); }
  64%, 100% { transform: none; clip-path: inset(-3em); }
}
.pricing-grid--products.is-live .pps-app__check path { stroke-dasharray: 10; animation: pps-app-tick 12s ease-out infinite; }
@keyframes pps-app-tick { 0%, 62% { stroke-dashoffset: 10; } 68%, 100% { stroke-dashoffset: 0; } }

/* AI assistant, a 13s loop: the question is sent (0.35s), the assistant types (1.1s), its answer streams in
   word by word from 2.4s (each word 0.13s after the one before, a caret at the end; room for 32 words), the
   card for what it did comes in at 7s, and at 10.8s the thread lifts away for the next round. The answer
   is hidden from the end of a round until its first word, so a word still on its last round never shows
   early. The orb breathes and thinks all along. */
.pricing-grid--products.is-live .pps-ai__core { animation: pps-breathe 4.2s ease-in-out infinite; }
.pricing-grid--products.is-live .pps-ai__halo { animation: pps-breathe 4.2s ease-in-out -0.4s infinite; }
@keyframes pps-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.07); } }
.pricing-grid--products.is-live .pps-ai__arc { animation: pps-spin 3.6s linear infinite; }
@keyframes pps-spin { to { transform: rotate(360deg); } }
.pricing-grid--products.is-live .pps-ai__ring { animation: pps-wave 4.2s ease-out infinite; }
@keyframes pps-wave {
  0% { transform: scale(0.86); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.16); opacity: 0; }
}
.pricing-grid--products.is-live .pps-ai__spark { animation: pps-twinkle 3.4s ease-in-out infinite; }
@keyframes pps-twinkle { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(0.55) rotate(45deg); opacity: 0.45; } }
.pricing-grid--products.is-live .pps-ai__thread { animation: pps-ai-thread 13s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes pps-ai-thread {
  0%, 83% { transform: none; clip-path: inset(-1em); }
  86.2%, 100% { transform: translateY(-1.2em); clip-path: inset(100% -1em -1em -1em); }
}
.pricing-grid--products.is-live .pps-ai__ask { animation: pps-ai-ask 13s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes pps-ai-ask {
  0%, 2.7% { transform: translateY(0.8em) scale(0.92); clip-path: inset(100% 0 0 0); }
  6.5%, 86.2% { transform: none; clip-path: inset(0); }
  86.3%, 100% { transform: translateY(0.8em) scale(0.92); clip-path: inset(100% 0 0 0); }
}
.pricing-grid--products.is-live .pps-ai__send { animation: pps-ai-send 13s ease-in-out infinite; }
@keyframes pps-ai-send { 0%, 0.8%, 6%, 100% { transform: none; } 2% { transform: scale(0.82); } 3.8% { transform: scale(1.08); } }
.pricing-grid--products.is-live .pps-ai__typing { animation: pps-ai-typing 13s ease-out infinite; }
@keyframes pps-ai-typing {
  0%, 8.5% { opacity: 0; transform: scale(0.8); }
  10%, 17.7% { opacity: 1; transform: none; }
  18.8%, 100% { opacity: 0; transform: none; }
}
.pricing-grid--products.is-live .pps-ai__typing i { animation: pps-dot 0.9s ease-in-out infinite; }
.pricing-grid--products.is-live .pps-ai__typing i:nth-child(2) { animation-delay: 0.15s; }
.pricing-grid--products.is-live .pps-ai__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pps-dot { 0%, 100% { transform: none; opacity: 0.45; } 50% { transform: translateY(-0.3em); opacity: 1; } }
.pricing-grid--products.is-live .pps-ai__answer { animation: pps-ai-answer 13s linear infinite; }
@keyframes pps-ai-answer {
  0%, 18.3% { clip-path: inset(0 0 100% 0); }
  18.4%, 86.2% { clip-path: inset(-1em); }
  86.3%, 100% { clip-path: inset(0 0 100% 0); }
}
.pricing-grid--products.is-live .pps-ai__word { animation: pps-ai-word 13s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--w, 0) * 0.13s) infinite backwards; }
@keyframes pps-ai-word {
  0%, 18.46% { transform: translateY(0.2em); clip-path: inset(-0.3em 100% -0.3em -0.3em); }
  19.6%, 86.2% { transform: none; clip-path: inset(-0.3em -0.6em -0.3em -0.3em); }
  86.3%, 100% { transform: translateY(0.2em); clip-path: inset(-0.3em 100% -0.3em -0.3em); }
}
/* The caret: after each word until the next one comes, then blinking after the last. */
.pricing-grid--products.is-live .pps-ai__word::after {
  content: ''; position: absolute; right: -0.24em; top: 0.2em; bottom: 0.16em; width: 0.1em; border-radius: 0.05em;
  background: var(--glacier); opacity: 0;
  animation: pps-ai-caret 13s linear calc(var(--w, 0) * 0.13s) infinite backwards;
}
.pricing-grid--products.is-live .pps-ai__word:last-child::after { animation-name: pps-ai-caret-end; }
@keyframes pps-ai-caret { 0%, 19.3% { opacity: 0; } 19.4%, 20.3% { opacity: 1; } 20.4%, 100% { opacity: 0; } }
@keyframes pps-ai-caret-end {
  0%, 19.3% { opacity: 0; }
  19.4%, 22.9% { opacity: 1; }
  23%, 25.9% { opacity: 0; }
  26%, 29.4% { opacity: 1; }
  29.5%, 32.9% { opacity: 0; }
  33%, 36.4% { opacity: 1; }
  36.5%, 100% { opacity: 0; }
}
.pricing-grid--products.is-live .pps-ai__done { animation: pps-ai-done 13s cubic-bezier(0.34, 1.4, 0.64, 1) infinite; }
@keyframes pps-ai-done {
  0%, 53.8% { transform: translateY(0.6em) scale(0.9); clip-path: inset(100% 0 0 0); }
  57.5%, 86.2% { transform: none; clip-path: inset(-1em); }
  86.3%, 100% { transform: translateY(0.6em) scale(0.9); clip-path: inset(100% 0 0 0); }
}
.pricing-grid--products.is-live .pps-ai__tick path { stroke-dasharray: 10; animation: pps-ai-tick 13s ease-out infinite; }
@keyframes pps-ai-tick { 0%, 55.5% { stroke-dashoffset: 10; } 59%, 100% { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------- VAT */

.pricing-vat {
  margin-top: clamp(20px, 2.6vw, 32px);
  font-size: 0.875rem; line-height: 1.5; color: var(--text-2); text-align: center; text-wrap: balance;
}

/* ------------------------------------------------------------ questions */

.pricing-faq__list { max-width: 820px; margin-inline: auto; }

/* -------------------------------------------------------------- closing */

.pricing-cta__inner { margin-bottom: 0; }
.pricing-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }
@container pricing-panel (max-width: 479.98px) {
  .pricing-cta__actions { flex-direction: column; align-self: stretch; }
  .pricing-cta__actions .button { width: 100%; }
}

/* ----------------------------------------------------- reduced motion */
/* Still, finished cards: no deal, drift, lean, lift, loop, morph or settle (site.js and pricing.js also leave
   the motion variables and .is-live off, so every var() above falls back to the finished state). */

@media (prefers-reduced-motion: reduce) {
  .pricing-grid--products .pricing-product,
  .pricing-grid--products .pricing-product::before,
  .pricing-grid--products .pricing-product::after,
  .pricing-grid--products .pricing-price__from,
  .pricing-grid--products .pricing-price__amount,
  .pricing-product__action,
  .pricing-platform::before,
  .pricing-platform__option,
  .pricing-product__visual,
  .pricing-product__visual::after,
  .pricing-product__visual *,
  .pricing-product__visual *::before,
  .pricing-product__visual *::after { animation: none !important; transition: none !important; }
  .pricing-grid--products .pricing-product { transform: none !important; translate: none !important; }
  .pricing-platform { transform: none !important; opacity: 1 !important; }
}

/* ------------------------------------------------------ forced colours */

@media (forced-colors: active) {
  .pricing-grid--products .pricing-product { border: 1px solid CanvasText; }
  .pricing-grid--products .pricing-product::before,
  .pricing-grid--products .pricing-product::after,
  .pricing-product__visual::after { display: none; }
  /* The pictures are decorative: drawn as authored, inside a plain rim. */
  .pricing-product__visual { forced-color-adjust: none; border: 1px solid CanvasText; }
  .pricing-grid--products .pricing-card__name::before { forced-color-adjust: none; }
}
