.smile-page .site-shell {
  min-height: auto;
}

.smile-page {
  background: #f8f0fa;
}

html:has(.smile-page) {
  scroll-behavior: smooth;
}

.smile-offers {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.smile-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 80px) 24px 120px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(9, 7, 18, 0.64) 0%, rgba(22, 13, 41, 0.38) 100%), url("../images/smile/smiley_banner.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.smile-hero-content {
  width: min(1040px, 100%);
}

.smile-hero h1 {
  margin: 0;
  font-size: 80px;
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(193, 109, 255, 0.4),
    0 0 18px rgba(151, 40, 184, 0.3),
    0 0 30px rgba(151, 40, 184, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.34);
}

.smile-hero p {
  margin: 38px auto 0;
  width: min(1080px, 100%);
  font-size: 20px;
}

.smile-intro {
  position: relative;
  background: #f8f0fa;
  padding: 80px;
  padding-bottom: 0px;
}

.smile-intro-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 76px;
  align-items: center;
}

.smile-intro h2,
.smile-offers h2 {
  margin: 0;
}

.smile-intro h2 {
  font-size: 32px;
}

.smile-intro p {
  text-align: justify;
}

.smile-intro-list {
  margin: 24px 0 0;
  padding-left: 22px;
  list-style: disc;
}

.smile-intro-list li {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-text, #333333);
}

.smile-intro-list li:last-child {
  margin-bottom: 0;
}

.smile-intro-cta {
  margin-top: 40px;
}

.smile-intro-cta svg {
  color: var(--color-purple, #9728b8);
}

.smile-downloads {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.smile-downloads > img {
  width: 92px;
  height: 92px;
}

.smile-store-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smile-store-links img {
  display: block;
  width: 134px;
  height: auto;
}

.smile-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 24px auto 0;
  padding: 0 20px;
  background-image: var(--gradient-btn-pill);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 0;
  border-radius: 999px;
}
.smile-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-btn-pill);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.smile-cta::after {
  content: none;
}

.smile-device-card {
  overflow: hidden;
  border-radius: 8px;
}

.smile-device-card img {
  display: block;
  width: 100%;
  height: auto;
}

.smile-signature {
  background: #f8f0fa;
  padding: 120px 80px;
}

.smile-signature-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 76px;
  align-items: center;
}

.smile-signature-card {
  overflow: hidden;
  border-radius: 16px;
}

.smile-signature-card img {
  display: block;
  width: 100%;
  height: auto;
}

.smile-signature-copy {
  min-width: 0;
}

.smile-signature-copy h2 {
  margin: 0;
  font-size: 32px;
  color: var(--color-purple, #9728b8);
}

.smile-signature-copy p {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text, #333333);
}

.smile-signature-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 24px;
  color: var(--color-purple, #9728b8);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

.smile-signature-cta span {
  background-image: var(--gradient-btn-pill);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.smile-signature-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-btn-pill);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.smile-signature-cta svg {
  flex-shrink: 0;
  color: #f002af;
}

.smile-offers {
  background: #f8f0fa;
  padding: 0px 80px 0 80px;
  text-align: center;
}

.smile-offers-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.smile-offers h2 {
  font-size: 32px;
  line-height: 1.08;
}

.smile-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.smile-offer-grid article {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
}

.smile-offer-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.smile-offer-grid a {
  position: absolute;
  left: 50%;
  top: 70%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 56px;
  padding: 0 10px;
  color: #111111;
  font-weight: 800;
  line-height: 1;
  background: #ffffff;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.smile-offer-grid article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(18, 8, 22, 0.12);
  opacity: 0;
  transition: opacity 180ms ease;
}

.smile-offer-grid article:hover img,
.smile-offer-grid article:focus-within img {
  filter: blur(1px);
  transform: scale(1.02);
}

.smile-offer-grid article:hover::after,
.smile-offer-grid article:focus-within::after {
  opacity: 1;
}

.smile-offer-grid article:hover a,
.smile-offer-grid article:focus-within a {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 1024px) {
  .smile-hero {
    min-height: 540px;
    padding: calc(var(--header-height) + 70px) 20px 90px;
  }

  .smile-hero p {
    margin-top: 24px;
  }

  .smile-intro {
    padding-right: 32px;
    padding-left: 32px;
  }

  .smile-intro-inner {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  }

  .smile-offers {
    padding-right: 40px;
    padding-left: 40px;
  }

  .smile-signature {
    padding: 96px 32px;
  }

  .smile-signature-inner {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .smile-page {
    --header-height: 76px;
  }

  .smile-intro-inner {
    grid-template-columns: 1fr;
  }

  .smile-signature-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .smile-signature-copy {
    order: -1;
  }

  .smile-device-card {
    order: -1;
  }

  .smile-offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .smile-hero {
    min-height: 720px;
    height: 720px;
    align-items: center;
    padding: 0 22px;
    background-color: #080418;
    background-image: linear-gradient(180deg, rgba(9, 7, 18, 0.64) 0%, rgba(22, 13, 41, 0.38) 100%), url("../images/smile/smiley-mobile.jpg");
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat;
  }

  .smile-hero-content {
    width: 100%;
  }

  .smile-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    white-space: normal;
  }

  .smile-hero p {
    width: min(100%, 300px);
    margin-top: 14px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
  }

  .smile-intro {
    padding: 80px 18px 30px;
  }

  .smile-intro-inner {
    gap: 30px;
  }

  .smile-device-card {
    order: 0;
  }

  .smile-intro h2,
  .smile-offers h2 {
    font-size: 24px;
    line-height: 1.28;
    text-align: center;
  }

  .smile-intro p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.62;
    text-align: justify;
  }

  .smile-intro-list {
    margin-top: 16px;
  }

  .smile-intro-list li {
    font-size: 16px;
  }

  .smile-intro-cta {
    margin-top: 28px;
    justify-content: center;
    width: 100%;
    padding: 6px 24px;
  }

  .smile-intro-cta span {
    text-align: center;
    line-height: 20px;
  }

  .smile-downloads {
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .smile-downloads > img {
    width: 150px;
    height: 150px;
  }

  .smile-store-links {
    gap: 5px;
  }

  .smile-store-links img {
    width: 160px;
  }

  .smile-cta {
    min-height: 24px;
    margin: 16px auto 0;
    padding: 15px 12px;
    font-size: 14px;
    width: 100%;
  }

  .smile-device-card {
    border-radius: 8px;
  }

  .smile-signature {
    padding: 64px 18px;
  }

  .smile-signature-inner {
    gap: 28px;
    text-align: center;
  }

  .smile-signature-copy h2 {
    font-size: 24px;
    line-height: 1.28;
  }

  .smile-signature-copy p {
    font-size: 16px;
  }

  .smile-signature-cta {
    margin-top: 20px;
  }

  .smile-offers {
    padding: 50px 18px 64px;
  }

  .smile-offers p {
    width: min(100%, 230px);
    margin: 8px auto 0;
  }

  .smile-offer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100%, 300px);
    margin: 24px auto 0;
  }

  .smile-offer-grid article {
    border-radius: 24px;
  }

  .smile-offer-grid img {
    aspect-ratio: 1 / 1.25;
    filter: blur(1px);
  }

  .smile-offer-grid article::after {
    opacity: 1;
  }

  .smile-offer-grid a {
    top: 70%;
    min-width: 104px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 12px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
