/* TEZ888 — reference-matched theme */
:root {
  --bg: #fdf0f5;
  --bg-alt: #fff5f8;
  --pink: #e91e8c;
  --pink-btn: #e91e8c;
  --text: #111111;
  --text-muted: #5c5c5c;
  --black-btn: #0a0a0a;
  --promo-glass: rgba(255, 255, 255, 0.52);
  --promo-glass-border: rgba(255, 255, 255, 0.85);
  --badge-design-bg: rgba(118, 98, 148, 0.52);
  --badge-design-border: rgba(255, 255, 255, 0.42);
  --badge-play-bg: rgba(232, 160, 188, 0.48);
  --badge-play-border: rgba(255, 255, 255, 0.45);
  --badge-icon-blue: #2f9df0;
  --badge-icon-orange: #ff8a3d;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-img: 24px;
  /* Inset keeps promo/badges inside the rounded frame (no corner overlap) */
  --hero-inset: clamp(14px, 3.8vw, 20px);
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 12px 40px rgba(233, 30, 140, 0.12);
  --app-height: 100dvh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  min-height: var(--app-height);
  max-height: 100vh;
  max-height: var(--app-height);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: clamp(8px, 1.8vh, 16px) clamp(16px, 3vw, 40px) clamp(6px, 1vh, 12px);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.logo {
  font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-style: italic;
  letter-spacing: -0.02em;
}

.logo__tez {
  color: var(--text);
}

.logo__num {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    filter 0.35s ease;
}

.btn--join {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--pink-btn);
  color: #fff;
  box-shadow:
    0 4px 18px rgba(233, 30, 140, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 20px rgba(233, 30, 140, 0.25);
}

.btn--join:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(233, 30, 140, 0.5),
    0 0 40px rgba(233, 30, 140, 0.45),
    0 0 60px rgba(255, 105, 180, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: brightness(1.05);
}

.btn--join:active {
  transform: translateY(0);
  transition-duration: 0.12s;
}

.btn--join:focus-visible {
  outline: none;
  box-shadow:
    0 10px 32px rgba(233, 30, 140, 0.5),
    0 0 0 3px rgba(253, 240, 245, 1),
    0 0 28px rgba(233, 30, 140, 0.55);
}

.btn--primary {
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--black-btn);
  color: #fff;
  font-size: 0.8rem;
  min-width: 140px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 18px rgba(255, 255, 255, 0.06);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(255, 255, 255, 0.12),
    0 0 48px rgba(200, 200, 220, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  filter: brightness(1.08);
}

.btn--primary:active {
  transform: translateY(0);
  transition-duration: 0.12s;
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(253, 240, 245, 1),
    0 0 24px rgba(255, 255, 255, 0.2);
}

/* —— Main: fills one screen; hero flexes to absorb remaining height —— */
.layout {
  flex: 1 1 0;
  min-height: 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(16px, 3vw, 40px) clamp(4px, 1vh, 10px);
  display: flex;
  flex-direction: column;
  /* gap: clamp(6px, 1.4vh, 14px); */
  overflow: hidden;
}

.intro-column {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 2.4vh, 24px);
  flex-shrink: 0;
  min-width: 0;
}

.banner-column--right,
.cta-row {
  flex-shrink: 0;
}

/* —— Headline —— */
.headline-block {
  padding-top: 0;
}

.headline {
  margin: 0;
  margin-top: 40px;
  font-size: clamp(2rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.headline__line {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 6px;
}

.headline__line:last-child {
  margin-bottom: 0;
}

/* —— Info row —— */
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-row__media {
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  width: 112px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.info-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.info-row__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.info-row__body {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— Hero —— */
.hero-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Allow badges/promo to extend past hero edges */
  overflow: visible;
}

.hero {
  position: relative;
  border-radius: var(--radius-img);
  overflow: visible;
  width: 100%;
  max-width: min(420px, 100%);
  height: 60%;
  max-height: 100%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(80, 40, 90, 0.2);
  margin: 0 auto;
}

/* Clips image only so promo can sit outside with negative offsets */
.hero__inner {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  border: 1px solid #fff;
  max-width: calc(100% - 4px);
  will-change: transform;
  animation: hero-float-badge 3.2s ease-in-out infinite;
}

/* Mobile: design top-left, play mid-left (inset from hero edge) */
.hero__badge--design {
  animation-delay: 0s;
  top: -15px;
  left: -10px;
  background: linear-gradient(92.11deg, rgba(255, 255, 255, 0.2) 1.67%, rgba(234, 32, 135, 0.01) 98.33%);
  backdrop-filter: blur(20px);
  border-color: var(--badge-design-border);
}

.hero__badge--play {
  animation-delay: 0.55s;
  left: -29px;
  top: auto;
  bottom: -8%;
  background: linear-gradient(92.11deg, rgba(255, 255, 255, 0.2) 1.67%, rgba(234, 32, 135, 0.01) 98.33%);
  backdrop-filter: blur(20.900002px);
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero__badge-icon--blue {
  background: var(--badge-icon-blue);
}

.hero__badge-icon--orange {
  background: var(--badge-icon-orange);
}


.hero__promo {
  position: absolute;
  z-index: 3;
  right: -30px;
  bottom: -35px;
  padding: 0;
  pointer-events: auto;
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--promo-glass-border);
  max-width: min(148px, 100%);
  background: linear-gradient(92.11deg, rgba(255, 255, 255, 0.2) 1.67%, rgba(234, 32, 135, 0.01) 98.33%);
  will-change: transform;
  animation: hero-float-promo-mobile 3.6s ease-in-out infinite;
  animation-delay: 0.25s;
}

.hero__promo-inner {
  padding: 10px 8px 10px;
  text-align: left;
  line-height: 1.05;
  display: flex;
  gap: 12px;
}

.hero__promo-small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
  opacity: 0.92;
}

.hero__promo-big {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero__promo-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__promo-line__row {
  display: block;
}

/* —— Right banner column (desktop + stacked mobile) —— */
.banner-column--right {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 16px);
  min-height: 0;
}

/* —— AI + secondary (single section; desktop only) —— */
.content-panel {
  display: none;
}

.ai-block__title {
  margin: 0 0 clamp(4px, 1vh, 10px);
  font-size: clamp(1.75rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.ai-block__body {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 40ch;
  line-height: 1.65;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* Fallback when clamp is ignored (e.g. flex items): exact height for 3 lines */
  max-height: calc(1em * 1.65 * 3);
}

.secondary-visual {
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  max-height: min(10vh, 100px);
  aspect-ratio: 16 / 10;
  flex-shrink: 1;
}

.secondary-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— CTA row —— */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: nowrap;
  padding-top: 0;
  min-width: 0;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -50px;
}

.social-proof__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b9d, var(--pink));
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.45);
  flex-shrink: 0;
}

.social-proof__users {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.social-proof__link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-proof__link:hover {
  color: var(--text);
}

.social-proof--desktop {
  display: none;
}

/* —— Footer (no .reveal — always visible; mobile viewports often never fire IO for bottom edge) —— */
.site-footer {
  flex-shrink: 0;
  padding: clamp(6px, 1.2vh, 10px) clamp(16px, 3vw, 40px) max(10px, env(safe-area-inset-bottom, 10px));
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.disclaimer {
  margin: 0;
  font-size: max(11px, 0.7rem);
  color: var(--text-muted);
  line-height: 1.45;
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-wrap.reveal {
  transform: translateY(28px) scale(0.98);
}

.hero-wrap.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@keyframes hero-float-badge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes hero-float-promo-mobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-float-promo-desk {
  0%,
  100% {
    transform: translateY(-50%) translateY(0);
  }
  50% {
    transform: translateY(-50%) translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-wrap.reveal {
    transform: none;
  }

  .hero__badge,
  .hero__promo {
    animation: none !important;
  }

  .btn--join,
  .btn--primary {
    transition: transform 0.2s ease;
  }
}

/* —— Desktop layout —— */
@media (min-width: 960px) {
  body {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  }

  .site-header {
    padding: clamp(8px, 1.5vh, 20px) clamp(24px, 3vw, 40px) clamp(4px, 1vh, 10px);
  }

  .layout {
    display: grid;
    /* 35% / 35% / 30% of available width (after gaps) */
    grid-template-columns: minmax(0, 35fr) minmax(0, 35fr) minmax(0, 30fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: 100%;
    max-height: 100%;
    column-gap: clamp(16px, 4vw, 50px);
    row-gap: clamp(8px, 1.2vh, 16px);
    padding: clamp(6px, 1vh, 12px) clamp(20px, 3vw, 40px) clamp(6px, 1vh, 14px);
    align-items: stretch;
    min-height: 0;
    /* Let hero badges/promo paint past the grid cell */
    overflow: visible;
  }

  .layout > * {
    min-height: 0;
  }

  /* Headline + info share rows 1–2 and are vertically centered as a block */
  .intro-column {
    margin-top: 75px;
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    align-self: stretch;
    gap: clamp(12px, 6vh, 32px);
    min-height: 0;
    overflow: hidden;
  }

  .hero-wrap {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: visible;
  }

  :root {
    --hero-inset: clamp(16px, 2.2vw, 22px);
  }

  .hero {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
  }

  .hero__img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  /* Desktop: promo position + stacked float (keeps translateY(-50%) in keyframes) */
  .hero__promo {
    left: -60px;
    right: auto;
    top: 100px;
    bottom: auto;
    max-width: min(158px, 100%);
    animation: hero-float-promo-desk 3.6s ease-in-out infinite;
    animation-delay: 0.25s;
  }

  .hero__promo-inner {
    text-align: left;
    padding: 15px 17px 16px;
    flex-direction: column;
    gap: 0;
  }

  .hero__promo-big {
    font-size: 2rem;
  }

  /* Desktop: bottom badges — float animation uses transform; do not set transform: none here */
  .hero__badge--play {
    top: auto;
    bottom: 70px;
    left: -60px;
    right: auto;
  }

  .hero__badge--design {
    top: auto;
    bottom: 120px;
    left: auto;
    right: -80px;
  }

  .hero__badge {
    max-width: min(260px, calc(55% - 8px));
  }

  .banner-column--right {
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    gap: clamp(8px, 1.2vh, 14px);
    padding-top: 0;
    justify-content: space-between;
    overflow: hidden;
  }

  .content-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 6vh, 44px);
    margin-top: 100px;
    min-width: 0;
    min-height: 0;
    flex: 1 1 0;
  }

  .banner-column--right .ai-block {
    padding-top: 0;
  }

  .ai-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .ai-block__title {
    flex-shrink: 0;
  }

  .banner-column--right .content-panel .secondary-visual {
    margin-bottom: 10px;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    max-height: min(15vh, 100px);
  }

  .banner-column--right .social-proof--desktop {
    margin-top: 0;
    flex-shrink: 0;
    padding-top: 0;
  }

  .banner-column--right .ai-block__body {
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
  }

  .cta-row {
    grid-column: 1;
    grid-row: 3;
    padding-top: 0;
    align-self: end;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-height: 0;
  }

  .social-proof--mobile {
    display: none;
  }

  .social-proof--desktop {
    display: flex;
  }

  .site-footer {
    padding: clamp(4px, 1vh, 10px) clamp(24px, 3vw, 40px) max(10px, env(safe-area-inset-bottom, 10px));
  }
}
