/*
   RiseOhana Play Wins - /launch/app styles.

   Extracted verbatim from the milestone v32 app/globals.css: the html/body
   base rules and every .launch-* rule, in source order. The Tailwind import
   and the .wireframe-* rules are omitted - the launch page uses no Tailwind
   utility classes, and the wireframe shell was the React iframe host that
   this port replaces.

   Do not restyle. See Copilot/projects/ for the milestone handoff terms.
*/

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f5f2eb;
}

.launch-page {
  --launch-ink: #111111;
  --launch-blue: #159bd7;
  --launch-pink: #ed4c86;
  --launch-gold: #f2a23a;
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 52px);
  color: var(--launch-ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.95) 0 2px, transparent 3px) 0 0 / 18px 18px,
    linear-gradient(135deg, #21a8e5 0 48%, #158ccb 48% 100%);
  font-family: Arial Rounded MT Bold, Trebuchet MS, Arial, sans-serif;
}

.launch-halftone {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(#111 1px, transparent 1.5px);
  background-size: 10px 10px;
  mask-image: linear-gradient(120deg, #000, transparent 62%);
}

.launch-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(980px, 100%);
  min-height: min(690px, calc(100dvh - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr);
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(26px, 5vw, 68px);
  border: clamp(5px, .7vw, 9px) solid var(--launch-ink);
  border-radius: 28px 10px 34px 14px;
  box-shadow: 15px 18px 0 rgba(17,17,17,.8);
  background:
    linear-gradient(115deg, rgba(255,255,255,.96) 0 65%, rgba(255,244,214,.98) 65% 100%);
  transform: rotate(-.25deg);
}

.launch-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(17,17,17,.15);
  border-radius: 18px 6px 26px 8px;
  pointer-events: none;
}

.launch-brand {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
}

.launch-brand > img {
  width: clamp(230px, 34vw, 405px);
  height: auto;
  filter: drop-shadow(5px 6px 0 rgba(17,17,17,.18));
}

.launch-brand p {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: clamp(16px, 2.2vw, 25px);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

.launch-brand p span:nth-child(1) { color: #d98005; }
.launch-brand p span:nth-child(2) { color: var(--launch-ink); }
.launch-brand p span:nth-child(3) { color: #fff; }

.launch-promise-research {
  position: relative;
  z-index: 0;
  width: fit-content;
  padding: .08em .22em .12em;
  text-shadow: 2px 2px 0 var(--launch-ink);
}

.launch-promise-research::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.03em -.13em -.05em;
  background: var(--launch-pink);
  clip-path: polygon(1% 12%, 99% 0, 97% 91%, 0 100%);
  box-shadow: 4px 4px 0 var(--launch-ink);
}

.launch-copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

.launch-kicker {
  display: inline-block;
  padding: 8px 14px 6px;
  border: 3px solid var(--launch-ink);
  box-shadow: 5px 5px 0 var(--launch-ink);
  color: var(--launch-ink);
  background: var(--launch-gold);
  font-size: clamp(13px, 1.7vw, 18px);
  font-weight: 1000;
  letter-spacing: .07em;
  transform: rotate(-2deg);
}

.launch-copy h1 {
  max-width: 580px;
  margin: 22px 0 10px;
  font-family: Impact, Haettenschweiler, Arial Narrow Bold, sans-serif;
  font-size: clamp(58px, 9vw, 112px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.launch-copy > p {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
}

.launch-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.launch-store-buttons a {
  display: grid;
  min-width: 190px;
  padding: 10px 20px 9px;
  border: 3px solid var(--launch-ink);
  border-radius: 11px;
  box-shadow: 5px 6px 0 var(--launch-pink);
  color: #fff;
  background: var(--launch-ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.launch-store-buttons a:hover,
.launch-store-buttons a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 8px 9px 0 var(--launch-pink);
  transform: translate(-2px, -2px) rotate(-1deg);
}

.launch-store-buttons small {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .05em;
}

.launch-store-buttons strong {
  font-size: 22px;
  line-height: 1.05;
}

.launch-hani {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  width: min(100%, 390px);
  max-height: 430px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(9px 10px 0 rgba(17,17,17,.18));
}

.launch-hani-line {
  position: absolute;
  right: clamp(40px, 7vw, 90px);
  bottom: clamp(32px, 5vw, 60px);
  z-index: 4;
  padding: 9px 15px 8px;
  border: 3px solid var(--launch-ink);
  border-radius: 14px 5px 14px 6px;
  box-shadow: 5px 6px 0 var(--launch-ink);
  background: var(--launch-gold);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 1000;
  transform: rotate(-4deg);
}

.launch-coin {
  position: absolute;
  z-index: 1;
  width: clamp(86px, 13vw, 190px);
  filter: drop-shadow(8px 10px 0 rgba(17,17,17,.34));
}

.launch-coin-one { top: -35px; left: -28px; transform: rotate(-14deg); }
.launch-coin-two { top: 8%; right: -55px; width: clamp(70px, 10vw, 150px); transform: rotate(19deg); }
.launch-coin-three { bottom: -45px; left: 12%; width: clamp(60px, 9vw, 130px); transform: rotate(12deg); }

@media (max-width: 700px) {
  .launch-page { align-items: start; padding: 14px; overflow-y: auto; }
  .launch-card {
    min-height: calc(100dvh - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 10px;
    padding: 24px 22px 18px;
    border-width: 5px;
    border-radius: 18px 7px 24px 9px;
    box-shadow: 8px 10px 0 rgba(17,17,17,.8);
  }
  .launch-brand { display: grid; gap: 8px; }
  .launch-brand > img { width: min(80%, 310px); }
  .launch-brand p { gap: 4px; font-size: clamp(13px, 4vw, 18px); }
  .launch-copy { align-self: start; }
  .launch-kicker { margin-top: 8px; padding: 6px 10px 5px; border-width: 2px; box-shadow: 3px 3px 0 var(--launch-ink); }
  .launch-copy h1 { margin: 16px 0 8px; font-size: clamp(54px, 18vw, 86px); }
  .launch-copy > p { margin-bottom: 17px; font-size: 16px; }
  /* SIZED FOR THREE STORE BUTTONS (Apple, Google, Amazon).
     This was `grid-template-columns: 1fr 1fr` while there were only two. A third
     button orphans onto a second row at half width beside empty space -- on the
     primary mobile CTA page. One full-width button per row is the conventional
     mobile store treatment and reads correctly at ANY count, so a fourth store
     would need no change here. The base rule above is flex + wrap, which already
     handles any count; this breakpoint is the only place the layout knew how many
     buttons there were. */
  .launch-store-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .launch-store-buttons a { min-width: 0; padding: 9px 12px 8px; box-shadow: 3px 4px 0 var(--launch-pink); }
  .launch-store-buttons strong { font-size: clamp(15px, 4.7vw, 21px); }
  .launch-hani { align-self: end; width: min(62vw, 275px); margin-top: -8px; }
  .launch-hani-line { right: 18px; bottom: 22px; padding: 7px 10px 6px; font-size: 18px; }
  .launch-coin-one { left: -45px; }
  .launch-coin-two { right: -45px; }
  .launch-coin-three { display: none; }
}
