/* Critical path: reset, paywall shell layout, skeleton — loaded blocking from index.html */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Paywall shell layout */
.paywall-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding-inline: 32px;
  padding-top: max(env(safe-area-inset-top, 0px), 32px);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 32px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #e6f3f0;
  color: #000000;
}

.paywall-page__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(100%, 20.375rem);
  margin-block: auto;
  flex-shrink: 0;
}

.paywall-page__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.paywall-page__logo {
  margin: 0;
}

.paywall-page__logo-image {
  display: block;
  width: 8rem;
  height: auto;
  max-width: 100%;
}

.paywall-page__features {
  width: 100%;
  padding: 20px 24px;
  border: 1px solid #759bad;
  border-radius: 0.75rem;
  background-color: #e4edf2;
}

.paywall-page__offer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.paywall-page__heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.paywall-page__plans-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paywall-page__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  padding-top: 1.5rem;
}

.paywall-page__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.skeleton-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skeleton-features__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Skeleton placeholders */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-box,
.skeleton-title,
.skeleton-subtitle,
.skeleton-feature,
.skeleton-plan,
.skeleton-cancel {
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    #d8e0e8 0%,
    #eef2f6 45%,
    #d8e0e8 90%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-box,
  .skeleton-title,
  .skeleton-subtitle,
  .skeleton-feature,
  .skeleton-plan,
  .skeleton-cancel {
    animation: none;
    background: #d8e0e8;
  }
}

.skeleton-box {
  display: block;
}

.skeleton-box--bullet {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 999px;
}

.skeleton-title {
  display: block;
  width: 70%;
  height: 1.75rem;
  margin-inline: auto;
}

.skeleton-subtitle {
  display: block;
  width: 92%;
  height: 1.125rem;
  margin-inline: auto;
}

.skeleton-feature {
  display: block;
  flex: 1;
  height: 0.875rem;
}

.skeleton-feature--1 {
  max-width: 85%;
}

.skeleton-feature--2 {
  max-width: 72%;
}

.skeleton-feature--3 {
  max-width: 60%;
}

.skeleton-plan {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 1px solid #cdd4ca;
  border-radius: 0.75rem;
  background-color: #fff;
}

.skeleton-plan--selected {
  border-color: #4881a2;
  background-color: #87bad7;
}

.skeleton-button {
  display: block;
  width: 100%;
  min-height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid #9b6934;
  background-color: #d2a06c;
  box-shadow: -2px 5px 0 1px #d2c4b5;
}

.skeleton-cancel {
  display: block;
  width: 12.5rem;
  height: 0.875rem;
  margin-inline: auto;
}
