/* Crushoo: úvod, ukázka hovoru v telefonu, běžící pás */

.hero {
  position: relative;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 26px) 0 64px;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(255, 202, 215, .75) 0%, rgba(255, 202, 215, 0) 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 212, 92, .35) 0%, rgba(255, 212, 92, 0) 70%),
    var(--cream);
}

.hero__grid { display: grid; gap: 48px; align-items: center; }

.onair {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .5em 1em .5em .8em;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  rotate: -1.5deg;
}
.onair__dot {
  width: .65em;
  height: .65em;
  border-radius: 50%;
  background: var(--crush);
  animation: pulse 1.8s ease-out infinite;
}

.hero__title {
  margin: .38em 0 .32em;
  font-size: clamp(3.1rem, 14vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.02em;
}
.hero__title em {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--crush-deep);
  padding-right: .04em;
}
.squiggle svg {
  position: absolute;
  left: -2%;
  bottom: -.2em;
  width: 104%;
  height: .3em;
  overflow: visible;
}
.squiggle path {
  fill: none;
  stroke: var(--tangerine);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1s .9s cubic-bezier(.65, 0, .35, 1) forwards;
}

.hero__lead {
  max-width: 34em;
  font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 30px;
}
.hero__cta .btn { width: 100%; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  font-size: .9375rem;
  font-weight: 600;
}
.hero__facts li { display: inline-flex; align-items: center; gap: .45em; }
.hero__facts .ico { width: 1.1em; height: 1.1em; color: var(--crush-deep); stroke-width: 3; }

/* nástup prvků úvodu */
.rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * .09s + .05s); }

/* scéna s telefonem */
.stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 58px 0 30px;
}

.sun {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(100%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: linear-gradient(180deg, #FFD45C 0%, #FFAE45 30%, #FF7A4A 52%, #FF3F73 78%, #E01E5E 100%);
  -webkit-mask: linear-gradient(180deg, #000 0 56%, transparent 56% 60%, #000 60% 68%, transparent 68% 73%, #000 73% 80%, transparent 80% 86%, #000 86% 91%, transparent 91% 97%, #000 97%);
  mask: linear-gradient(180deg, #000 0 56%, transparent 56% 60%, #000 60% 68%, transparent 68% 73%, #000 73% 80%, transparent 80% 86%, #000 86% 91%, transparent 91% 97%, #000 97%);
}

.phone {
  position: relative;
  z-index: 2;
  width: clamp(252px, 70vw, 300px);
  margin-inline: auto;
  padding: 9px;
  background: var(--ink);
  border-radius: 46px;
  box-shadow: 10px 12px 0 rgba(42, 14, 31, .22);
  rotate: 3deg;
  animation: floaty 7s ease-in-out infinite;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 20px;
  border-radius: 38px;
  background:
    radial-gradient(120% 55% at 50% 0%, #6A1A4A 0%, rgba(106, 26, 74, 0) 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: var(--on-night);
  text-align: center;
}

.call__top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--on-night-2);
}
.call__live {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .25em .7em;
  border-radius: 999px;
  background: rgba(255, 63, 115, .2);
  color: #FF9BB6;
}
.call__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--crush); animation: pulse 1.8s ease-out infinite; }

.call__people { display: flex; justify-content: center; margin: 22px 0 12px; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--night);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}
.avatar--you { background: linear-gradient(140deg, #FFE08A, var(--tangerine)); margin-right: -14px; font-size: 1.15rem; }
.avatar--them { background: linear-gradient(140deg, #FFB3C7, var(--crush)); z-index: 1; }
.avatar.is-speaking::before,
.avatar.is-speaking::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #FF7A9C;
  animation: ring 2s ease-out infinite;
}
.avatar.is-speaking::after { animation-delay: 1s; }

.call__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.call__meta { margin-top: 2px; font-size: .78rem; color: var(--on-night-2); }

.wave { display: flex; align-items: center; justify-content: center; gap: 3px; }
.wave span {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: currentColor;
  transform: scaleY(var(--h, .5));
  animation: bar var(--d, 1s) ease-in-out var(--dl, 0s) infinite alternate;
}
.wave.is-off span { animation-play-state: paused; }
.wave--call { height: 40px; margin: 14px 0 6px; color: #FF7A9C; }

.call__timer { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.call__timer small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .7rem; font-weight: 600; color: var(--on-night-2); }

.qcard {
  margin: 16px 2px 18px;
  padding: 12px 14px 13px;
  background: var(--butter);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 3px 3px 0 #000;
  rotate: -2deg;
  text-align: left;
}
.qcard small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.qcard p { margin-top: 3px; font-size: .95rem; font-weight: 700; line-height: 1.3; min-height: 2.6em; transition: opacity .3s ease, translate .3s ease; }
.qcard p.is-swapping { opacity: 0; translate: 0 6px; }

.call__controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.ctrl {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 237, 224, .12);
  color: var(--on-night);
}
.ctrl--crush { width: 62px; height: 62px; background: var(--crush); color: #fff; box-shadow: 0 0 0 6px rgba(255, 63, 115, .25); }
.ctrl--crush .ico { width: 28px; height: 28px; animation: beat 1.6s ease-in-out infinite; }
.ctrl--flag { color: #FF9BB6; }

.spin-badge {
  position: absolute;
  z-index: 3;
  top: 0;
  right: max(0px, calc(50% - 200px));
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--butter);
  border: var(--line);
  box-shadow: var(--shadow);
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-badge text { font: 800 11px/1 var(--font-body); letter-spacing: .08em; fill: var(--ink); }
.spin-badge span { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }

.sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .5em 1em;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
}
.sticker .ico { width: 1em; height: 1em; color: var(--crush-deep); }
.sticker--a { right: max(0px, calc(50% - 196px)); top: 47%; background: #fff; rotate: 8deg; }
.sticker--b { left: max(0px, calc(50% - 196px)); bottom: 2px; background: var(--blush); rotate: -7deg; }

/* běžící pás */
.ticker {
  position: relative;
  z-index: 2;
  margin: -14px -4vw 0;
  padding: 14px 0;
  background: var(--ink);
  color: var(--cream);
  border-block: 2px solid var(--ink);
  rotate: -2deg;
  overflow: hidden;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.6vw, 1.9rem);
  line-height: 1.1;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.ticker__track i { font-style: normal; color: var(--butter); }
.ticker__track span:nth-of-type(3n+2) { color: #FF7A9C; }

@media (min-width: 560px) {
  .hero__cta .btn { width: auto; }
}

@media (min-width: 1040px) {
  .hero { padding: calc(var(--header-h) + 64px) 0 104px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
  .stage { max-width: 470px; }
  .sun { width: min(112%, 500px); }
  .phone { width: 300px; }
  .spin-badge { width: 124px; height: 124px; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 63, 115, .6); }
  100% { box-shadow: 0 0 0 10px rgba(255, 63, 115, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes bar { from { transform: scaleY(calc(var(--h, .5) * .22)); } to { transform: scaleY(var(--h, .5)); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .squiggle path { stroke-dashoffset: 0; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: 6vw; white-space: normal; }
  .wave span { transform: scaleY(var(--h, .5)); }
}
