/* ============================================================
   Kubrik — shared styles for the product pages (landing + detail)
   (see tools/pages/pages.json)
   Layered on top of ../styles.css. Uses the site tokens
   (--color-pos, --text-heading, --mono…) and adds a few of its own.
   ============================================================ */

:root {
  --pos: var(--color-pos);
  --pos-deep: #0a4f62;
  --pos-soft: rgba(14, 116, 144, 0.08);
  --pos-line: rgba(14, 116, 144, 0.22);
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --bad: #b91c1c;
  --bad-soft: rgba(185, 28, 28, 0.09);
  --ink: #0f1d2a;          /* device screens */
  --paper: #fffdf7;        /* printed ticket */
}

/* ---------- layout primitives ---------- */
.pd-section { padding-block: 88px; }
.pd-section--alt { background: #fff; border-block: 1px solid var(--border); }
.pd-section--ink { background: var(--ink); color: #d7e3ea; }
.pd-head { max-width: 760px; margin-bottom: 44px; }
.pd-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pos); margin-bottom: 12px;
}
.pd-section--ink .pd-eyebrow { color: #67d4ea; }
.pd-title {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: var(--tracking-tight);
  color: var(--text-heading); font-weight: 700; text-wrap: balance; margin-bottom: 14px;
}
.pd-section--ink .pd-title { color: #fff; }
.pd-sub { font-size: 17px; line-height: 1.7; color: var(--text-body); max-width: 68ch; }
.pd-section--ink .pd-sub { color: #b8c9d3; }
.pd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pd-grid-2 > * { min-width: 0; }
.pd-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; line-height: 1.6; }
.pd-section--ink .pd-note { color: #8aa3b1; }
code, .pd-mono { font-family: var(--mono); font-size: 0.92em; }

/* ---------- hero ---------- */
.pd-hero {
  position: relative; padding: 92px 0 72px; overflow: hidden;
  background:
    radial-gradient(ellipse 1100px 460px at 8% -18%, rgba(14,116,144,0.13), transparent 60%),
    radial-gradient(ellipse 800px 340px at 100% 115%, rgba(14,116,144,0.08), transparent 60%);
}
.pd-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pd-hero__grid > * { min-width: 0; }
.pd-crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.pd-crumbs a { color: var(--text-muted); }
.pd-crumbs a:hover { color: var(--pos); }
.pd-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--pos-soft); color: var(--pos);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.pd-chip .material-icons-outlined { font-size: 16px; }
.pd-hero h1 {
  font-size: clamp(36px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em;
  color: var(--text-heading); font-weight: 700; text-wrap: balance; margin-bottom: 20px;
}
.pd-hero h1 strong { color: var(--pos); font-weight: 700; }
.pd-hero__lead { font-size: 18px; line-height: 1.7; color: var(--text-body); max-width: 60ch; margin-bottom: 28px; }
.pd-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 13px 24px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; transition: all var(--transition-base);
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--font); background: none;
}
.pd-btn .material-icons-outlined { font-size: 18px; }
.pd-btn--primary { background: var(--pos); color: #fff; }
.pd-btn--primary:hover { background: var(--pos-deep); transform: translateY(-1px); }
.pd-btn--ghost { border-color: var(--border); color: var(--text-heading); background: #fff; }
.pd-btn--ghost:hover { border-color: var(--pos); color: var(--pos); }
.pd-btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* ---------- facts strip ---------- */
.pd-facts { border-block: 1px solid var(--border); background: #fff; }
.pd-facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pd-fact { padding: 26px 22px; border-left: 1px solid var(--border); }
.pd-fact:first-child { border-left: 0; }
.pd-fact__big { font-size: 22px; font-weight: 700; color: var(--pos); letter-spacing: -0.01em; margin-bottom: 4px; }
.pd-fact__txt { font-size: 13.5px; color: var(--text-body); line-height: 1.5; }

/* ---------- cards ---------- */
.pd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-cards--2 { grid-template-columns: repeat(2, 1fr); }
.pd-cards--4 { grid-template-columns: repeat(4, 1fr); }
.pd-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.pd-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--pos-soft); color: var(--pos);
  display: grid; place-items: center;
}
.pd-card__icon .material-icons-outlined { font-size: 22px; }
.pd-card h3 { font-size: 17px; color: var(--text-heading); font-weight: 700; line-height: 1.3; }
.pd-card p { font-size: 14.5px; color: var(--text-body); line-height: 1.65; }
.pd-card ul { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.pd-card li { font-size: 14px; color: var(--text-body); line-height: 1.55; padding-left: 18px; position: relative; }
.pd-card li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--pos);
}
.pd-card--warn { border-color: rgba(180, 83, 9, 0.3); background: #fffbf3; }
.pd-card--warn .pd-card__icon { background: var(--warn-soft); color: var(--warn); }

/* ---------- integration spotlight (main page) ---------- */
.pd-integ { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pd-integ__card {
  border-radius: 18px; padding: 30px; color: #e6f3f7; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0a4f62 0%, #0E7490 70%, #1590ad 100%);
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.pd-integ__card--mp { background: linear-gradient(160deg, #0f2a44 0%, #164a73 65%, #1d6aa0 100%); }
.pd-integ__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9fe6f5; }
.pd-integ__card--mp .pd-integ__tag { color: #a9d4ff; }
.pd-integ__card h3 { font-size: 26px; line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.pd-integ__card p { font-size: 15px; line-height: 1.65; color: #cfe3ea; }
.pd-integ__card ul { display: grid; gap: 8px; }
.pd-integ__card li { font-size: 14px; line-height: 1.5; display: flex; gap: 8px; color: #e6f3f7; }
.pd-integ__card li .material-icons-outlined { font-size: 18px; color: #7ee0c3; flex: none; }
.pd-integ__link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--pos-deep); padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 14px;
}
.pd-integ__card--mp .pd-integ__link { color: #164a73; }
.pd-integ__link:hover { transform: translateY(-1px); }

/* ---------- catalog (main page) ---------- */
.pd-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pd-filter button {
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--text-body);
  background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: 100px; cursor: pointer;
  transition: all var(--transition-fast);
}
.pd-filter button:hover { border-color: var(--pos); color: var(--pos); }
.pd-filter button[aria-pressed="true"] { background: var(--pos); border-color: var(--pos); color: #fff; }
.pd-filter button:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.pd-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-catalog .pd-card[hidden] { display: none !important; }
.pd-soon { margin-top: 40px; border: 1.5px dashed var(--pos-line); border-radius: 16px; padding: 26px; background: #fff; }
.pd-soon h3 { font-size: 16px; color: var(--text-heading); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.pd-soon h3 .material-icons-outlined { color: var(--pos); font-size: 20px; }
.pd-soon p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.pd-soon__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-soon__chips span {
  font-size: 13px; color: var(--text-body); background: var(--bg); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px;
}

/* ============================================================
   Devices
   ============================================================ */

/* --- printed ticket (ARCA hero) --- */
.pd-ticket-wrap { display: flex; justify-content: center; }
.pd-ticket {
  width: min(340px, 100%); background: var(--paper); color: #26303a; font-family: var(--mono); font-size: 12px;
  line-height: 1.55; padding: 22px 22px 26px; border-radius: 4px; position: relative;
  box-shadow: 0 30px 60px rgba(15, 29, 42, 0.18), 0 6px 14px rgba(15, 29, 42, 0.08);
  transform: rotate(1.2deg);
}
.pd-ticket::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: radial-gradient(circle at 6px 0, transparent 6px, var(--paper) 6.5px) 0 0 / 12px 10px repeat-x;
}
.pd-ticket__center { text-align: center; }
.pd-ticket__big { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.pd-ticket hr { border: 0; border-top: 1px dashed #b9b2a2; margin: 10px 0; }
.pd-ticket__row { display: flex; justify-content: space-between; gap: 10px; }
.pd-ticket__row span:last-child { white-space: nowrap; }
.pd-ticket__line { opacity: 0; transform: translateY(-4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.pd-ticket__line.is-on { opacity: 1; transform: none; }
.pd-ticket__auth {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin-top: 6px; min-height: 92px;
}
.pd-ticket__qr {
  width: 92px; height: 92px; display: grid; place-items: center; border: 1px dashed #c9c1b0; border-radius: 4px;
  color: #9a917f; font-size: 10px; text-align: center; overflow: hidden;
}
.pd-ticket__qr svg { width: 100%; height: 100%; display: block; }
.pd-ticket__qr.is-drawn { border-color: transparent; }
.pd-ticket__status { font-size: 11.5px; }
.pd-ticket__status b { display: block; font-size: 12.5px; color: #111; }
.pd-spin {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: pd-spin 0.8s linear infinite; vertical-align: -1px; margin-right: 6px;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

/* --- till screen --- */
.pd-till {
  background: #e9eef2; border-radius: 18px; padding: 12px; box-shadow: 0 24px 54px rgba(15, 29, 42, 0.16);
}
.pd-till__screen { background: #fff; border-radius: 10px; overflow: hidden; font-size: 13px; }
.pd-till__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--ink); color: #cfe0ea; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
}
.pd-light { display: inline-flex; align-items: center; gap: 6px; }
.pd-light::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.pd-light--down::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.22); }
.pd-light--warn::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.24); }
.pd-banner {
  margin: 12px 14px 0; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.45;
  border: 1px solid transparent; display: flex; gap: 8px; align-items: flex-start;
}
.pd-banner .material-icons-outlined { font-size: 18px; flex: none; }
.pd-banner--warn { background: var(--warn-soft); border-color: rgba(180, 83, 9, 0.25); color: #7a3b05; }
.pd-banner--ok { background: var(--ok-soft); border-color: rgba(21, 128, 61, 0.22); color: #14532d; }
.pd-till__body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.pd-till__row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 10px;
  border-radius: 8px; background: var(--bg); font-family: var(--mono); font-size: 12px; color: #1f2a33;
}
.pd-till__row small { display: block; font-family: var(--font); font-size: 11px; color: var(--text-muted); }
.pd-tag {
  font-family: var(--font); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px; white-space: nowrap;
}
.pd-tag--ok { background: var(--ok-soft); color: var(--ok); }
.pd-tag--warn { background: var(--warn-soft); color: var(--warn); }
.pd-tag--bad { background: var(--bad-soft); color: var(--bad); }
.pd-tag--info { background: var(--pos-soft); color: var(--pos); }
.pd-till__row.is-new { animation: pd-pop 0.45s var(--ease-out); }
@keyframes pd-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --- Mercado Pago Point style terminal (generic handheld) --- */
.pd-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.pd-pair .pd-till__row { font-size: 11.5px; padding: 7px 9px; }
.pd-pair .pd-till__row > span { white-space: nowrap; }
.pd-pair > * { min-width: 0; }
.pd-handheld {
  width: min(210px, 100%); margin-inline: auto; background: #1b2530; border-radius: 26px; padding: 14px 12px 18px;
  box-shadow: 0 24px 50px rgba(15, 29, 42, 0.28);
}
.pd-handheld__screen {
  background: #f7fafc; border-radius: 12px; min-height: 196px; padding: 14px 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 8px; color: #10202c;
}
.pd-handheld__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pd-handheld__amt { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pd-handheld__msg { font-size: 12.5px; line-height: 1.45; }
.pd-handheld__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.pd-handheld__keys span { height: 16px; border-radius: 5px; background: #2b3946; }
.pd-handheld__icon { font-size: 36px !important; color: var(--pos); }
.pd-handheld__icon--ok { color: var(--ok); }
.pd-handheld__icon--bad { color: var(--bad); }

/* --- QR on screen --- */
.pd-qr-box {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center;
  display: grid; gap: 10px; justify-items: center;
}
.pd-qr-box__code { width: min(180px, 100%); aspect-ratio: 1; max-width: 100%; }
.pd-qr-box__code svg { width: 100%; height: 100%; display: block; }
.pd-qr-box__amt { font-size: 22px; font-weight: 700; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.pd-qr-box__timer { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); }
.pd-wallets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pd-wallets span { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border); }

/* ============================================================
   Stepper: an auto-playing walkthrough with a log
   ============================================================ */
.pd-stepper { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: start; }
.pd-stepper > * { min-width: 0; }
.pd-steps { display: grid; gap: 6px; counter-reset: pdstep; }
.pd-step {
  text-align: left; width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; font-family: var(--font);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.pd-step:hover { background: #fff; border-color: var(--border); }
.pd-step:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.pd-step__n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono);
  font-size: 13px; font-weight: 600; color: var(--pos); background: var(--pos-soft); transition: all var(--transition-base);
}
.pd-step__t { font-size: 15.5px; font-weight: 700; color: var(--text-heading); line-height: 1.35; display: block; }
.pd-step__d { font-size: 14px; line-height: 1.6; color: var(--text-body); display: block; margin-top: 4px; }
.pd-step.is-active { background: #fff; border-color: var(--pos-line); box-shadow: 0 8px 22px rgba(14,116,144,0.08); }
.pd-step.is-active .pd-step__n { background: var(--pos); color: #fff; }
.pd-step.is-done .pd-step__n { background: var(--ok-soft); color: var(--ok); }
.pd-section--alt .pd-step:hover, .pd-section--alt .pd-step.is-active { background: var(--bg); }

.pd-stage { position: sticky; top: 96px; display: grid; gap: 14px; }
.pd-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-controls button {
  font-family: var(--font); font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 12px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text-heading); display: inline-flex; gap: 6px; align-items: center;
}
.pd-controls button .material-icons-outlined { font-size: 18px; }
.pd-controls button:hover { border-color: var(--pos); color: var(--pos); }
.pd-controls button:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.pd-progress { flex: 1; min-width: 80px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.pd-progress span { display: block; height: 100%; width: 0; background: var(--pos); transition: width 0.3s ease; }

.pd-log {
  background: var(--ink); color: #c8d8e2; border-radius: 14px; padding: 16px 18px; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.75; min-height: 210px; overflow-x: auto;
}
.pd-log__head { display: flex; gap: 6px; margin-bottom: 10px; }
.pd-log__head i { width: 9px; height: 9px; border-radius: 50%; background: #2f4150; }
.pd-log__line { white-space: pre; opacity: 0.35; transition: opacity 0.3s ease; }
.pd-log__line.is-on { opacity: 1; }
.pd-log__line.is-current { color: #fff; }
.pd-log__line b { color: #67d4ea; font-weight: 500; }
.pd-log__line em { color: #86efac; font-style: normal; }
.pd-log__line s { color: #fca5a5; text-decoration: none; }

/* ============================================================
   Contingency simulator (ARCA)
   ============================================================ */
.pd-sim { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pd-sim > * { min-width: 0; }
.pd-sim__panel { background: #0b1823; border: 1px solid #1d3242; border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.pd-sim__status { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-sim__status strong { color: #fff; font-size: 15px; }
.pd-sim__meter { display: flex; gap: 6px; }
.pd-sim__meter i { width: 26px; height: 8px; border-radius: 4px; background: #24394a; transition: background 0.3s ease; }
.pd-sim__meter i.is-on { background: #ef4444; }
.pd-sim__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-sim__btns button {
  font-family: var(--font); font-weight: 600; font-size: 13.5px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid #2c4659; background: #12283a; color: #e2edf3; display: inline-flex; gap: 6px; align-items: center;
}
.pd-sim__btns button .material-icons-outlined { font-size: 18px; }
.pd-sim__btns button:hover:not(:disabled) { border-color: #67d4ea; }
.pd-sim__btns button:disabled { opacity: 0.45; cursor: not-allowed; }
.pd-sim__btns button:focus-visible { outline: 2px solid #67d4ea; outline-offset: 2px; }
.pd-sim__btns button.is-primary { background: #0E7490; border-color: #0E7490; color: #fff; }
.pd-timeline { display: grid; gap: 0; position: relative; padding-left: 22px; }
.pd-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #1f3546; }
.pd-tl { position: relative; padding: 8px 0 12px; font-size: 13.5px; line-height: 1.55; color: #9fb6c4; opacity: 0.45; transition: opacity 0.3s ease, color 0.3s ease; }
.pd-tl::before {
  content: ""; position: absolute; left: -21px; top: 13px; width: 12px; height: 12px; border-radius: 50%;
  background: #0b1823; border: 2px solid #2c4659; transition: all 0.3s ease;
}
.pd-tl b { color: #e2edf3; display: block; font-size: 14px; }
.pd-tl.is-on { opacity: 1; color: #b8c9d3; }
.pd-tl.is-on::before { background: #67d4ea; border-color: #67d4ea; }
.pd-tl.is-bad.is-on::before { background: #ef4444; border-color: #ef4444; }
.pd-tl.is-warn.is-on::before { background: #f59e0b; border-color: #f59e0b; }
.pd-tl.is-ok.is-on::before { background: #22c55e; border-color: #22c55e; }

/* ============================================================
   Letter resolver (A / B / C)
   ============================================================ */
.pd-picker { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 18px; align-items: stretch; }
.pd-picker > * { min-width: 0; }
.pd-picker fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; }
.pd-picker legend { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0 6px; }
.pd-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--text-heading); }
.pd-opt:hover { background: var(--bg); }
.pd-opt input { accent-color: var(--pos); width: 16px; height: 16px; }
.pd-letter {
  border-radius: 14px; background: var(--ink); color: #fff; padding: 18px; display: grid; place-items: center; text-align: center; gap: 6px;
}
.pd-letter__big { font-size: 84px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: #67d4ea; transition: transform 0.3s var(--ease-out); }
.pd-letter__big.is-flip { transform: rotateX(90deg); }
.pd-letter__name { font-size: 15px; font-weight: 700; }
.pd-letter__meta { font-family: var(--mono); font-size: 12px; color: #9fb6c4; }

/* ============================================================
   Setup steps / checklist
   ============================================================ */
.pd-setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: pdsetup; }
.pd-setup__item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: relative; min-width: 0; }
.pd-setup__item::before {
  counter-increment: pdsetup; content: counter(pdsetup, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--pos); font-weight: 600; display: block; margin-bottom: 10px;
}
.pd-setup__item h3 { font-size: 16px; color: var(--text-heading); margin-bottom: 8px; line-height: 1.35; }
.pd-setup__item p { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.pd-check { display: grid; gap: 10px; }
.pd-check__row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; transition: border-color 0.3s ease;
}
.pd-check__row > * { min-width: 0; }
.pd-check__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--text-muted); transition: all 0.3s ease; }
.pd-check__dot .material-icons-outlined { font-size: 18px; }
.pd-check__row.is-run .pd-check__dot { background: var(--pos-soft); color: var(--pos); }
.pd-check__row.is-ok { border-color: rgba(21,128,61,0.3); }
.pd-check__row.is-ok .pd-check__dot { background: var(--ok); color: #fff; }
.pd-check__t { font-size: 14.5px; font-weight: 700; color: var(--text-heading); }
.pd-check__s { font-family: var(--mono); font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }

/* ============================================================
   Tabs (variants)
   ============================================================ */
.pd-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-tabs button {
  font-family: var(--font); font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text-body);
}
.pd-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd-tabs button:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* ============================================================
   Converging channels (MP "no charge gets lost")
   ============================================================ */
.pd-converge { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: center; }
.pd-converge > * { min-width: 0; }
.pd-converge__src { display: grid; gap: 14px; }
.pd-converge__item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.pd-converge__item b { display: flex; gap: 8px; align-items: center; color: var(--text-heading); font-size: 14.5px; }
.pd-converge__item b .material-icons-outlined { font-size: 18px; color: var(--pos); }
.pd-converge__item span { font-size: 13.5px; color: var(--text-body); line-height: 1.55; display: block; margin-top: 4px; }
.pd-converge__wire { height: 100%; min-height: 220px; position: relative; }
.pd-converge__wire svg { width: 100%; height: 100%; display: block; }
.pd-flow-dash { stroke-dasharray: 6 8; animation: pd-dash 1.4s linear infinite; }
@keyframes pd-dash { to { stroke-dashoffset: -28; } }
.pd-converge__dst { background: var(--ink); color: #d7e3ea; border-radius: 14px; padding: 20px; display: grid; gap: 8px; }
.pd-converge__dst b { color: #fff; font-size: 16px; }
.pd-converge__dst span { font-size: 13.5px; line-height: 1.6; color: #b8c9d3; }

/* ============================================================
   Spec tables
   ============================================================ */
.pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pd-specs > * { min-width: 0; }
.pd-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-table caption { text-align: left; font-weight: 700; color: var(--text-heading); padding: 14px 16px 6px; font-size: 15px; }
.pd-table th, .pd-table td { text-align: left; padding: 10px 16px; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.pd-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.pd-table td:first-child { color: var(--text-heading); font-weight: 600; }
.pd-table td.pd-num, .pd-table td code { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.pd-codes { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.pd-codes > span { font-size: 13px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.pd-table-cap { font-weight: 700; color: var(--text-heading); padding: 14px 16px 0; font-size: 15px; }
.pd-codes code { color: var(--pos); font-weight: 600; margin-right: 4px; }

/* JSON / payload block */
.pd-code {
  background: var(--ink); color: #c8d8e2; border-radius: 12px; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.7; overflow-x: auto; white-space: pre;
}
.pd-code .k { color: #67d4ea; }
.pd-code .s { color: #86efac; }
.pd-code .n { color: #fcd34d; }

/* breakdown of the fiscal QR */
.pd-qrbuild { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: center; }
.pd-qrbuild > * { min-width: 0; }
.pd-qrbuild__arrow { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; margin: 12px 0; }
.pd-qrbuild__arrow .material-icons-outlined { color: var(--pos); }
.pd-qrbuild__url { font-family: var(--mono); font-size: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; color: var(--text-body); }
.pd-qrbuild__url b { color: var(--pos); }

/* final CTA */
.pd-cta { background: var(--ink); color: #d7e3ea; padding-block: 76px; text-align: center; }
.pd-cta h2 { font-size: clamp(26px, 3.6vw, 36px); color: #fff; letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance; }
.pd-cta p { font-size: 16.5px; line-height: 1.7; color: #b8c9d3; max-width: 62ch; margin: 0 auto 26px; }
.pd-cta .pd-btns { justify-content: center; }
.pd-cta .pd-btn--ghost { background: transparent; color: #fff; border-color: #36505f; }
.pd-cta .pd-btn--ghost:hover { border-color: #67d4ea; color: #67d4ea; }

/* hidden string bank read by the animations (translated by i18n.js) */
.pd-strings { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pd-hero__grid, .pd-grid-2, .pd-stepper, .pd-sim, .pd-specs, .pd-qrbuild, .pd-integ { grid-template-columns: 1fr; }
  .pd-cards, .pd-catalog, .pd-setup { grid-template-columns: 1fr 1fr; }
  .pd-cards--4 { grid-template-columns: 1fr 1fr; }
  .pd-picker { grid-template-columns: 1fr 1fr; }
  .pd-picker .pd-letter { grid-column: 1 / -1; }
  .pd-facts__grid { grid-template-columns: 1fr 1fr; }
  .pd-fact:nth-child(3) { border-left: 0; }
  .pd-fact:nth-child(n+3) { border-top: 1px solid var(--border); }
  .pd-stage { position: static; }
  .pd-converge { grid-template-columns: 1fr; gap: 14px; }
  .pd-converge__wire { display: none; }
}
@media (max-width: 640px) {
  .pd-section { padding-block: 64px; }
  .pd-hero { padding: 64px 0 52px; }
  .pd-cards, .pd-cards--2, .pd-cards--4, .pd-catalog, .pd-setup, .pd-picker { grid-template-columns: 1fr; }
  .pd-pair { grid-template-columns: 1fr; }
  .pd-facts__grid { grid-template-columns: 1fr; }
  .pd-fact { border-left: 0; border-top: 1px solid var(--border); }
  .pd-fact:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-spin, .pd-flow-dash { animation: none; }
  .pd-ticket__line, .pd-log__line, .pd-tl, .pd-check__row, .pd-letter__big { transition: none; }
  .pd-till__row.is-new { animation: none; }
}

/* elements toggled with the hidden attribute must stay hidden even when a class sets display */
main [hidden] { display: none !important; }

/* ============================================================
   Back-office tabs (main page): text + mock screen
   ============================================================ */
.pd-bo { align-items: start; }
.pd-bo__title { font-size: 22px; line-height: 1.25; color: var(--text-heading); letter-spacing: -0.01em; margin-bottom: 16px; text-wrap: balance; }
.pd-bo__list { display: grid; gap: 10px; }
.pd-bo__list li { font-size: 15px; line-height: 1.6; color: var(--text-body); padding-left: 22px; position: relative; }
.pd-bo__list li::before {
  content: "check"; font-family: 'Material Icons Outlined'; font-size: 16px; position: absolute; left: 0; top: 2px; color: var(--pos);
}
.pd-bo__note { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; }
.pd-mock {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 29, 42, 0.08); animation: pd-pop 0.45s var(--ease-out);
}
.pd-mock__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--ink); color: #e2edf3; font-size: 13px; font-weight: 600;
}
.pd-mock__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-heading);
}
.pd-mock__row > * { min-width: 0; }
.pd-mock__row small { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.pd-mock__row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-mock__row .material-icons-outlined { font-size: 18px; color: var(--pos); }
.pd-mock__row--head { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.pd-mock__row--hl { background: var(--ok-soft); }
.pd-bars { display: grid; gap: 10px; padding: 16px; }
.pd-bar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 92px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-body); }
.pd-bar i { display: block; height: 10px; border-radius: 6px; background: var(--pos-soft); position: relative; overflow: hidden; }
.pd-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--pos); border-radius: 6px; animation: pd-grow 0.9s var(--ease-out); }
.pd-bar b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; text-align: right; color: var(--text-heading); }
@keyframes pd-grow { from { width: 0; } }
@media (max-width: 640px) {
  .pd-mock__row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .pd-mock__row > span:nth-child(3):empty { display: none; }
  .pd-bar { grid-template-columns: 64px minmax(0, 1fr) 84px; }
}
@media (prefers-reduced-motion: reduce) { .pd-mock, .pd-bar i::after { animation: none; } }

/* ============================================================
   Smart POS: assistant chat mock
   ============================================================ */
.pd-chat { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 54px rgba(15, 29, 42, 0.12); }
.pd-chat__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: #e2edf3; font-size: 13px; font-weight: 600; }
.pd-chat__bar .material-icons-outlined { font-size: 17px; color: #c4b5fd; vertical-align: -3px; }
.pd-chat__kbd { font-family: var(--mono); font-size: 11px; border: 1px solid #36505f; border-radius: 6px; padding: 2px 7px; color: #b8c9d3; }
.pd-chat__body { padding: 16px; display: grid; gap: 12px; min-height: 290px; align-content: start; }
.pd-chat__msg { max-width: 88%; border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.pd-chat__msg--user { justify-self: end; background: var(--pos); color: #fff; border-bottom-right-radius: 4px; min-height: 42px; }
.pd-chat__msg--user::after { content: "▍"; animation: pd-blink 1s steps(1) infinite; margin-left: 1px; opacity: 0.8; }
.pd-chat__msg--user.is-sent::after { content: none; }
.pd-chat__msg--bot { justify-self: start; background: var(--bg); color: var(--text-heading); border-bottom-left-radius: 4px; display: grid; gap: 10px; animation: pd-pop 0.4s var(--ease-out); }
.pd-chat__prop { background: #fff; border: 1px solid var(--pos-line); border-radius: 10px; overflow: hidden; }
.pd-chat__line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--border); }
.pd-chat__line:first-child { border-top: 0; }
.pd-chat__line b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.pd-chat__line--total { background: var(--pos-soft); font-weight: 700; }
.pd-chat__add { color: var(--pos); font-weight: 700; text-align: center; }
.pd-chat__hint { font-size: 12px; color: var(--text-muted); }
.pd-chat__hint.is-press { color: var(--pos); font-weight: 700; }
.pd-chat__done { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 8px 12px; border-radius: 100px; animation: pd-pop 0.4s var(--ease-out); }
.pd-chat__done .material-icons-outlined { font-size: 18px; }
@keyframes pd-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pd-chat__msg--user::after { animation: none; } .pd-chat__msg--bot, .pd-chat__done { animation: none; } }

/* Each product page sets its own accent on <body>, e.g.
   <body style="--pos: var(--color-wms); --pos-deep: #00804a; --pos-soft: rgba(0,179,104,.09); --pos-line: rgba(0,179,104,.24)">
   (the token names keep the "pos" prefix because Kubrik POS was the first page built on this sheet). */
