/* A static HTML illustration: the surrounding frame is separate from the app UI. */
.app-scene {
  position: relative;
  width: 100%;
  min-height: 680px;
  padding: 28px 0 20px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.app-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 80px 12px 65px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.device-frame {
  position: relative;
  width: 340px;
  padding: 7px;
  background: #303236;
  border: 1px solid #717579;
  border-radius: 42px;
  box-shadow:
    0 30px 55px #14213d26,
    inset 0 0 0 2px #17191b;
  transform: rotate(-2deg);

  aspect-ratio: 72 / 152.8;

  min-height: 0;

  display: flex;
}
.device-frame::before,
.device-frame::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 47px;
  top: 135px;
  background: #515459;
  border-radius: 3px;
}
.device-frame::before {
  left: -4px;
}
.device-frame::after {
  right: -4px;
  top: 168px;
  height: 62px;
}
.device-screen {
  position: relative;
  isolation: isolate;
  background: var(--wash);
  border-radius: 34px;
  padding: 12px 10px 42px;
  overflow: hidden;

  width: 100%;

  height: 100%;

  display: flex;

  flex-direction: column;
}
.device-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("home-background-portrait.webp") center / cover;
  opacity: 0.5;
}
[data-bs-theme="dark"] .device-screen::before {
  background-image: url("home-background-portrait-dark.webp");
  opacity: 0.5;
}
.device-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  margin: 0 7px 12px;
  font-size: 12px;
  font-weight: 700;

  flex-shrink: 0;
}
.device-status > span:last-child {
  display: flex;
  align-items: center;
  gap: 3px;
}
.device-status .icon {
  width: 12px;
  height: 12px;
}
.device-status .icon:last-child {
  width: 18px;
  color: var(--green);
}
.device-camera {
  position: absolute;
  top: 14px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 3px solid #252931;
  background: #080d17;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #15171b;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}
.mock-brand img {
  width: 28px;
  height: 28px;
}
.mock-brand > strong {
  font-size: 22px;
  letter-spacing: -0.055em;
  line-height: 1;
}
.mock-brand > strong > span {
  color: var(--blue);
}
.mock-space {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 25px;
  font-size: 11px;
  font-weight: 700;
}
.mock-space i,
.mock-activity-copy > strong > i {
  display: inline-block;
  background: #c6a253;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}
.mock-space .icon {
  width: 10px;
  height: 10px;
}
.mock-user {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 50%;
  margin-left: 3px;
}
.mock-user .icon {
  width: 15px;
  height: 15px;
}
.mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}
.mock-search .icon {
  width: 15px;
  height: 15px;
}
.mock-search .icon:last-child {
  margin-left: auto;
}
.mock-metrics {
  position: relative;
  display: flex;
  justify-content: space-between;
  background: color-mix(in srgb, var(--card) 65%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 10px;
}
.mock-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  padding: 5px 0;
  gap: 4px;
  border-radius: 5px;
}
.mock-metric:first-child {
  background: var(--wash);
  border-bottom: 2px solid var(--muted);
}
.mock-metric-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: var(--soft);
}
.metric-0 .mock-metric-icon {
  background: var(--wash);
}
.metric-1 .mock-metric-icon {
  background: #fbf3e3;
}
.metric-3 .mock-metric-icon {
  background: #f3edfc;
}
.metric-4 .mock-metric-icon {
  background: #fceff2;
}
[data-bs-theme="dark"] .metric-1 .mock-metric-icon {
  background: #332d21;
}
[data-bs-theme="dark"] .metric-3 .mock-metric-icon {
  background: #30263d;
}
[data-bs-theme="dark"] .metric-4 .mock-metric-icon {
  background: #37252b;
}
.mock-metric .icon {
  width: 15px;
  height: 15px;
  margin: 1px 0;
}
.mock-metric strong {
  font-size: 22px;
  line-height: 1.3;
}
.mock-metric > span:not(.mock-metric-icon) {
  font-size: 10px;
  color: var(--muted);

  line-height: 1.4;
}
.metric-0 {
  color: var(--muted);
}
.metric-1 {
  color: #986000;
}
.metric-2 {
  color: var(--blue);
}
.metric-3 {
  color: #8052b4;
}
.metric-4 {
  color: #bc3d55;
}
[data-bs-theme="dark"] .metric-1 {
  color: #e5c245;
}
[data-bs-theme="dark"] .metric-3 {
  color: #c3a0ed;
}
[data-bs-theme="dark"] .metric-4 {
  color: #f58a98;
}
.mock-filters {
  position: relative;
  display: flex;
  gap: 5px;
  margin-bottom: 13px;
  flex-shrink: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 calc(100% - 22px),
    transparent
  );
  mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
}
.mock-filters > span {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 6px 7px;
  border-radius: 30px;
  background: var(--card);
  font-size: 11.5px;
  white-space: nowrap;
}
.mock-filters b {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
}
.mock-filters > .is-selected b {
  background: #006ea8;
  color: #fff;
}
.mock-activities {
  display: flex;
  flex-direction: column;
  gap: 7px;

  flex: 1;

  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - 44px),
    transparent
  );
  mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
}
.mock-activity {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 7px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;

  flex: 0 0 auto;
}
.mock-activity-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 49px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--blue);
}
.mock-activity-icon .icon {
  width: 21px;
  height: 21px;
}
.mock-activity-copy {
  min-width: 0;
}
.mock-activity-copy > strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-right: 12px;
}
.mock-category {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;

  line-height: 1.4;
}
.mock-activity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;

  line-height: 1.4;
}
.mock-activity-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mock-activity-meta .icon {
  width: 10px;
  height: 10px;
}
.mock-badge {
  border-radius: 14px;
  padding: 1px 6px;
  margin-left: auto;
  white-space: nowrap;
}
.badge-today {
  color: #865d00;
  background: #fff1ce;
}
.badge-upcoming {
  color: #70419f;
  background: #f0e8f8;
}
.badge-neutral {
  color: var(--muted);
  background: var(--wash);
}
[data-bs-theme="dark"] .badge-today {
  color: #edcd70;
  background: #3c321c;
}
[data-bs-theme="dark"] .badge-upcoming {
  color: #d7b5fa;
  background: #382a46;
}
.mock-star {
  position: absolute;
  right: 7px;
  top: 11px;
  color: var(--muted);
}
.mock-star .icon {
  width: 12px;
  height: 12px;
}
.mock-star.is-favourite {
  color: #986000;
}
.mock-star.is-favourite .icon {
  fill: currentColor;
}
[data-bs-theme="dark"] .mock-star.is-favourite {
  color: #e5c245;
}
.mock-add {
  display: grid;
  place-items: center;
  width: 40.8px;
  height: 40.8px;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: #006ea8;
  box-shadow: 0 4px 9px #14213d20;

  position: absolute;

  right: 12px;

  bottom: 16px;
}
.mock-add .icon {
  width: 24px;
  height: 24px;
}
.device-home {
  position: absolute;
  bottom: 9px;
  left: 35%;
  right: 35%;
  height: 3px;
  border-radius: 5px;
  background: var(--muted);
}
.app-callout {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  z-index: 3;
  width: 180px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 25px #14213d0d;
}
.app-callout h2 {
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 5px;
}
.app-callout p {
  font-size: var(--text-small);
  line-height: 1.5;
}
.callout-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
  flex-shrink: 0;
}
.callout-icon .icon {
  width: 15px;
  height: 15px;
}
.app-callout::after {
  content: "";
  position: absolute;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: var(--card);
  transform: rotate(45deg);
}
.callout-1 {
  right: -30px;
  top: 140px;
  transform: rotate(3deg);
}
.callout-2 {
  left: -30px;
  top: 290px;
  transform: rotate(-4deg);
}
.callout-3 {
  right: -30px;
  top: 440px;
  transform: rotate(3deg);
}
.callout-4 {
  left: -30px;
  bottom: 80px;
  transform: rotate(-3deg);
}
.callout-1::after,
.callout-3::after {
  left: -7px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.callout-2::after,
.callout-4::after {
  right: -7px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.app-preview figcaption {
  font-size: var(--text-small);
  text-align: center;
  color: var(--muted);
}
/* Keep explanations readable instead of shrinking them on narrower layouts. */
@media (max-width: 1199px) {
  .app-scene {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: 0;
    padding: 20px 0;
  }
  .app-scene::before {
    inset: 80px -20px 320px;
  }
  .device-frame {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    width: min(100% - 8px, 340px);
    transform: none;
  }
  .app-callout {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    height: 100%;
    align-self: stretch;
  }
  .app-callout::after {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .app-scene {
    max-width: 620px;
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  .app-scene {
    gap: 14px 12px;
    padding: 15px 0 5px;
  }
  .app-callout {
    flex-direction: column;
    gap: 10px;
    padding: 16px 13px;
  }
  .app-callout h2 {
    font-size: var(--text-body);
  }
  .app-callout p {
    font-size: var(--text-small);
  }
  .app-preview {
    gap: 14px;
  }
  .mock-brand > strong {
    font-size: 20px;
  }
  .mock-space {
    padding: 5px 6px;
  }
  .mock-filters > span {
    padding: 5px;
    gap: 3px;
  }
}
@media (max-width: 359px) {
  .device-screen {
    padding: 10px 8px 34px;
  }
  .device-status {
    height: 18px;
    margin-bottom: 9px;
  }
  .mock-brand {
    margin-bottom: 8px;
  }
  .mock-brand > strong {
    font-size: 18px;
  }
  .mock-brand img {
    width: 25px;
    height: 25px;
  }
  .mock-space {
    padding: 5px;
    font-size: 10px;
  }
  .mock-user {
    width: 24px;
    height: 24px;
  }
  .mock-search {
    padding: 7px;
    margin-bottom: 7px;
  }
  .mock-metrics {
    padding: 4px 2px;
    margin-bottom: 8px;
  }
  .mock-metric {
    gap: 2px;
    padding: 2px 0;
  }
  .mock-metric strong {
    font-size: 20px;
  }
  .mock-metric > span:not(.mock-metric-icon) {
    font-size: 9px;
  }
  .mock-filters {
    margin-bottom: 9px;
    gap: 3px;
  }
  .mock-filters > span {
    font-size: 9px;
    padding: 4px;
    gap: 2px;
  }
  .mock-filters b {
    width: 13px;
    height: 13px;
  }
  .mock-activity {
    padding: 6px;
    gap: 6px;
    grid-template-columns: 28px 1fr;
  }
  .mock-activities {
    gap: 5px;
  }
  .mock-activity-copy > strong {
    font-size: 13px;
  }
  .mock-category {
    font-size: 11px;
  }
  .mock-activity-meta {
    font-size: 10px;
    gap: 3px;
    margin-top: 4px;
  }
  .mock-badge {
    padding: 1px 4px;
  }
  .mock-add {
    width: 33.6px;
    height: 33.6px;
    bottom: 12px;
  }
}
@media print {
  .device-frame {
    transform: none;
  }
  .app-callout {
    box-shadow: none;
  }
}
