/* AutoSeklys demonstration */

.demo-page,
.demo-vehicle-page {
  background:
    radial-gradient(circle at 90% 0, rgba(40, 96, 232, .10), transparent 24%),
    var(--background);
}

.demo-badge,
.future-label {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.demo-hero {
  padding: 48px 0 30px;
}

.demo-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.demo-hero h1 {
  margin-bottom: 8px;
  font-size: 46px;
  letter-spacing: -.045em;
}

.demo-hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.demo-alert {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  padding: 16px 19px;
  border: 1px solid #cfe0ff;
  border-radius: 15px;
  background: linear-gradient(90deg, #f3f7ff, #fbfdff);
}

.demo-alert-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 24px;
}

.demo-alert strong {
  display: block;
  margin-bottom: 4px;
}

.demo-alert p {
  font-size: 13px;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.demo-stats article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 9px 25px rgba(21, 40, 80, .05);
}

.demo-stats span,
.demo-stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.demo-stats strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 25px;
}

.demo-content {
  padding: 22px 0 70px;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.demo-tabs button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--muted);
  font-weight: 750;
}

.demo-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.demo-tabs span {
  margin-left: 5px;
  opacity: .75;
}

.demo-search {
  min-width: 260px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.demo-search input {
  width: 100%;
  height: 42px;
  padding: 0 9px;
  border: 0;
  outline: 0;
}

.demo-cars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.demo-car-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 12px 30px rgba(21, 40, 80, .06);
  transition: .2s ease;
}

.demo-car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(21, 40, 80, .10);
}

.demo-car-image {
  position: relative;
  min-height: 155px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(40, 96, 232, .16), transparent 55%),
    linear-gradient(145deg, #edf3ff, #f8fbff);
}

.demo-car-image > span:first-child {
  font-size: 75px;
}

.demo-car-image .status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.demo-car-body {
  padding: 17px;
}

.demo-car-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-car-title-row h2 {
  margin-bottom: 5px;
  font-size: 17px;
}

.demo-car-title-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.demo-heart {
  border: 0;
  background: transparent;
  font-size: 23px;
}

.demo-price-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
}

.demo-price-row strong {
  font-size: 24px;
}

.demo-price-row span {
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 850;
}

.demo-price-row .drop {
  background: var(--green-soft);
  color: var(--green);
}

.demo-price-row .sold {
  background: #eef1f5;
  color: var(--muted);
}

.demo-car-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.demo-car-metrics span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.demo-car-metrics strong {
  font-size: 11px;
}

.demo-open-button {
  width: 100%;
  min-height: 40px;
  font-size: 12px;
}

.demo-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.market-preview {
  margin-top: 28px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.market-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.market-preview-heading h2 {
  margin-bottom: 0;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 19px;
}

.popular-grid article {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.popular-number {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.popular-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.popular-change,
.good {
  color: var(--green);
}

.demo-vehicle-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  gap: 22px;
}

.demo-photo,
.demo-price-panel,
.history-table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.demo-photo {
  overflow: hidden;
}

.demo-car-art {
  min-height: 440px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(40, 96, 232, .18), transparent 52%),
    linear-gradient(145deg, #edf3ff, #f7fbff);
  font-size: 175px;
}

.demo-photo-note {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.demo-price-panel {
  padding: 25px;
}

.price-drop-large {
  width: fit-content;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 850;
}

.price-drop-large small {
  margin-left: 4px;
}

.demo-chart {
  position: relative;
  height: 330px;
  margin-top: 18px;
  padding: 15px 15px 35px 75px;
}

.demo-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.demo-chart line {
  stroke: #e8edf5;
  stroke-width: 1;
}

.demo-chart polyline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-chart circle {
  fill: white;
  stroke: var(--primary);
  stroke-width: 4;
}

.chart-y-labels {
  position: absolute;
  top: 20px;
  bottom: 45px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.chart-dates {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 75px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.demo-insight-card {
  text-align: left;
}

.score-ring {
  width: 105px;
  height: 105px;
  display: grid;
  place-content: center;
  margin: 22px auto;
  border: 10px solid #dfe9ff;
  border-top-color: var(--primary);
  border-radius: 50%;
  text-align: center;
}

.score-ring strong {
  font-size: 31px;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 10px;
}

.signal-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.signal-list span {
  color: var(--muted);
}

.demo-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.history-table-card {
  padding: 25px;
}

.history-table {
  margin-top: 20px;
}

.history-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.history-table-head {
  min-height: 35px !important;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 800;
}

.history-table em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.history-table em.neutral {
  color: var(--muted);
}

@media (max-width: 1050px) {
  .demo-cars,
  .demo-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .demo-toolbar,
  .demo-hero-row {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-search {
    width: 100%;
  }

  .demo-vehicle-overview,
  .demo-history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .demo-cars,
  .demo-stats {
    grid-template-columns: 1fr;
  }

  .demo-alert {
    grid-template-columns: 48px 1fr;
  }

  .demo-alert .button {
    grid-column: 1 / 3;
  }

  .demo-car-art {
    min-height: 260px;
    font-size: 105px;
  }
}


/* AUTOSEKLYS GUIDED DEMO */

.has-demo-guide {
  padding-bottom: 88px;
}

.demo-guide-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  border-top: 1px solid #d6dfed;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 35px rgba(21, 40, 80, .12);
  backdrop-filter: blur(15px);
}

.demo-guide-inner {
  width: min(var(--container), calc(100% - 40px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 auto;
}

.demo-guide-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 160px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.demo-guide-progress > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.demo-guide-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.demo-guide-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--primary);
  transition: width .3s ease;
}

.demo-guide-progress strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-guide-actions {
  display: flex;
  gap: 8px;
}

.demo-guide-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.demo-guide-button.secondary {
  background: white;
}

.demo-guide-button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.demo-car-image img {
  width: 100%;
  height: 175px;
  display: block;
  object-fit: cover;
}

.demo-car-art {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.demo-car-art img {
  width: 100%;
  height: 440px;
  display: block;
  object-fit: cover;
}

.demo-data-label {
  position: absolute;
  bottom: 11px;
  left: 11px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: rgba(17, 26, 46, .74);
  color: white;
  font-size: 9px;
  font-weight: 750;
  backdrop-filter: blur(7px);
}

@media (max-width: 700px) {
  .has-demo-guide {
    padding-bottom: 132px;
  }

  .demo-guide-inner {
    min-height: 116px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 13px 0;
  }

  .demo-guide-progress {
    grid-template-columns: auto 1fr;
  }

  .demo-guide-progress strong {
    grid-column: 1 / 3;
  }

  .demo-guide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .demo-guide-button {
    width: 100%;
  }

  .demo-car-art img {
    height: 270px;
  }
}


/* AUTOSEKLYS 10 CARS DASHBOARD */

.demo-price-row .increase {
  background: #fff0ed;
  color: #c34135;
}

.demo-price-row .stable {
  background: #eef2f7;
  color: #657184;
}

.demo-card-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.demo-original-link {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  transition: .2s ease;
}

.demo-original-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.demo-car-card {
  min-width: 0;
}

.demo-car-title-row h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-car-title-row > div {
  min-width: 0;
}

@media (min-width: 1200px) {
  .demo-cars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* AUTOSEKLYS DYNAMIC VEHICLE DEMO */

.demo-disclaimer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 17px;
  border: 1px solid #cfe0ff;
  border-radius: 13px;
  background: var(--primary-soft);
}

.demo-disclaimer strong {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
}

.demo-disclaimer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.price-increase-large {
  background: #fff0ed;
  color: #c34135;
}

.price-stable-large {
  background: #eef2f7;
  color: #647185;
}

.dynamic-demo-chart {
  height: 315px;
  margin-top: 17px;
}

.dynamic-demo-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dynamic-chart-grid {
  stroke: #e7ecf4;
  stroke-width: 1;
}

.dynamic-chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: draw-demo-chart .9s ease forwards;
}

.dynamic-chart-area {
  fill: url(#dynamicDemoArea);
  opacity: 0;
  animation: show-demo-area .6s .35s ease forwards;
}

.dynamic-chart-point {
  fill: white;
  stroke: var(--primary);
  stroke-width: 4;
  opacity: 0;
  animation: show-demo-point .3s .7s ease forwards;
}

.dynamic-chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.dynamic-chart-dates {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 0 25px 0 77px;
  color: var(--muted);
  font-size: 10px;
}

@keyframes draw-demo-chart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes show-demo-area {
  to {
    opacity: 1;
  }
}

@keyframes show-demo-point {
  to {
    opacity: 1;
  }
}

.score-ring {
  background:
    radial-gradient(
      closest-side,
      white 77%,
      transparent 78% 99%
    ),
    conic-gradient(
      var(--primary) var(--demo-score, 280deg),
      #dfe9ff 0
    );
  border: 0;
}

.signal-list .bad,
.history-table em.increase {
  color: #c34135;
}

.signal-list .neutral-signal {
  color: var(--muted);
}

.demo-metric-note {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.demo-next-cars {
  margin-top: 22px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.demo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.demo-related-card {
  display: grid;
  grid-template-columns: 90px 1fr 25px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: .2s ease;
}

.demo-related-card:hover {
  border-color: #aec3f5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(21, 40, 80, .07);
}

.demo-related-card img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.demo-related-card strong,
.demo-related-card span {
  display: block;
}

.demo-related-card strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.demo-related-card span {
  color: var(--muted);
  font-size: 10px;
}

.demo-related-card i {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.demo-toast {
  position: fixed;
  right: 22px;
  bottom: 95px;
  z-index: 120;
  min-width: 310px;
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid #bce4ca;
  border-radius: 13px;
  background: white;
  box-shadow: 0 18px 45px rgba(21, 40, 80, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: .25s ease;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-toast > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.demo-toast strong {
  display: block;
  font-size: 13px;
}

.demo-toast p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 850px) {
  .demo-related-grid {
    grid-template-columns: 1fr;
  }

  .demo-disclaimer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .dynamic-demo-chart {
    height: 250px;
    overflow-x: auto;
  }

  .dynamic-demo-chart svg {
    min-width: 650px;
  }

  .dynamic-chart-dates {
    display: none;
  }

  .demo-next-cars {
    padding: 18px;
  }

  .demo-toast {
    right: 12px;
    bottom: 130px;
    left: 12px;
    min-width: 0;
  }
}
