/* Light and depth across the page */
body {
  isolation: isolate;
}

.site-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-atmosphere::before {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse at 16% 61%, rgb(57 87 202 / 20%), transparent 37%),
    radial-gradient(ellipse at 83% 29%, rgb(114 62 178 / 20%), transparent 35%),
    radial-gradient(ellipse at 72% 89%, rgb(54 79 160 / 13%), transparent 41%);
  content: "";
  animation: atmosphere-drift 14s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift {
  from { transform: translate3d(-6%, 3%, 0) scale(1); }
  to { transform: translate3d(7%, -5%, 0) scale(1.14); }
}

.hero-orbit {
  position: absolute;
  top: -52%;
  right: -19%;
  width: min(92vw, 1080px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 15deg,
    transparent 0 14%,
    rgb(142 151 255 / 41%) 23%,
    transparent 41% 52%,
    rgb(94 115 255 / 80%) 64%,
    rgb(157 100 238 / 42%) 72%,
    transparent 85%
  );
  -webkit-mask-image: radial-gradient(transparent 47%, #000 58% 64%, transparent 73%);
  mask-image: radial-gradient(transparent 47%, #000 58% 64%, transparent 73%);
  animation: orbit-turn 22s linear infinite;
}

@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

@supports (background-clip: text) {
  .hero h1 em {
    background: linear-gradient(106deg, #a6baff 10%, #e1e5ff 45%, #a299f6 67%, #a6baff 89%);
    background-size: 245% 100%;
    background-clip: text;
    color: transparent;
    animation: headline-light 7s ease-in-out infinite alternate;
  }
}

@keyframes headline-light {
  to { background-position: 96% 50%; }
}

/* Motion follows visibility and the visitor's preference */
.motion-group > :nth-child(2) {
  --reveal-delay: 85ms;
}

.motion-group > :nth-child(3) {
  --reveal-delay: 170ms;
}

.demo[data-reveal] {
  --reveal-delay: 95ms;
}

[data-reveal].is-in-view {
  animation: rise-in .64s cubic-bezier(.18, .8, .3, 1) var(--reveal-delay, 0ms) both;
}

@keyframes rise-in {
  from { opacity: .30; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-motion-paused] {
  scroll-behavior: auto;
}

[data-motion-paused] *,
[data-motion-paused] *::before,
[data-motion-paused] *::after {
  animation: none !important;
  transition: none !important;
}

/* The storefront keeps its original image as the fallback */
.demo-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 0;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
}

.demo-address {
  padding: 0;
  justify-self: center;
}

.motion-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-left: 1px solid rgb(174 192 244 / 13%);
  background: transparent;
  color: #e4edff;
  cursor: pointer;
}

.motion-control[hidden] {
  display: none;
}

.motion-control::before {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
  content: "";
}

.motion-control:hover {
  background: rgb(146 167 250 / 15%);
}

.motion-control:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
}

[data-motion-paused] .motion-control::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.demo-motion {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: 50% 53%;
  pointer-events: none;
  transition: opacity .28s ease;
}

.demo-motion.is-playing {
  opacity: 1;
}

[data-motion-paused] .demo-motion {
  opacity: 0;
}

.price-card-featured {
  isolation: isolate;
}

.price-card-featured::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(113deg, transparent 38%, rgb(192 215 251 / 20%) 48%, transparent 58%);
  background-size: 280% 100%;
  pointer-events: none;
  content: "";
}

.price-card-featured.is-in-view::before {
  animation: card-light 6.4s ease-in-out infinite;
}

@keyframes card-light {
  0%, 17% { background-position: 100% 0; }
  64%, 100% { background-position: 0 0; }
}

/* Examples make the site packages concrete for local businesses */
.business-examples {
  padding-bottom: clamp(58px, 8vw, 104px);
}

.business-examples h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
  margin-top: 25px;
}

.example-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(14 21 40 / 94%);
  box-shadow: 0 12px 35px rgb(2 6 18 / 24%);
}

.example-art {
  display: grid;
  height: clamp(116px, 15vw, 169px);
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 72% 20%, var(--card-light), transparent 78%),
    linear-gradient(130deg, #121a31, #111b32);
}

.example-shop {
  --card-light: rgb(126 112 186 / 40%);
}

.example-service {
  --card-light: rgb(68 130 234 / 40%);
}

.example-training {
  --card-light: rgb(104 166 120 / 33%);
}

.example-screen {
  width: min(79%, 220px);
  padding: 11px 12px;
  border: 1px solid rgb(178 197 245 / 37%);
  border-radius: 12px;
  background: rgb(12 18 37 / 91%);
  box-shadow: 0 12px 28px rgb(0 0 0 / 32%);
  color: #e1e9ff;
  font-size: .71rem;
  font-weight: 750;
  transition: transform .32s ease, border-color .32s ease;
}

.example-card:hover .example-screen {
  transform: translateY(-5px) rotate(-1.5deg);
  border-color: #a4b7ff;
}

.example-card.is-in-view .example-screen {
  animation: example-rise .75s ease-out var(--reveal-delay, 0ms) both;
}

@keyframes example-rise {
  from { translate: 0 13px; }
  to { translate: 0 0; }
}

.shop-screen-grid, .class-screen-grid {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.shop-screen-grid {
  grid-template-columns: 1fr 1fr;
}

.shop-screen-grid i {
  display: block;
  height: 51px;
  border-radius: 5px;
  background: #584750 url("assets/marcenaria.webp") center 62% / 138% no-repeat;
}

.shop-screen-grid i:last-child {
  background-position: 94% 28%;
  background-size: 178%;
}

.quote-screen > i {
  display: block;
  height: 5px;
  margin-block: 5px;
  border-radius: 999px;
  background: #44598b;
}

.quote-screen > i:nth-of-type(2) {
  width: 74%;
}

.quote-screen > i:nth-of-type(3) {
  width: 45%;
}

.quote-status, .class-status {
  width: fit-content;
  margin-top: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #dcefa9;
  background: rgb(220 251 154 / 12%);
  font-size: .57rem;
}

.class-screen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.class-screen-grid i {
  padding: 4px 3px;
  border-radius: 5px;
  background: #273454;
  font-size: .62rem;
  font-style: normal;
  text-align: center;
}

.class-screen-grid i:nth-child(2) {
  background: #4c6870;
}

.example-copy {
  padding: clamp(14px, 2vw, 24px);
}

.example-copy h3 {
  font-size: clamp(1.09rem, 1.9vw, 1.43rem);
}

.example-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.62;
}

/* Calendar, delivery steps and answers get their own movement */
.calendar-card.is-in-view .days li {
  animation: calendar-day 6.65s ease-in-out infinite;
  animation-delay: calc(var(--day-order, 0) * .95s);
}

.days li:nth-child(2) { --day-order: 1; }
.days li:nth-child(3) { --day-order: 2; }
.days li:nth-child(4) { --day-order: 3; }
.days li:nth-child(5) { --day-order: 4; }
.days li:nth-child(6) { --day-order: 5; }
.days li:nth-child(7) { --day-order: 6; }

@keyframes calendar-day {
  0%, 18%, 100% { background-color: rgb(143 167 255 / 10%); }
  7% { background-color: rgb(157 198 235 / 30%); }
}

.process-grid li {
  position: relative;
}

.process-grid li::before {
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--green), var(--blue-light), transparent);
  content: "";
}

.process-grid li.is-in-view::before {
  animation: step-light .85s ease-out var(--reveal-delay, 0ms) both;
}

@keyframes step-light {
  to { transform: scaleX(1); }
}

.question-list details[open] p {
  animation: answer-in .22s ease-out both;
}

@keyframes answer-in {
  from { opacity: .35; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .example-grid {
    grid-template-columns: 1fr;
  }

  .example-card {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr);
  }

  .example-art {
    height: auto;
    min-height: 112px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .example-screen {
    width: 88%;
    padding-inline: 7px;
  }

  .quote-status, .class-status {
    font-size: .55rem;
  }
}

@media (max-width: 530px) {
  .site-atmosphere::before {
    opacity: .72;
  }

  .hero-orbit {
    top: 12%;
    right: -45%;
    width: 156vw;
  }

  .example-copy {
    padding: 13px 11px;
  }

  .example-copy h3 {
    font-size: 1.15rem;
  }

  .example-copy p {
    font-size: .79rem;
  }
}
