/* ============================================================
   webweezl.io — "Pipeline of stations" (shared)
   Extracted from the approved reference pages/chatbot-ecommerce.html
   and used by the industry pages (pages/chatbot-*.html).
   Prefix: pl-. Page specifics stay in a page-scoped <style>.
   Works without JS: every word is in the HTML, nodes render filled,
   FAQ answers are open until js/pipeline.js marks the page (.pl-js).
   ============================================================ */

:root {
  --pl-ink: #0f172a;
  --pl-ink-2: #334155;
  --pl-ink-3: #475569;
  --pl-ink-4: #64748b;
  --pl-line: #e2e8f0;
  --pl-line-strong: #cbd5e1;
  --pl-line-hover: #94a3b8;
  --pl-ground: #ffffff;
  --pl-ground-2: #f8fafc;
  --pl-bubble-in: #f1f5f9;
  --pl-teal: #0d9488;
  --pl-teal-dark: #0f766e;
  --pl-teal-deep: #115e59;
  --pl-teal-light: #ccfbf1;
  --pl-teal-50: #f0fdfa;
  --pl-teal-edge: #99f6e4;
  --pl-teal-glow: #5eead4;
  --pl-night: #0f172a;
  --pl-lift: 0 1px 2px rgb(15 23 42 / 0.06), 0 4px 8px -4px rgb(15 23 42 / 0.10);
  --pl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pl-gap-section: clamp(88px, 11vw, 144px);
}

/* ---------- Browser surfaces ---------- */
::selection { background: var(--pl-teal-light); color: var(--pl-ink); }
body { background: var(--pl-ground); color: var(--pl-ink-2); caret-color: var(--pl-teal-dark); }
.pl-main a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.pl-main :focus-visible { outline: 2px solid var(--pl-teal-dark); outline-offset: 3px; border-radius: 6px; }
.pl-main h1, .pl-main h2, .pl-main h3 { color: var(--pl-ink); text-wrap: balance; }
.pl-main p { text-wrap: pretty; }
.pl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pl-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.pl-hero { padding: calc(var(--nav-height) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px); }
.pl-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px clamp(40px, 6vw, 88px); align-items: center; }
.pl-hero h1 { font-size: clamp(2.25rem, 3.7vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.pl-hero h1 .pl-hl { color: var(--pl-teal-dark); }
.pl-hero__lede { margin-top: 24px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.65; color: var(--pl-ink-3); max-width: 56ch; }
.pl-hero__chat { justify-self: end; width: 100%; max-width: 400px; margin: 0; }

/* ---------- URL form (hero, path end, close) ---------- */
.pl-try { margin-top: 36px; max-width: 600px; }
.pl-try__label { display: block; font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; color: var(--pl-ink); margin-bottom: 8px; }
.pl-try__row { display: flex; gap: 10px; }
.pl-try__input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 18px;
  font: 500 1.0625rem/1 var(--font-body); color: var(--pl-ink); background: #fff;
  border: 1.5px solid var(--pl-line-strong); border-radius: 10px;
  transition: border-color 0.2s var(--pl-ease), box-shadow 0.2s var(--pl-ease);
}
.pl-try__input::placeholder { color: var(--pl-ink-4); }
.pl-try__input:hover { border-color: var(--pl-line-hover); }
.pl-try__input:focus { outline: none; border-color: var(--pl-teal-dark); box-shadow: 0 0 0 4px rgb(13 148 136 / 0.16); }
.pl-try__btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0.75rem 24px;
  font: 700 1rem/1.2 var(--font-body); color: #fff; background: var(--pl-teal-dark); border-radius: 10px; white-space: nowrap;
  transition: background 0.2s var(--pl-ease), transform 0.2s var(--pl-ease), box-shadow 0.2s var(--pl-ease);
}
.pl-try__btn:hover { background: var(--pl-teal-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgb(15 23 42 / 0.45); }
.pl-try__btn:active { transform: translateY(0); box-shadow: none; }
.pl-try__btn .pl-ico { transition: transform 0.25s var(--pl-ease); }
.pl-try__btn:hover .pl-ico { transform: translateX(3px); }
.pl-try__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 16px; font-size: 0.9375rem; color: var(--pl-ink-3); }
.pl-try__facts { margin: 0; display: flex; flex-wrap: wrap; column-gap: 0; row-gap: 2px; }
.pl-try__facts span { white-space: nowrap; }
.pl-try__facts span + span::before { content: "·"; margin: 0 8px; color: var(--pl-line-hover); }
.pl-try__alt { color: var(--pl-teal-dark); font-weight: 600; text-decoration: underline; }
.pl-try__alt:hover { color: var(--pl-teal-deep); }

/* ---------- Shared artefact chrome ---------- */
.pl-tag {
  margin-left: auto; flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; color: var(--pl-ink-3);
  border: 1px solid var(--pl-line-strong); border-radius: 999px; padding: 2px 10px; background: #fff; white-space: nowrap;
}
.pl-cap { margin-top: 12px; padding: 0 4px; font-size: 0.875rem; color: var(--pl-ink-3); }
.pl-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 0 4px; font-size: 0.875rem; line-height: 1.5; color: var(--pl-ink-3); }
.pl-note .pl-ico { margin-top: 1px; width: 17px; height: 17px; color: var(--pl-ink-4); }
.pl-note s { text-decoration-color: var(--pl-line-hover); }

/* ---------- Chat widget fragments ---------- */
.pl-chat { background: #fff; border: 1px solid var(--pl-line); border-radius: 18px; box-shadow: var(--pl-lift); overflow: hidden; font-size: 0.9375rem; line-height: 1.55; }
.pl-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pl-line); background: var(--pl-ground-2); }
.pl-chat__avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--pl-teal-dark); color: #fff; flex: none; }
.pl-chat__avatar .pl-ico { width: 17px; height: 17px; }
.pl-chat__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pl-chat__name { font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; color: var(--pl-ink); }
.pl-chat__status { font-size: 0.75rem; color: var(--pl-ink-3); }
.pl-chat__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; }
.pl-msg { position: relative; margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 16px; color: var(--pl-ink); text-wrap: wrap; }
.pl-msg--in { align-self: flex-start; background: var(--pl-bubble-in); border-bottom-left-radius: 5px; }
.pl-msg--out { align-self: flex-end; background: var(--pl-teal-dark); color: #fff; border-bottom-right-radius: 5px; }
.pl-msg--team { align-self: flex-start; background: var(--pl-teal-50); border: 1px solid var(--pl-teal-edge); border-bottom-left-radius: 5px; }
.pl-msg--wide { max-width: 100%; width: 100%; min-width: 0; }
.pl-msg__from { display: block; font-size: 0.75rem; font-weight: 700; color: var(--pl-teal-dark); margin-bottom: 2px; }
.pl-time { font-size: 0.75rem; color: var(--pl-ink-3); font-variant-numeric: tabular-nums; }
.pl-time--out { align-self: flex-end; margin-top: -4px; }
.pl-sys { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--pl-teal-dark); margin: 6px 0; text-align: center; }
.pl-sys::before, .pl-sys::after { content: ""; flex: 1; height: 1px; background: var(--pl-teal-edge); }

/* open-widget header variant */
.pl-chat__head--lg { padding: 14px 16px; background: var(--pl-teal-dark); border-bottom: 0; }
.pl-chat__head--lg .pl-chat__name { color: #fff; font-size: 1rem; }
.pl-chat__head--lg .pl-chat__status { color: var(--pl-teal-light); display: inline-flex; align-items: center; gap: 6px; }
.pl-chat__head--lg .pl-tag { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.pl-chat__avatar--brand { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--pl-teal-dark); font-family: var(--font-heading); font-weight: 800; font-size: 1.0625rem; }
.pl-online { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-teal-glow); }
.pl-chat__tools { display: flex; gap: 10px; color: var(--pl-teal-light); flex: none; }
.pl-chat__tools .pl-ico { width: 16px; height: 16px; }
.pl-compose { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 14px; padding: 6px 6px 6px 16px; border: 1px solid var(--pl-line-strong); border-radius: 999px; color: var(--pl-ink-3); font-size: 0.9375rem; }
.pl-compose__send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pl-teal-dark); color: #fff; flex: none; }
.pl-compose__send .pl-ico { width: 16px; height: 16px; stroke-width: 2; }
.pl-art--compact, .pl-station__art.pl-art--compact { max-width: 400px; }

/* quick-reply / flow buttons inside the widget */
.pl-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl-choice { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--pl-teal-edge); border-radius: 999px; background: #fff; color: var(--pl-teal-deep); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.pl-choice.is-picked { background: var(--pl-teal-dark); border-color: var(--pl-teal-dark); color: #fff; }

/* small key/value table inside a bot bubble (opening hours, contact profile) */
.pl-kv { margin: 8px 0 2px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.pl-kv dt { font-family: var(--font-heading); font-weight: 700; color: var(--pl-ink); }
.pl-kv dd { margin: 0; color: var(--pl-ink-2); }

/* chat form inside the widget (lead form) */
.pl-cform { margin-top: 10px; display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--pl-line-strong); border-radius: 12px; }
.pl-cform__title { font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; color: var(--pl-ink); }
.pl-cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-cform__f { display: grid; gap: 3px; min-width: 0; }
.pl-cform__l { font-size: 0.75rem; font-weight: 600; color: var(--pl-ink-3); }
.pl-cform__v { padding: 6px 10px; border: 1px solid var(--pl-line-strong); border-radius: 8px; background: #fff; font-size: 0.875rem; color: var(--pl-ink); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-cform__v--area { white-space: normal; }
.pl-cform__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.75rem; line-height: 1.4; color: var(--pl-ink-3); }
.pl-cform__box { flex: none; display: grid; place-items: center; width: 15px; height: 15px; margin-top: 1px; border-radius: 6px; background: var(--pl-teal-dark); color: #fff; }
.pl-cform__box .pl-ico { width: 11px; height: 11px; stroke-width: 2.5; }
.pl-cform__send { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; background: var(--pl-teal-dark); color: #fff; font-weight: 700; font-size: 0.8125rem; }

/* ---------- Word-by-word reveal (js/pipeline.js) ----------
   Words stay in the HTML. JS hides later turns and fades them in.
   A bot turn shows typing dots first, never an empty bubble. */
.pl-w { transition: opacity 0.28s var(--pl-ease); }
.pl-w.is-hidden { opacity: 0; }
.pl-pending { opacity: 0; visibility: hidden; transition: opacity 0.35s var(--pl-ease), visibility 0s linear 0.35s; }
.pl-pending.is-shown { opacity: 1; visibility: visible; transition: opacity 0.35s var(--pl-ease); }
.pl-pending.is-typing { opacity: 1; visibility: visible; background: transparent; border-color: transparent; transition: none; }
.pl-pending.is-typing > * { visibility: hidden; }
.pl-pending.is-typing::before { content: ""; position: absolute; left: 0; top: 0; width: 60px; height: 38px; border-radius: 16px 16px 16px 5px; background: var(--pl-bubble-in); visibility: visible; }
.pl-pending.is-typing::after { content: ""; position: absolute; left: 15px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-ink-4); box-shadow: 13px 0 0 var(--pl-ink-4), 26px 0 0 var(--pl-ink-4); animation: pl-typing 0.9s ease-in-out 5; visibility: visible; }
@keyframes pl-typing { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media print {
  .pl-w.is-hidden, .pl-pending, .pl-pending > * { opacity: 1 !important; visibility: visible !important; transition: none !important; }
  .pl-pending.is-typing::before, .pl-pending.is-typing::after { content: none; }
}

/* ---------- "Das Wichtigste in Kürze" (dl band) ---------- */
.pl-summary { background: var(--pl-ground-2); border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); padding: clamp(64px, 8vw, 104px) 0; }
.pl-summary__grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pl-summary h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.15; }
.pl-summary__stand { margin-top: 12px; font-size: 0.875rem; color: var(--pl-ink-3); }
.pl-summary__intro { margin-top: 20px; font-size: 1rem; color: var(--pl-ink-3); max-width: 34ch; }
.pl-facts { margin: 0; }
.pl-facts__row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--pl-line-strong); }
.pl-facts__row:last-child { border-bottom: 1px solid var(--pl-line-strong); }
.pl-facts dt { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; line-height: 1.45; color: var(--pl-ink); }
.pl-facts dd { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--pl-ink-2); max-width: 62ch; }
.pl-facts a { color: var(--pl-teal-dark); text-decoration: underline; font-weight: 600; }
@media (min-width: 961px) { .pl-summary__head { position: sticky; top: calc(var(--nav-height) + 32px); } }

/* ---------- The path ---------- */
.pl-pathwrap { padding: var(--pl-gap-section) 0; }
.pl-path { position: relative; --fill: 1; }
.pl-path__line { position: absolute; top: 10px; bottom: 0; left: calc(50% - 1.5px); width: 3px; border-radius: 3px; background: var(--pl-teal-light); overflow: hidden; }
.pl-path__fill { position: absolute; inset: 0; background: var(--pl-teal); transform-origin: top center; transform: scaleY(var(--fill)); }
.pl-pin { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 0 calc(50% - 10px); font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem; color: var(--pl-ink); }
.pl-pin__dot { width: 20px; height: 20px; flex: none; border-radius: 50%; background: #fff; border: 3px solid var(--pl-teal); }
.pl-pin__url { font-family: var(--font-body); font-weight: 500; color: var(--pl-ink-3); border: 1px solid var(--pl-line-strong); border-radius: 999px; padding: 5px 12px; background: #fff; font-size: 0.875rem; line-height: 1.3; }

.pl-stations { list-style: none; margin: 0; padding: clamp(72px, 8vw, 112px) 0; display: flex; flex-direction: column; gap: clamp(96px, 11vw, 152px); }
.pl-station { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); align-items: start; }
.pl-node {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums;
  background: var(--pl-teal-dark); color: #fff; border: 3px solid var(--pl-teal-dark);
  transition: background 0.45s var(--pl-ease), color 0.45s var(--pl-ease), border-color 0.45s var(--pl-ease);
}
.pl-pathwrap.is-live .pl-node { background: #fff; color: var(--pl-teal-dark); border-color: var(--pl-teal-light); }
.pl-pathwrap.is-live .pl-node.is-reached { background: var(--pl-teal-dark); color: #fff; border-color: var(--pl-teal-dark); }

.pl-station__text { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 470px; padding-top: 4px; }
.pl-station__art { grid-column: 3; grid-row: 1; justify-self: start; width: 100%; max-width: 470px; margin: 0; }
.pl-station:nth-child(even) .pl-station__text { grid-column: 3; justify-self: start; }
.pl-station:nth-child(even) .pl-station__art { grid-column: 1; justify-self: end; }
.pl-station h2 { font-size: clamp(1.625rem, 2.5vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.14; }
.pl-station__text p { margin-top: 16px; font-size: 1.0625rem; line-height: 1.7; color: var(--pl-ink-2); }
.pl-station__text p + p { margin-top: 12px; }
.pl-station__text a { color: var(--pl-teal-dark); font-weight: 600; text-decoration: underline; }

/* Plan pill: states the package gate under a station heading */
.pl-plan { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.8125rem; font-weight: 700; color: var(--pl-teal-deep); background: var(--pl-teal-50); border: 1px solid var(--pl-teal-edge); border-radius: 999px; padding: 4px 12px; }
.pl-plan .pl-ico { width: 15px; height: 15px; }
.pl-plan--quiet { color: var(--pl-ink-3); background: #fff; border-color: var(--pl-line-strong); }

/* Station spec list */
.pl-spec { margin: 24px 0 0; }
.pl-spec div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--pl-line); }
.pl-spec div:last-child { border-bottom: 1px solid var(--pl-line); }
.pl-spec dt { font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; color: var(--pl-ink); padding-top: 1px; }
.pl-spec dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--pl-ink-2); }

/* Path end at a form */
.pl-pathend { display: flex; flex-direction: column; align-items: center; }
.pl-node--end { width: 48px; height: 48px; }
.pl-node--end .pl-ico { width: 20px; height: 20px; stroke-width: 2; }
.pl-try--compact { margin-top: 16px; width: 100%; max-width: 560px; }
.pl-try--compact .pl-try__label { text-align: center; font-size: 1rem; margin-bottom: 10px; }
.pl-try--compact .pl-try__input { height: 50px; }
.pl-try--compact .pl-try__btn { min-height: 50px; }

/* ---------- Artefact: read log (pages, documents) ---------- */
.pl-log { background: #fff; border: 1px solid var(--pl-line); border-radius: 18px; box-shadow: var(--pl-lift); overflow: hidden; }
.pl-log__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--pl-ground-2); border-bottom: 1px solid var(--pl-line); }
.pl-log__site { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--pl-ink); min-width: 0; }
.pl-log__site .pl-ico { color: var(--pl-teal-dark); }
.pl-log__list { list-style: none; margin: 0; padding: 6px 16px 4px; }
.pl-log__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--pl-line); font-size: 0.9375rem; color: var(--pl-ink); font-variant-numeric: tabular-nums; }
.pl-log__list li:last-child { border-bottom: 0; }
.pl-log__k { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.pl-log__k .pl-ico { color: var(--pl-ink-4); }
.pl-log__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--pl-teal-dark); flex: none; }
.pl-log__ok .pl-ico { width: 16px; height: 16px; stroke-width: 2.25; }
.pl-log__count { font-family: var(--font-heading); font-weight: 800; color: var(--pl-ink); }
.pl-log__foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--pl-teal-50); border-top: 1px solid var(--pl-teal-edge); font-size: 0.875rem; font-weight: 600; color: var(--pl-teal-deep); }
.pl-log__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pl-teal); flex: none; }

/* ---------- Artefact: admin (team inbox, requests) ---------- */
.pl-admin { display: grid; grid-template-columns: 44px minmax(0, 1fr); background: #fff; border: 1px solid var(--pl-line-strong); border-radius: 12px; box-shadow: var(--pl-lift); overflow: hidden; font-size: 0.875rem; line-height: 1.5; }
.pl-admin__rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; background: var(--pl-night); }
.pl-admin__rail span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--pl-line-hover); }
.pl-admin__rail span.is-on { background: var(--pl-teal-dark); color: #fff; }
.pl-admin__rail .pl-ico { width: 17px; height: 17px; }
.pl-admin__main { min-width: 0; }
.pl-admin__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--pl-line); }
.pl-admin__title { font-family: var(--font-heading); font-weight: 800; font-size: 0.9375rem; color: var(--pl-ink); }
.pl-admin__tabs { display: flex; gap: 4px; }
.pl-admin__tabs span { padding: 3px 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; color: var(--pl-ink-3); white-space: nowrap; }
.pl-admin__tabs span.is-on { background: var(--pl-bubble-in); color: var(--pl-ink); }
.pl-admin__row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--pl-teal-50); border-bottom: 1px solid var(--pl-line); }
.pl-admin__row--plain { background: #fff; }
.pl-admin__dot { width: 8px; height: 8px; border-radius: 50%; background: #d97706; flex: none; }
.pl-admin__dot--new { background: var(--pl-teal); }
.pl-admin__dot--done { background: var(--pl-line-strong); }
.pl-admin__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pl-admin__who { font-weight: 700; font-size: 0.8125rem; color: var(--pl-ink); }
.pl-admin__time { font-variant-numeric: tabular-nums; }
.pl-admin__snip { font-size: 0.8125rem; color: var(--pl-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-admin__take { flex: none; padding: 7px 12px; border-radius: 8px; background: var(--pl-teal-dark); color: #fff; font-weight: 700; font-size: 0.8125rem; }
.pl-admin__thread { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--pl-ground-2); }
.pl-amsg { margin: 0; max-width: 92%; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--pl-line); color: var(--pl-ink); }
.pl-amsg--bot { align-self: flex-end; background: var(--pl-bubble-in); }
.pl-amsg__from { display: block; font-size: 0.75rem; font-weight: 700; color: var(--pl-ink-3); }
.pl-admin__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--pl-line); }
.pl-admin__qlabel { width: 100%; font-size: 0.75rem; font-weight: 700; color: var(--pl-ink-3); }
.pl-chip { padding: 5px 11px; border: 1px solid var(--pl-teal-edge); border-radius: 999px; background: var(--pl-teal-50); color: var(--pl-teal-deep); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.pl-admin__fields { margin: 0; padding: 12px 14px 14px; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 6px 12px; background: var(--pl-ground-2); font-size: 0.8125rem; }
.pl-admin__fields dt { font-weight: 700; color: var(--pl-ink-3); }
.pl-admin__fields dd { margin: 0; color: var(--pl-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pl-art--layered .pl-admin__quick, .pl-art--layered .pl-admin__fields { padding-bottom: 44px; }
.pl-chat--visitor { position: relative; z-index: 1; width: 84%; margin: -30px 0 0 auto; }
.pl-chat--visitor .pl-chat__body { padding: 12px 14px 16px; }

/* ---------- Artefact: one line of code ---------- */
.pl-code { background: var(--pl-night); border-radius: 18px; box-shadow: var(--pl-lift); overflow: hidden; }
.pl-code__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #1e293b; color: var(--pl-line-strong); font-size: 0.8125rem; }
.pl-code__head .pl-tag { background: transparent; color: var(--pl-line-strong); border-color: #334155; }
.pl-code pre { margin: 0; padding: 20px 18px 22px; font: 0.875rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; color: var(--pl-line); white-space: pre-wrap; overflow-wrap: anywhere; }
.pl-code .t-tag { color: var(--pl-teal-light); }
.pl-code .t-attr { color: #93c5fd; }
.pl-code .t-val { color: #fde68a; }
.pl-code ::selection { background: var(--pl-teal-deep); color: #fff; }

/* ---------- Artefact: cards inside the chat (Enterprise) ---------- */
.pl-cards { display: flex; gap: 10px; margin: 12px -14px 0; padding: 2px 14px 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--pl-line-strong) transparent; }
.pl-cards::-webkit-scrollbar { height: 5px; }
.pl-cards::-webkit-scrollbar-track { background: transparent; }
.pl-cards::-webkit-scrollbar-thumb { background: var(--pl-line-strong); border-radius: 3px; }
.pl-card { flex: 0 0 calc((100% - 20px) / 3); min-width: 118px; max-width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pl-line-strong); border-radius: 12px; padding: 8px 8px 10px; color: var(--pl-ink); }
.pl-card__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; margin-bottom: 8px; background: var(--pl-ground-2); border: 1px solid var(--pl-line); color: var(--pl-teal-dark); }
.pl-card__thumb .pl-ico { width: 26px; height: 26px; stroke-width: 1.5; }
.pl-card__name { font-size: 0.84375rem; font-weight: 700; line-height: 1.3; min-height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-card__reason { font-size: 0.75rem; line-height: 1.35; color: var(--pl-ink-3); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pl-card__price { font-size: 0.84375rem; font-weight: 700; color: var(--pl-teal-dark); margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.pl-card__cta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; color: var(--pl-teal-dark); margin-top: 4px; }
.pl-card__cta .pl-ico { width: 13px; height: 13px; stroke-width: 2; }
.pl-cards__hint { display: none; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--pl-ink-3); }
.pl-cards__hint .pl-ico { width: 14px; height: 14px; }

/* ---------- Plans: comparison table ---------- */
.pl-plans { background: var(--pl-ground-2); border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); padding: var(--pl-gap-section) 0; }
.pl-plans__head { max-width: 720px; }
.pl-plans h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.028em; line-height: 1.12; }
.pl-plans__lede { margin-top: 16px; font-size: 1.0625rem; color: var(--pl-ink-3); max-width: 60ch; }
.pl-plans__legend { display: none; }
/* No overflow on the wrapper: an overflow ancestor would break the sticky head. */
.pl-tablewrap { margin-top: 48px; }
.pl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.pl-table th, .pl-table td { padding: 14px 16px; border-bottom: 1px solid var(--pl-line-strong); vertical-align: middle; }
/* Sticky plan header: stays under the fixed navbar while the rows scroll. */
.pl-table thead th { position: sticky; top: var(--nav-height); z-index: 2; background: var(--pl-ground-2); border-bottom: 2px solid var(--pl-ink); text-align: left; vertical-align: bottom; padding-top: 16px; }
.pl-table thead th:first-child { width: 46%; }
.pl-plan-name { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; color: var(--pl-ink); }
.pl-plan-price { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem; color: var(--pl-teal-dark); font-variant-numeric: tabular-nums; margin-top: 2px; }
.pl-plan-price small { font-weight: 600; font-size: 0.8125rem; color: var(--pl-ink-3); }
.pl-table tbody th { text-align: left; font-weight: 500; color: var(--pl-ink); }
.pl-table td { color: var(--pl-ink-2); font-variant-numeric: tabular-nums; }
.pl-yes { color: var(--pl-teal-dark); display: inline-flex; }
.pl-yes .pl-ico { width: 20px; height: 20px; stroke-width: 2.25; }
.pl-no { display: inline-block; width: 14px; height: 2px; background: var(--pl-line-hover); border-radius: 2px; vertical-align: middle; }
.pl-table tbody tr:hover th, .pl-table tbody tr:hover td { background: rgb(255 255 255 / 0.7); }
.pl-plans__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.pl-plans__terms { margin: 0; font-size: 0.9375rem; color: var(--pl-ink-3); max-width: 60ch; }
.pl-plans__links { display: flex; gap: 20px; flex-wrap: wrap; }
.pl-plans__links a { color: var(--pl-teal-dark); font-weight: 700; text-decoration: underline; }
.pl-plans__links a:hover { color: var(--pl-teal-deep); }

/* ---------- FAQ: divider list (restyle of the shared accordion) ---------- */
.pl-faq { padding: var(--pl-gap-section) 0; }
.pl-faq__grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pl-faq h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.028em; line-height: 1.12; }
.pl-faq__aside { position: sticky; top: calc(var(--nav-height) + 32px); }
.pl-faq__more { margin-top: 16px; font-size: 1rem; color: var(--pl-ink-3); max-width: 34ch; }
.pl-faq__more a { color: var(--pl-teal-dark); font-weight: 600; text-decoration: underline; }
.pl-faq .faq-list { display: block; max-width: none; margin: 0; border-bottom: 1px solid var(--pl-line-strong); }
.pl-faq .faq-item { border: 0; border-top: 1px solid var(--pl-line-strong); border-radius: 0; overflow: visible; padding-bottom: 4px; }
.pl-faq .faq-item.open { border-color: var(--pl-line-strong); }
.pl-faq .faq-item h3 { margin: 0; font-size: inherit; }
.pl-faq .faq-item__question { padding: 22px 0 18px; gap: 24px; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--pl-ink); border-radius: 0; cursor: default; }
.pl-faq .faq-item__icon { display: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--pl-line-strong); transition: transform 0.35s var(--pl-ease), border-color 0.2s, background 0.2s; }
.pl-faq .faq-item__icon::before, .pl-faq .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.75px; margin: -0.875px 0 0 -5.5px; background: var(--pl-ink); border-radius: 2px; }
.pl-faq .faq-item__icon::after { transform: rotate(90deg); }
/* Without JS every answer is open and readable. */
.pl-faq .faq-item__answer, .pl-faq .faq-item.open .faq-item__answer { display: grid; grid-template-rows: 1fr; max-height: none; overflow: visible; visibility: visible; }
.pl-faq .faq-item__answer-inner { min-height: 0; overflow: hidden; padding: 0; }
.pl-faq .faq-item__answer-inner p { margin: 0; padding: 0 52px 20px 0; font-size: 1rem; line-height: 1.7; color: var(--pl-ink-2); max-width: 60ch; }
.pl-faq .faq-item__answer-inner a { color: var(--pl-teal-dark); font-weight: 600; text-decoration: underline; }
/* With JS: accordion, one open at a time. */
.pl-js .pl-faq .faq-item__question { cursor: pointer; }
.pl-js .pl-faq .faq-item__question:hover { color: var(--pl-teal-dark); }
.pl-js .pl-faq .faq-item.open .faq-item__question { color: var(--pl-ink); }
.pl-js .pl-faq .faq-item__icon { display: block; flex: none; }
.pl-js .pl-faq .faq-item__question:hover .faq-item__icon { border-color: var(--pl-teal-dark); }
.pl-js .pl-faq .faq-item.open .faq-item__icon { transform: rotate(45deg); background: var(--pl-teal-dark); border-color: var(--pl-teal-dark); }
.pl-js .pl-faq .faq-item.open .faq-item__icon::before, .pl-js .pl-faq .faq-item.open .faq-item__icon::after { background: #fff; }
.pl-js .pl-faq .faq-item__answer { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.4s var(--pl-ease), visibility 0s linear 0.4s; }
.pl-js .pl-faq .faq-item.open .faq-item__answer { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.5s var(--pl-ease), visibility 0s; }
@media print { .pl-js .pl-faq .faq-item__answer { grid-template-rows: 1fr; visibility: visible; } }

/* ---------- Close band ---------- */
.pl-close { background: var(--pl-teal-dark); color: #fff; padding: clamp(80px, 10vw, 128px) 0; }
.pl-close__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.pl-close .pl-try { margin-left: auto; margin-right: auto; text-align: left; }
.pl-close .pl-try__meta { justify-content: center; text-align: center; color: var(--pl-teal-light); }
.pl-close h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.pl-close__lede { margin-top: 16px; font-size: 1.125rem; color: var(--pl-teal-light); }
.pl-close .pl-try__label { color: #fff; }
.pl-close .pl-try__input { border-color: transparent; }
.pl-close .pl-try__input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25); }
.pl-close .pl-try__btn { background: #fff; color: var(--pl-teal-deep); }
.pl-close .pl-try__btn:hover { background: var(--pl-teal-light); box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.4); }
.pl-close .pl-try__facts span + span::before { color: var(--pl-teal-glow); }
.pl-close .pl-try__alt { color: #fff; }
.pl-close .pl-try__alt:hover { color: var(--pl-teal-light); }
.pl-close :focus-visible { outline-color: #fff; }
.pl-close ::selection { background: #fff; color: var(--pl-teal-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pl-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-hero__chat { justify-self: start; }
  .pl-summary__grid, .pl-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-summary__intro, .pl-faq__more { max-width: 60ch; }
  .pl-faq__aside { position: static; }

  .pl-path__line { left: 13.5px; }
  .pl-pathend { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .pl-node--end { width: 30px; height: 30px; }
  .pl-node--end .pl-ico { width: 15px; height: 15px; }
  .pl-try--compact { margin-top: 0; max-width: 520px; }
  .pl-try--compact .pl-try__label { text-align: left; padding-top: 4px; }
  .pl-pin { margin-left: 5px; }
  .pl-station { grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; }
  .pl-node { grid-column: 1; width: 30px; height: 30px; font-size: 0.875rem; border-width: 2px; }
  .pl-station__text, .pl-station:nth-child(even) .pl-station__text { grid-column: 2; grid-row: 1; justify-self: stretch; max-width: 600px; padding-top: 0; }
  .pl-station__art, .pl-station:nth-child(even) .pl-station__art { grid-column: 2; grid-row: 2; justify-self: stretch; max-width: 520px; margin-top: 28px; }
}

@media (max-width: 640px) {
  .pl-try__row { flex-direction: column; }
  .pl-try__btn { justify-content: center; }
  .pl-try__facts { flex-direction: column; }
  .pl-try__facts span + span::before { content: none; }
  .pl-facts__row { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .pl-station__text p { font-size: 1rem; }
  .pl-cards__hint { display: flex; }
  .pl-spec div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pl-cform__row { grid-template-columns: minmax(0, 1fr); }
  .pl-tablewrap { margin-top: 32px; }
  .pl-table, .pl-table thead, .pl-table tbody { display: block; }
  /* Compact sticky legend: the three plan columns stay visible above the stacked rows. */
  .pl-table thead { position: sticky; top: var(--nav-height); z-index: 2; background: var(--pl-ground-2); border-bottom: 2px solid var(--pl-ink); }
  .pl-table thead tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; padding: 10px 0 8px; }
  .pl-table thead th { position: static; padding: 0; border: 0; background: none; }
  .pl-table thead th:first-child { display: none; }
  .pl-table .pl-plan-name { font-size: 0.9375rem; }
  .pl-table .pl-plan-price { font-size: 0.8125rem; margin-top: 0; }
  .pl-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--pl-line-strong); }
  .pl-table tbody th { grid-column: 1 / -1; padding: 0 0 8px; border: 0; font-size: 0.9375rem; font-weight: 600; }
  .pl-table td { display: flex; align-items: center; min-height: 22px; padding: 0; border: 0; font-size: 0.9375rem; }
  .pl-table tbody tr:hover th, .pl-table tbody tr:hover td { background: none; }
  .pl-chat--visitor { width: 92%; margin-top: -30px; }
  .pl-admin { grid-template-columns: 36px minmax(0, 1fr); }
  .pl-admin__rail span { width: 28px; height: 28px; }
  .pl-admin__bar { flex-wrap: wrap; row-gap: 6px; padding: 10px 12px; }
  .pl-admin__bar .pl-tag { margin-left: 0; }
  .pl-admin__row { flex-wrap: wrap; padding: 12px; }
  .pl-admin__meta { flex: 1 1 calc(100% - 20px); }
  .pl-admin__take { margin-left: 18px; }
  .pl-admin__thread, .pl-admin__quick { padding-left: 12px; padding-right: 12px; }
  .pl-admin__fields { grid-template-columns: minmax(0, 1fr); gap: 0 12px; padding-left: 12px; padding-right: 12px; }
  .pl-admin__fields dd { margin-bottom: 6px; }
  .pl-faq .faq-item__answer-inner p { padding-right: 0; }
  .pl-faq .faq-item__question { font-size: 1rem; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-pending.is-typing::after { animation: none; }
  .pl-w, .pl-pending, .pl-node, .pl-try__btn, .pl-try__btn .pl-ico, .pl-faq .faq-item__icon, .pl-faq .faq-item__answer { transition: none !important; }
}
