/* The splash on the hero's iPad and iPhone screens (Faiq, 3 Dec 2026): all Great Eastern red, the full logo in white,
   and a departures board of frosted-glass split-flap tiles that clatter into "Travel Insurance" (splash.js). A dotted
   flight path runs behind the glass, so it reads as glass. Sized in container units, so one splash fits either screen.
   (Comps: site/.comps/splash-code/, option C.) */

.splash {
  container-type: size;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7cqh;
  background:
    radial-gradient(120% 90% at 18% 0%, #f5373d 0%, #dd141c 42%, #b00c14 100%);
  font-family: var(--sans);
}

/* the flight path behind the board, one drawing per screen shape */
.splash .route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.splash .route path {
  fill: none;
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 5.5;
}
.splash .route.tall {
  display: none;
}
@container (max-aspect-ratio: 3/4) {
  .splash .route.wide {
    display: none;
  }
  .splash .route.tall {
    display: block;
  }
}

.splash .logo {
  position: relative;
  width: 34cqw;
}
.splash .logo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* the board: nine columns, "TRAVEL", two blanks and the plane over "INSURANCE" */
.splash .flaps {
  --w: 7cqw;
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, var(--w));
  gap: calc(var(--w) * 0.11);
}
.splash .tile {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(var(--w) * 1.34);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-bottom-color: rgb(255 255 255 / 0.12);
  border-radius: calc(var(--w) * 0.1);
  /* frosted glass: lighter on the top flap, a hairline split, the red showing through (a dark glass was tried and
     reverted, Faiq, 3 Dec 2026). The top flap's saturated red is drawn, not a live blur: twenty backdrop blurs inside
     the tilting iPad cost 100-160 ms a frame as it stood up (Faiq, 3 Dec 2026: "a glitch from tilted to puff
     standing straight"); matched to the blurred look by eye and pixel */
  background:
    linear-gradient(rgb(255 112 117) 0%, rgb(255 70 76) 14%, rgb(255 44 51) 40%, rgb(255 22 30) 48.5%, transparent 49%),
    linear-gradient(rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0.16) 49%, rgb(255 255 255 / 0.07) 51%, rgb(255 255 255 / 0.12) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    0 calc(var(--w) * 0.1) calc(var(--w) * 0.24) rgb(110 0 6 / 0.3);
  color: #fff;
  font: 700 calc(var(--w) * 0.84) / 1 var(--sans);
  letter-spacing: 0;
  text-shadow: 0 1px calc(var(--w) * 0.04) rgb(120 0 6 / 0.35);
}
.splash .tile::after {
  content: '';
  position: absolute;
  inset: 49.4% 0 auto;
  height: 1.2%;
  background: rgb(120 0 6 / 0.4);
}
.splash .tile span {
  display: block;
}
/* the plane: the one solid tile, white with the red plane */
.splash .tile.go {
  border-color: #fff;
  background: linear-gradient(#fff 0 49%, #f4e4e4 51%, #fbf6f6 100%);
}
.splash .tile.go::after {
  background: rgb(176 12 20 / 0.25);
}
.splash .tile.go svg {
  width: 62%;
  fill: #dd141c;
  rotate: 90deg;
}

@container (max-aspect-ratio: 3/4) {
  .splash {
    gap: 9cqh;
  }
  .splash .logo {
    width: 66cqw;
  }
  .splash .flaps {
    --w: 9cqw;
  }
}

/* (the screens' own white gives way to the splash, and their glare is kept off it so the red stays vibrant, as in
   the comps' option A, Faiq, 3 Dec 2026) */
.ipad-screen.splash,
.phone-screen.splash {
  background:
    radial-gradient(120% 90% at 18% 0%, #f5373d 0%, #dd141c 42%, #b00c14 100%);
}

.ipad-screen.splash::after,
.phone-screen.splash::after {
  display: none;
}
