/* Production typography and motion refinement */
h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.hero-copy,
.section-heading > div,
.steps-intro,
.spotlight-copy,
.faq-heading {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(60px, 6.2vw, 92px);
  letter-spacing: -.055em;
  line-height: .94;
  max-width: 620px;
}

.hero h1 span {
  color: var(--coral-dark);
  display: block;
  font-style: italic;
  line-height: 1.02;
  margin-top: .08em;
}

.section h2 {
  letter-spacing: -.045em;
  line-height: 1.04;
}

.section-heading {
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: 52px;
}

.section-heading > p {
  margin: 0 0 4px;
  max-width: 38ch;
}

.steps-intro h2,
.spotlight-copy h2 {
  line-height: 1.03;
}

.final-cta h2 {
  line-height: .96;
}

.floating-two {
  max-width: 250px;
  right: -12px;
  top: -34px;
}

.floating-two small {
  line-height: 1.35;
}

.game-window {
  animation: window-arrive .7s cubic-bezier(.2, .8, .2, 1) both;
}

.number-ball {
  animation: ball-breathe 4.2s ease-in-out 1s infinite;
}

.number-grid span.called {
  animation: tile-pop .5s cubic-bezier(.2, .9, .3, 1.3) both;
}

.number-grid span.called:nth-child(3n) { animation-delay: .08s; }
.number-grid span.called:nth-child(3n + 1) { animation-delay: .16s; }
.floating-one { animation: float-one 5.8s ease-in-out 1s infinite; }
.floating-two { animation: float-two 6.4s ease-in-out .4s infinite; }
.champion-card { animation: champion-float 5s ease-in-out 1.4s infinite; }

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: box-shadow .24s ease, transform .24s ease;
}

.feature-card h3 {
  line-height: 1.12;
  margin: 24px 0 12px;
}

.feature-card > p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 34ch;
}

.feature-grid {
  gap: 24px;
}

.feature-card .mini-board,
.feature-card .room-code {
  margin-top: auto;
}

.feature-card:hover {
  box-shadow: 9px 9px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.feature-card:hover .feature-icon {
  transform: rotate(2deg) scale(1.06);
}

.feature-icon {
  transition: transform .25s ease;
}

.printable-feature {
  display: flex;
  flex-direction: column;
}

.printable-feature > p {
  margin-bottom: 0;
}

.feature-ticket-cta {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, .88);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 14px;
  margin-top: 16px;
  padding: 9px 12px;
}

.feature-ticket-cta:hover {
  background: var(--butter);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.printable-feature .ticket-art {
  margin-top: auto;
  padding-top: 22px;
}

.feature-rich {
  display: flex;
  flex-direction: column;
  min-height: 405px;
}

.feature-rich h3 {
  max-width: 310px;
}

.feature-rich > p {
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  margin-bottom: 24px;
}

.prize-split-demo,
.winner-demo,
.guest-import-demo {
  margin-top: auto;
}

.prize-split-demo {
  align-items: center;
  background: rgba(255, 255, 255, .76);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  padding: 13px;
}

.prize-split-demo > div {
  display: flex;
  flex-direction: column;
}

.prize-split-demo small,
.winner-demo small,
.guest-import-demo small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.prize-split-demo strong {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.15;
}

.prize-split-demo > i {
  align-items: center;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-style: normal;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.prize-split-demo footer {
  border-top: 1px dashed rgba(41, 37, 82, .3);
  display: flex;
  gap: 5px;
  grid-column: 1 / -1;
  padding-top: 10px;
}

.prize-split-demo footer b {
  background: white;
  border: 1px solid rgba(41, 37, 82, .28);
  border-radius: 999px;
  font-size: 9px;
  padding: 5px 7px;
}

.winner-demo {
  display: grid;
  gap: 7px;
}

.winner-demo > div {
  align-items: center;
  background: rgba(255, 255, 255, .8);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px;
}

.winner-demo > div:nth-child(2) {
  background: rgba(255, 248, 216, .9);
}

.winner-demo i,
.guest-import-demo > div > i {
  align-items: center;
  background: var(--coral);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.winner-demo > div:nth-child(2) i {
  background: var(--aqua);
}

.winner-demo span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.winner-demo span strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-demo > div > b {
  color: var(--coral-dark);
  font-family: var(--serif);
  font-size: 15px;
}

.guest-import-demo {
  background: rgba(255, 255, 255, .78);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}

.guest-import-demo header {
  align-items: center;
  background: var(--butter);
  border-bottom: 1.5px solid var(--ink);
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
  padding: 10px;
}

.guest-import-demo header > span {
  align-items: center;
  background: var(--aqua);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.guest-import-demo header > div {
  display: flex;
  flex-direction: column;
}

.guest-import-demo header strong {
  font-size: 12px;
}

.guest-import-demo header > b {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  font-size: 9px;
  padding: 5px 7px;
}

.guest-import-demo > div {
  align-items: center;
  border-bottom: 1px dashed rgba(41, 37, 82, .2);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 7px 10px;
}

.guest-import-demo > div:last-child {
  border-bottom: 0;
}

.guest-import-demo > div > i {
  background: var(--pink);
  height: 27px;
  width: 27px;
}

.guest-import-demo > div > span {
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-import-demo > div > em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.steps-intro > p {
  margin: 20px 0 32px;
  max-width: 34ch;
}

.spotlight-copy h2,
.faq-heading h2 {
  margin-bottom: 18px;
}

.spotlight-copy > p,
.faq-heading > p {
  margin: 0;
}

.spotlight-copy ul {
  margin-top: 26px;
}

.final-cta p {
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

.site-footer > p {
  line-height: 1.55;
  margin: 0;
}

.brand strong {
  line-height: 1;
}

.spotlight {
  padding-bottom: 0;
}

.button-primary,
.button-light {
  overflow: hidden;
  position: relative;
}

.button-primary::after,
.button-light::after {
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 48%, transparent 76%);
  content: "";
  height: 180%;
  left: -90%;
  position: absolute;
  top: -40%;
  transform: rotate(8deg);
  width: 46%;
}

.button-primary:hover::after,
.button-light:hover::after {
  animation: button-shine .7s ease forwards;
}

.confetti i { animation: confetti-drift 4s ease-in-out infinite; }
.confetti i:nth-child(2n) { animation-delay: -1.7s; }
.confetti i:nth-child(3n) { animation-delay: -2.8s; }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .25, 1);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .feature-card:nth-child(2),
.motion-ready .step-list li:nth-child(2),
.motion-ready .feature-card:nth-child(5) {
  transition-delay: .08s;
}

.motion-ready .feature-card:nth-child(3),
.motion-ready .step-list li:nth-child(3),
.motion-ready .feature-card:nth-child(6) {
  transition-delay: .16s;
}

@keyframes window-arrive {
  from { opacity: 0; transform: translateY(24px) rotate(1.8deg) scale(.98); }
  to { opacity: 1; transform: rotate(1deg) scale(1); }
}

@keyframes ball-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 239, 145, 0); transform: scale(1); }
  50% { box-shadow: 0 0 0 12px rgba(255, 239, 145, .28); transform: scale(1.025); }
}

@keyframes tile-pop {
  from { opacity: .3; transform: scale(.7) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes float-one {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-7px) rotate(-2.5deg); }
}

@keyframes float-two {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(7px) rotate(2.5deg); }
}

@keyframes champion-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(-1.5deg); }
}

@keyframes button-shine { to { left: 140%; } }

@keyframes confetti-drift {
  0%, 100% { translate: 0 0; }
  50% { rotate: 12deg; translate: 4px -10px; }
}

@media (max-width: 1050px) {
  .hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
  }

  .floating-two { right: 8px; }
}

@media (max-width: 720px) {
  .section-heading {
    margin-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 64px);
    letter-spacing: -.045em;
    line-height: .98;
  }

  .hero h1 span {
    line-height: 1.04;
    margin-top: .12em;
  }

  .section h2,
  .steps-intro h2,
  .spotlight-copy h2 {
    font-size: clamp(40px, 12vw, 50px);
    line-height: 1.06;
  }

  .final-cta h2 {
    font-size: clamp(48px, 13vw, 68px);
    line-height: 1;
  }

  .feature-card:hover {
    box-shadow: 6px 6px 0 var(--ink);
    transform: none;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-card h3 {
    font-size: clamp(24px, 7vw, 28px);
    margin-top: 22px;
  }

  .feature-rich {
    min-height: 0;
  }

  .feature-rich > p {
    margin-bottom: 22px;
  }

  .accordion summary {
    gap: 16px;
    line-height: 1.25;
  }

  .accordion summary span {
    flex: 0 0 34px;
  }

  .accordion details p {
    margin-right: 0;
  }

  .guest-import-demo header > div {
    min-width: 0;
  }

  .guest-import-demo header strong,
  .guest-import-demo header small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .number-grid span.called { animation: none; }
}

/* Refined product-led hero */
.hero {
  background:
    radial-gradient(circle at 7% 12%, rgba(255, 239, 145, .82), transparent 27%),
    radial-gradient(circle at 91% 88%, rgba(112, 216, 208, .2), transparent 24%),
    linear-gradient(135deg, #fff9df, #fffdf5 58%);
}

.hero-copy {
  max-width: 620px;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, .72);
  border: 1.5px solid rgba(41, 37, 82, .22);
  border-radius: 999px;
  display: inline-flex;
  padding: 9px 13px;
}

.hero h1 {
  font-size: clamp(58px, 5.6vw, 86px);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 25px 0 24px;
  max-width: 620px;
}

.hero h1 span {
  color: var(--coral-dark);
  display: block;
  font-style: italic;
  line-height: 1;
  margin-top: .08em;
  position: relative;
  width: max-content;
}

.hero h1 span::after {
  background: var(--butter);
  border-radius: 999px;
  bottom: .02em;
  content: "";
  height: .12em;
  left: .03em;
  position: absolute;
  transform: rotate(-1.4deg);
  width: 96%;
  z-index: -1;
}

.hero-copy > p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
}

.trust-list {
  gap: 9px;
  margin-top: 24px;
}

.trust-list li {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(41, 37, 82, .13);
  border-radius: 999px;
  color: var(--ink);
  padding: 7px 11px;
}

.hero-game {
  margin-left: auto;
  max-width: 720px;
  width: 100%;
}

.game-window {
  animation-name: hero-window-arrive;
  border-radius: 24px;
  box-shadow: 12px 12px 0 var(--ink);
  transform: none;
}

.game-window-head {
  min-height: 54px;
  padding: 0 18px;
}

.game-window-head b {
  letter-spacing: .08em;
}

.game-body {
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 450px;
}

.caller-preview {
  padding: 30px 20px 22px;
}

.number-ball {
  height: 150px;
  margin: 30px 0 20px;
  width: 150px;
}

.number-ball span {
  font-size: 70px;
}

.board-preview {
  padding: 27px 22px;
}

.board-title span {
  font-size: 24px;
}

.number-grid {
  gap: 7px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 24px;
}

.number-grid span {
  min-height: 34px;
}

.floating-card {
  box-shadow: 4px 5px 0 var(--coral);
  max-width: 220px;
  padding: 11px 13px;
}

.floating-one {
  bottom: -34px;
  left: -24px;
}

.floating-two {
  right: -18px;
  top: -32px;
}

@keyframes hero-window-arrive {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1120px) {
  .hero {
    gap: clamp(48px, 5vw, 82px);
    grid-template-columns: minmax(410px, .88fr) minmax(570px, 1.12fr);
    max-width: none;
    min-height: 720px;
    padding: 74px max(32px, calc((100vw - 1320px) / 2)) 88px;
  }

  .hero::before {
    background: var(--butter);
    border: 2px solid var(--ink);
    border-radius: 50%;
    bottom: 52px;
    box-shadow: 4px 4px 0 var(--coral);
    content: "90";
    display: grid;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 800;
    height: 54px;
    left: max(24px, calc((100vw - 1420px) / 2));
    place-items: center;
    position: absolute;
    transform: rotate(-8deg);
    width: 54px;
  }
}

@media (max-width: 1119px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 100px;
    padding-top: 70px;
  }

  .hero-copy {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
  }

  .hero .eyebrow,
  .hero-actions,
  .trust-list {
    justify-content: center;
  }

  .hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
  }

  .hero h1 span {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-game {
    margin: 46px auto 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section-heading,
  .steps,
  .spotlight-card,
  .faq {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 20px;
  }

  .section-heading > p {
    max-width: 54ch;
  }

  .steps {
    gap: 48px;
    padding: 52px 36px;
  }

  .spotlight-copy {
    padding: 64px 36px;
  }

  .faq-heading {
    position: static;
  }

  .accordion {
    margin-top: 40px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 48px 18px 72px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero .eyebrow {
    font-size: 11px;
    padding: 8px 10px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
    letter-spacing: -.045em;
    line-height: 1;
    margin-top: 21px;
  }

  .hero-copy > p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 18px;
  }

  .trust-list {
    gap: 7px;
  }

  .trust-list li {
    font-size: 12px;
    padding: 6px 9px;
  }

  .hero-game {
    margin-top: 38px;
  }

  .game-window {
    border-radius: 18px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .game-window-head {
    min-height: 46px;
  }

  .game-window-head b {
    font-size: 9px;
  }

  .game-window-head em {
    display: none;
  }

  .game-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .caller-preview {
    grid-template-columns: 80px 1fr;
    padding: 15px;
  }

  .number-ball {
    height: 80px;
    width: 80px;
  }

  .number-ball span {
    font-size: 40px;
  }

  .board-preview {
    min-height: 405px;
    padding: 20px 14px;
  }

  .board-title span {
    font-size: 20px;
  }

  .number-grid {
    gap: 5px;
    margin-top: 18px;
  }

  .number-grid span {
    min-height: 31px;
  }

  .winner-toast {
    bottom: 16px;
    left: 14px;
    right: 14px;
  }

  .floating-card {
    display: none;
  }
}
