/* Apmatik reference blocks on the property-management solution page. Only the logo images carry Apmatik colours; everything else stays in the Kafein palette. */
:root {
  --apx: var(--coffee);
  --apx-soft: var(--milk-deep);
  --apx-line: var(--line);
}

.apx-ref {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.apx-ref + .actions {
  margin-top: 22px;
}

.apx-ref:hover {
  transform: translateY(-2px);
  border-color: var(--apx);
}

.apx-ref span {
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
}

.apx-ref img {
  width: auto;
  height: 22px;
}

.apx-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.apx-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--apx-soft);
  color: var(--apx);
  font: 600 12px/1.2 var(--font-mono);
}

.apx-logo {
  width: min(240px, 70%);
  height: auto;
  margin: 0 0 22px;
}

.apx-show .actions {
  margin-top: 26px;
}

.btn-apx {
  background: var(--apx);
  color: var(--white);
  box-shadow: 0 6px 0 -2px var(--roast);
}

.btn-apx:hover {
  background: var(--roast);
}

.apx-browser {
  margin: 0;
}

.apx-window {
  overflow: hidden;
  border: 1px solid var(--apx-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 34px 60px -34px rgba(58, 31, 17, 0.45), var(--shadow);
}

.apx-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--apx-line);
  background: var(--milk);
}

.apx-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-lighter);
}

.apx-bar span {
  margin-inline-start: 10px;
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
}

.apx-window img {
  width: 100%;
  height: auto;
}

.apx-browser figcaption,
.apx-source {
  margin-top: 12px;
  font: 400 12px/1.5 var(--font-mono);
  color: var(--muted);
}

.apx-browser figcaption::before,
.apx-source::before {
  content: '// ';
}

.apx-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 6vw, 64px);
}

.apx-stats div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.apx-stats strong {
  display: block;
  font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--font-head);
  letter-spacing: -0.02em;
  color: var(--apx);
}

.apx-stats span {
  font-size: 14px;
  color: var(--muted);
}

.apx-intro {
  max-width: 720px;
  color: var(--muted);
}

.apx-mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.apx-mod {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.apx-mod-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.apx-mod h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.apx-mod-head span {
  flex: none;
  font: 600 12px/1 var(--font-mono);
  color: var(--apx);
}

.apx-mod p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}

.apx-mod ul,
.apx-who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apx-mod a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--apx-soft);
  color: var(--apx);
  font: 600 14px/1.2 var(--font-body);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.apx-mod a:hover {
  background: var(--apx);
  color: var(--white);
}

.apx-who {
  gap: 10px;
  margin-top: 6px;
}

.apx-who a {
  display: block;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.apx-who a:hover {
  border-color: var(--apx);
  transform: translateY(-2px);
}

.apx-who strong {
  display: block;
  font: 600 15px/1.3 var(--font-body);
}

.apx-who small {
  font-size: 13px;
  color: var(--muted);
}

.apx-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--apx);
  font-weight: 600;
  text-decoration: none;
}

.apx-more .icon {
  width: 16px;
  height: 16px;
}

.apx-more:hover {
  text-decoration: underline;
}

.apx-app .apx-logo {
  width: min(200px, 60%);
}

.apx-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.apx-stores a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: 600 16px/1.1 var(--font-body);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.apx-stores a:hover {
  transform: translateY(-2px);
}

.apx-stores svg {
  width: 22px;
  height: 22px;
}

.apx-stores small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.apx-trial {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 960px) {
  .apx-show-grid,
  .apx-mods {
    grid-template-columns: 1fr;
  }

  .apx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apx-stats div:last-child {
    grid-column: 1 / -1;
  }
}

.apx-stats-only .apx-stats {
  margin-top: 0;
}

.hero-project .apx-logo + .h1-inner {
  font-size: clamp(32px, 4.2vw, 50px);
}
