/* ==========================================================================
   Amazon Relay – Bepul Masterklass landing
   Plain HTML + CSS (no framework)
   ========================================================================== */

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

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

body {
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background-color: #000;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  background-color: transparent;
}

button {
  cursor: pointer;
}

.hidden {
  display: none;
}

/* --- Page shell ---------------------------------------------------------- */
.page {
  width: 100%;
  max-width: 28rem;
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #000;
  color: #fff;
  box-shadow: 0 25px 50px -12px #00000040;
}

/* --- Date pill ----------------------------------------------------------- */
.datebar-wrap {
  padding-inline: 1rem;
}

.datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  border-radius: 0 0 1rem 1rem;
  background-color: #171717;
  border: 1px solid #2a2a2a;
  border-top-width: 0;
}

.datebar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.datebar-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #bd2e2f;
}

.datebar-date {
  font-weight: 500;
  color: #fff;
}

.datebar-time {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fac06a;
}

/* --- Headline ------------------------------------------------------------ */
.headline {
  padding-inline: 1rem;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.accent {
  color: #fac06a;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 20rem;
  border-radius: 50%;
  background-color: #fac06a33;
  filter: blur(64px);
  pointer-events: none;
}

.hero-img-wrap {
  padding-inline: 1.5rem;
}

.hero-img {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  aspect-ratio: 100 / 78;
}

/* --- Offer + CTA card ---------------------------------------------------- */
.offer-wrap {
  padding-inline: 1rem;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}

.offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.75rem;
}

.offer-old {
  color: #6b6b6b;
}

.offer-new {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fac06a;
}

/* --- Gold button --------------------------------------------------------- */
.main-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: #000;
  background: linear-gradient(#ffe0a5 0%, #fac06a 55%, #e69a3b 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
  box-shadow:
    inset 0 1px #ffffffb3,
    inset 0 -3px #8c460a40,
    0 4px #a8641d,
    0 10px 20px #fac06a59,
    0 18px 30px #00000059;
}

.main-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #ffffff26;
  transform: rotate(45deg);
  animation: shine 2.5s infinite;
}

.main-button:hover {
  filter: brightness(1.04);
}

.main-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px #fff9,
    inset 0 -2px #8c460a33,
    0 1px #a8641d,
    0 4px 10px #fac06a40,
    0 8px 14px #0000004d;
}

@keyframes shine {
  0% {
    transform: translate(-100%) rotate(45deg);
  }
  to {
    transform: translate(100%) rotate(45deg);
  }
}

/* --- Urgency + timer ----------------------------------------------------- */
.urgency {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  text-align: center;
}

.urgency-text {
  color: #fff;
}

.urgency-accent {
  color: #ec3737;
  font-weight: 500;
}

.timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: #000;
  border: 1px solid #2a2a2a;
  border-radius: 9999px;
}

.timer-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #fac06a;
}

.timer-digits {
  display: flex;
  gap: 0.625rem;
  color: #fff;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.25rem;
}

.timer-num {
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 700;
  /* Raqamlar bir xil enlikda — har soniyada "sakramasligi" uchun. */
  font-variant-numeric: tabular-nums;
}

.timer-label {
  font-size: 0.625rem;
  line-height: 0.875rem;
  font-weight: 400;
  color: #b6b6b6;
}

/* --- Checklist ----------------------------------------------------------- */
.features {
  padding-inline: 1rem;
  padding-bottom: 2rem;
}

.features > * + * {
  margin-top: 1rem;
}

.features-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.125rem;
  border-radius: 999px;
  color: #3a1d00;
  background: linear-gradient(#ffe0a5 0%, #fac06a 55%, #e69a3b 100%);
  box-shadow:
    inset 0 1px #ffffffb3,
    inset 0 -2px #8c460a40,
    0 2px 6px #fac06a59;
}

.check-icon svg {
  width: 16px;
  height: 16px;
}

.feature-text {
  color: #b6b6b6;
}

.feature-text strong {
  color: #fac06a;
  font-weight: 600;
}

/* --- Bottom CTA ---------------------------------------------------------- */
.cta-bottom {
  padding-inline: 1rem;
  padding-bottom: 2.5rem;
}

/* --- Modal --------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  background-color: #0000004d;
}

.modal-form {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 28rem;
  margin-inline: auto;
  background-color: #fff;
}

.modal-bar {
  height: 3rem;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #000;
  cursor: pointer;
}

.modal-close-icon {
  width: 1rem;
}

.modal-body {
  padding: 2rem 1.25rem;
}

.modal-title {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: #000;
}

.form-alert {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  /* hex fallbacks first, oklch for modern browsers */
  color: #9f1239;
  color: oklch(0.455 0.188 13.697);
  background-color: #fff1f2;
  background-color: oklch(0.969 0.015 12.422);
  border: 1px solid #fda4af;
  border-color: oklch(0.81 0.117 11.638);
}

/* --- Form fields --------------------------------------------------------- */
.field {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

.field--phone {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  color: #7d7d7d;
}

.field-input {
  width: 100%;
  height: 3.5rem;
  padding-left: 1rem;
  border-radius: 15px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  outline: none;
  transition: border-color 0.15s;
}

.field-input::placeholder {
  color: #00000080;
}

.field-input:focus {
  border-color: #bd2e2f;
}

.field-input--phone {
  padding-left: 6rem;
}

.country {
  position: absolute;
  bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 6rem;
  height: 54px;
  cursor: pointer;
  color: #000;
}

.country-arrow {
  width: 1rem;
  flex-shrink: 0;
}

.country-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-button {
  background-color: #ec3737;
  border-radius: 15px;
}

.form-button:hover {
  background-color: #d12f2f;
}

/* ==========================================================================
   telegram.html — thank-you / channel step
   ========================================================================== */
.tg-body {
  background-color: #fff;
  overflow-x: hidden;
}

.tg-page {
  max-width: 28rem;
  margin-inline: auto;
  overflow-x: hidden;
  background-color: #fff;
  color: #101828;
  box-shadow: 0 9px 18px #00000014;
}

.tg-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  padding-inline: 1rem;
  text-align: center;
}

.tg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background-color: #fff;
}

.tg-badge {
  width: 4rem;
}

.tg-title {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: #101828;
}

.tg-title-stop {
  font-size: 1.875rem;
  color: #ec3737;
}

.tg-text {
  color: #1f1f1f;
}

.tg-text strong {
  font-weight: 700;
  color: #229ed9;
}

.tg-arrow {
  width: 0.75rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  to {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Telegram-blue variant of the main button */
.tg-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 70px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #229ed9 0%, #2aabee 50%, #229ed9 100%);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  animation: horizontal-shake 0.8s ease-in-out infinite;
  box-shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
}

.tg-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #ffffff1a;
  transform: rotate(45deg);
  animation: shine 2s infinite;
}

.tg-button svg {
  width: 1.75rem;
  height: 1.75rem;
}

@keyframes horizontal-shake {
  0%,
  to {
    transform: translate(0);
  }
  20% {
    transform: translate(-6px);
  }
  40% {
    transform: translate(6px);
  }
  60% {
    transform: translate(-4px);
  }
  80% {
    transform: translate(4px);
  }
}
