/* ==========================================================================
   G Factor — Product imagery
   Device frames and faithful recreations of delivered interfaces
   (Blend POS, TNT OS). Flat on the page: no glow, no tilt.
   ========================================================================== */

.device {
  position: relative;
  min-width: 0;
}

.device--tablet {
  padding: clamp(6px, 0.9vw, 12px);
  border-radius: clamp(16px, 2.2vw, 28px);
  background: #141318;
}

.device--browser {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rule);
}

.on-dark .device--browser {
  box-shadow: none;
}

/* ==========================================================================
   Blend POS — recreated from the delivered interface.
   Scales with its container (cqi) so it reads like a real screen at any size.
   ========================================================================== */
.pos {
  --n: #10283d;
  --ink: #20364b;
  --mut: #687b8d;
  --line: #dce2e4;
  --paper: #fbfbf8;
  --soft: #eef2f3;
  --green: #3c8f6a;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 6.2% 1fr;
  aspect-ratio: 4 / 2.9;
  overflow: hidden;
  border-radius: clamp(10px, 1.6vw, 18px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

.pos * {
  font-size: inherit;
}

.pos__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2cqi;
  padding: 1.6cqi 0;
  background: var(--n);
}

.pos__rail img {
  width: 72%;
  height: auto;
}

.pos__new {
  display: grid;
  place-items: center;
  width: 3.6cqi;
  height: 3.6cqi;
  border-radius: 0.9cqi;
  background: #fff;
  color: var(--n);
  font-size: 2.2cqi;
  font-weight: 600;
  line-height: 1;
}

.pos__rail i {
  width: 2.2cqi;
  height: 2.2cqi;
  border-radius: 0.5cqi;
  border: 0.18cqi solid rgba(255, 255, 255, 0.45);
}

.pos__app {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.pos__top {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  padding: 1.1cqi 1.8cqi;
  border-bottom: 0.1cqi solid var(--line);
  font-size: 1.15cqi;
  white-space: nowrap;
}

.pos__crumb {
  padding: 0.5cqi 1cqi;
  border-radius: 0.7cqi;
  background: var(--soft);
  color: var(--mut);
}

.pos__top b {
  font-size: 1.45cqi;
}

.pos__muted {
  color: var(--mut);
}

.pos__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqi;
  margin-left: auto;
  padding: 0.5cqi 1.2cqi;
  border-radius: 99px;
  background: rgba(60, 143, 106, 0.12);
  color: var(--green);
  font-weight: 500;
}

.pos__pill i {
  width: 0.7cqi;
  height: 0.7cqi;
  border-radius: 50%;
  background: var(--green);
}

.pos__time {
  color: var(--mut);
}

.pos__body {
  display: grid;
  grid-template-columns: 1fr 29%;
  min-height: 0;
}

.pos__catalog {
  padding: 1.6cqi 1.8cqi;
  min-width: 0;
}

.pos__title {
  display: flex;
  align-items: center;
  gap: 1.2cqi;
}

.pos__back {
  display: grid;
  place-items: center;
  width: 3.6cqi;
  height: 3.6cqi;
  border-radius: 1cqi;
  background: #e3f0ee;
  color: var(--n);
  font-size: 1.6cqi;
}

.pos__title div {
  display: grid;
  line-height: 1.1;
}

.pos__title small {
  font-size: 0.85cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}

.pos__title b {
  font-size: 2.2cqi;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--n);
}

.pos__steps {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqi;
  margin-left: auto;
  padding: 0.5cqi 1.2cqi 0.5cqi 0.5cqi;
  border-radius: 99px;
  background: #e3f0ee;
  font-size: 1cqi;
  color: var(--ink);
}

.pos__steps em {
  display: grid;
  place-items: center;
  width: 1.9cqi;
  height: 1.9cqi;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

.pos__steps em.on {
  margin-left: 0.8cqi;
  background: var(--n);
}

.pos__sub {
  margin: 1.8cqi 0 1.2cqi;
  font-size: 1.4cqi;
  font-weight: 500;
}

.pos__sub small {
  margin-left: 0.6cqi;
  font-size: 0.9cqi;
  color: var(--mut);
}

.pos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3cqi;
}

.pos__card {
  position: relative;
  display: grid;
  gap: 0.3cqi;
  padding: 0.7cqi 0.7cqi 1.1cqi;
  border-radius: 1.3cqi;
  border: 0.1cqi solid var(--line);
  background: #fff;
  box-shadow: 0 0.6cqi 1.8cqi rgba(15, 38, 55, 0.07);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.pos__img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.9cqi;
  aspect-ratio: 4 / 2.7;
  margin-bottom: 0.6cqi;
  background: #e9ecec;
}

.pos__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos__img em {
  position: absolute;
  left: 0.6cqi;
  bottom: 0.6cqi;
  padding: 0.25cqi 0.7cqi;
  border-radius: 99px;
  background: rgba(16, 24, 32, 0.78);
  border: 0.1cqi solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.72cqi;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pos__card b {
  padding-inline: 0.4cqi;
  font-size: 1.2cqi;
  font-weight: 500;
}

.pos__card small {
  padding-inline: 0.4cqi;
  font-size: 0.9cqi;
  color: var(--mut);
}

.pos__add {
  position: absolute;
  right: 0.9cqi;
  bottom: 1cqi;
  display: grid;
  place-items: center;
  width: 2.8cqi;
  height: 2.8cqi;
  border-radius: 0.8cqi;
  background: var(--n);
  color: #fff;
  font-size: 1.5cqi;
  line-height: 1;
}

.pos__card.is-picked {
  box-shadow: 0 0 0 0.2cqi var(--n), 0 1.2cqi 2.6cqi rgba(15, 38, 55, 0.18);
  transform: translateY(-0.3cqi);
}

.pos__order {
  display: flex;
  flex-direction: column;
  gap: 1cqi;
  padding: 1.6cqi 1.6cqi 1.6cqi;
  border-left: 0.1cqi solid var(--line);
  background: #fff;
  min-width: 0;
}

.pos__order > small {
  font-size: 0.85cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}

.pos__order-title {
  font-size: 2.3cqi;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--n);
  line-height: 1;
}

.pos__channel {
  display: grid;
  padding: 0.8cqi 1cqi;
  border-radius: 0.8cqi;
  background: var(--soft);
  font-size: 1.05cqi;
  font-weight: 500;
}

.pos__channel small {
  font-size: 0.75cqi;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 400;
}

.pos__order ul {
  display: grid;
  gap: 0.9cqi;
  margin: 0.4cqi 0 0;
  padding: 0;
  list-style: none;
}

.pos__order li {
  display: flex;
  justify-content: space-between;
  gap: 0.8cqi;
  padding-bottom: 0.9cqi;
  border-bottom: 0.1cqi dashed var(--line);
  font-size: 1.05cqi;
}

.pos__order li span {
  display: grid;
  line-height: 1.25;
}

.pos__order li b {
  font-weight: 500;
}

.pos__order li small {
  font-size: 0.85cqi;
  color: var(--mut);
}

.pos__order li em {
  font-style: normal;
  font-weight: 500;
}

.pos__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  font-size: 1.05cqi;
  color: var(--mut);
}

.pos__total b {
  font-size: 2cqi;
  color: var(--n);
}

.pos__cta {
  display: grid;
  place-items: center;
  height: 3.6cqi;
  border-radius: 1cqi;
  background: var(--n);
  color: #fff;
  font-size: 1.2cqi;
  font-weight: 600;
}

/* Narrow screens: drop the order panel and enlarge the catalog */
@container (max-width: 560px) {
  .pos__body {
    grid-template-columns: 1fr;
  }

  .pos__order,
  .pos__time,
  .pos__muted {
    display: none;
  }

  .pos__top {
    font-size: 2.2cqi;
    gap: 2cqi;
    padding: 2cqi 2.6cqi;
  }

  .pos__top b {
    font-size: 2.6cqi;
  }

  .pos__pill i {
    width: 1.3cqi;
    height: 1.3cqi;
  }

  .pos__catalog {
    padding: 2.6cqi;
  }

  .pos__back {
    width: 6cqi;
    height: 6cqi;
    font-size: 2.8cqi;
  }

  .pos__title small {
    font-size: 1.6cqi;
  }

  .pos__title b {
    font-size: 3.8cqi;
  }

  .pos__steps {
    display: none;
  }

  .pos__sub {
    font-size: 2.4cqi;
  }

  .pos__sub small {
    font-size: 1.7cqi;
  }

  .pos__grid {
    gap: 2cqi;
  }

  .pos__card b {
    font-size: 2.1cqi;
  }

  .pos__card small {
    font-size: 1.6cqi;
  }

  .pos__img em {
    font-size: 1.3cqi;
  }

  .pos__add {
    width: 4.6cqi;
    height: 4.6cqi;
    font-size: 2.6cqi;
    border-radius: 1.2cqi;
  }

  .pos {
    aspect-ratio: 4 / 3.6;
  }
}

/* ==========================================================================
   TNT OS — recreated interface (light theme, TNT palette)
   ========================================================================== */
.tnt {
  --navy: #1a2a3e;
  --side: #111a29;
  --red: #c9323d;
  --ink: #202b3b;
  --canvas: #f2f4f7;
  --mut: #6a7686;
  --line: #e1e5eb;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 17% 1fr;
  aspect-ratio: 16 / 8.2;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
}

.tnt__side {
  display: flex;
  flex-direction: column;
  gap: 0.35cqi;
  padding: 1.6cqi 1cqi;
  background: var(--side);
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05cqi;
}

.tnt__side img {
  width: 58%;
  height: auto;
  margin: 0 0 1.6cqi 0.7cqi;
}

.tnt__side span {
  position: relative;
  padding: 0.7cqi 0.9cqi;
  border-radius: 0.6cqi;
}

.tnt__side span.on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tnt__side span.on::before {
  content: "";
  position: absolute;
  left: -1cqi;
  top: 20%;
  bottom: 20%;
  width: 0.25cqi;
  border-radius: 2px;
  background: var(--red);
}

.tnt__side small {
  margin: 1.4cqi 0 0.3cqi 0.9cqi;
  font-size: 0.75cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.tnt__main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.6cqi;
  padding: 2cqi 2.2cqi;
  min-width: 0;
}

.tnt__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6cqi;
}

.tnt__head div:first-child {
  display: grid;
  line-height: 1.1;
}

.tnt__head small {
  font-size: 0.85cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.tnt__head b {
  font-size: 2.4cqi;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tnt__actions {
  display: flex;
  gap: 0.7cqi;
  font-size: 1cqi;
  font-weight: 500;
}

.tnt__actions span {
  padding: 0.7cqi 1.2cqi;
  border-radius: 0.6cqi;
  border: 0.1cqi solid var(--line);
  background: #fff;
  white-space: nowrap;
}

.tnt__actions .primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.tnt__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1cqi;
}

.tnt__kpis div {
  display: grid;
  gap: 0.4cqi;
  padding: 1.2cqi 1.3cqi;
  border-radius: 0.9cqi;
  border: 0.1cqi solid var(--line);
  background: #fff;
}

.tnt__kpis small {
  font-size: 0.9cqi;
  color: var(--mut);
}

.tnt__kpis b {
  font-size: 2cqi;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.tnt__table {
  padding: 1.3cqi 1.4cqi;
  border-radius: 0.9cqi;
  border: 0.1cqi solid var(--line);
  background: #fff;
  font-size: 1cqi;
  min-height: 0;
}

.tnt__table > p {
  margin-bottom: 0.8cqi;
  font-size: 1.2cqi;
  font-weight: 600;
  color: var(--navy);
}

.tnt__row {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1fr 1fr 0.8fr;
  gap: 1cqi;
  padding: 0.85cqi 0;
  border-top: 0.1cqi solid var(--line);
  align-items: center;
}

.tnt__row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.tnt__row--h {
  border-top: 0;
  font-size: 0.8cqi;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}

.tnt__row em {
  padding: 0.2cqi 0.8cqi;
  border-radius: 99px;
  font-style: normal;
  font-size: 0.85cqi;
  font-weight: 500;
}

.tnt__row em.ok {
  background: rgba(46, 140, 90, 0.12);
  color: #23784b;
}

.tnt__row em.open {
  background: rgba(201, 50, 61, 0.1);
  color: var(--red);
}

@container (max-width: 520px) {
  .tnt {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .tnt__side,
  .tnt__actions span:not(.primary) {
    display: none;
  }

  .tnt__main {
    gap: 3cqi;
    padding: 4cqi;
  }

  .tnt__head small {
    font-size: 2cqi;
  }

  .tnt__head b {
    font-size: 5cqi;
  }

  .tnt__actions {
    font-size: 2.4cqi;
  }

  .tnt__actions span {
    padding: 1.4cqi 2.4cqi;
    border-radius: 1.4cqi;
  }

  .tnt__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2cqi;
  }

  .tnt__kpis div {
    padding: 2.6cqi;
    border-radius: 2cqi;
  }

  .tnt__kpis small {
    font-size: 2.2cqi;
  }

  .tnt__kpis b {
    font-size: 4.4cqi;
  }

  .tnt__table {
    padding: 3cqi;
    font-size: 2.3cqi;
    border-radius: 2cqi;
  }

  .tnt__table > p {
    font-size: 2.8cqi;
  }

  .tnt__row {
    grid-template-columns: 1fr 1.6fr 1fr;
  }

  .tnt__row span:nth-child(3),
  .tnt__row span:nth-child(4) {
    display: none;
  }

  .tnt__row--h {
    font-size: 1.8cqi;
  }

  .tnt__row em {
    font-size: 2cqi;
  }
}

/* ==========================================================================
   Zoomed interface details (case pages)
   ========================================================================== */
.detail__ui {
  --n: #10283d;
  --mut: #687b8d;
  --line: #dce2e4;
  position: relative;
  min-height: 280px;
  padding: 22px;
  border-radius: 10px;
  background: #fbfbf8;
  color: #20364b;
  box-shadow: 0 0 0 1px var(--rule);
}

.pos-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}

.pos-h {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--n);
}

.pos-s {
  margin: 14px 0 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}

.pos-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 10px;
  background: #eef2f3;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}

.pos-seg span {
  padding: 7px;
  border-radius: 7px;
}

.pos-seg .on {
  background: #fff;
  color: var(--n);
  box-shadow: 0 2px 8px rgba(15, 38, 55, 0.12);
}

.pos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pos-chips span {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11.5px;
}

.pos-chips .on {
  border-color: var(--n);
  background: var(--n);
  color: #fff;
}

.pos-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}

.pos-pay span {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
}

.pos-pay .on {
  border-color: var(--n);
  box-shadow: 0 0 0 1px var(--n);
  color: var(--n);
}

.pos-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--mut);
}

.pos-sum b {
  font-size: 15px;
  color: var(--n);
}

.pos-sum--ok b {
  color: #3c8f6a;
}

.detail__ui--ticket {
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 40%, #f4f4ef, #dfe3e2);
}

.ticket {
  width: min(210px, 86%);
  padding: 18px 16px 22px;
  background: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  color: #1b1b1b;
  box-shadow: 0 1px 0 rgba(13, 12, 29, 0.08), 0 12px 30px -18px rgba(13, 12, 29, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 98%, 90% 100%, 85% 98%, 80% 100%, 75% 98%, 70% 100%, 65% 98%, 60% 100%, 55% 98%, 50% 100%, 45% 98%, 40% 100%, 35% 98%, 30% 100%, 25% 98%, 20% 100%, 15% 98%, 10% 100%, 5% 98%, 0 100%);
}

.ticket img {
  width: 58%;
  height: auto;
  margin: 0 auto 12px;
  filter: invert(1);
}

.ticket p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.7;
}

.ticket hr {
  margin: 8px 0;
  border: 0;
  border-top: 1px dashed #aaa;
}

.ticket__total {
  font-weight: 700;
  font-size: 12px;
}

