/* The pre-launch homepage. Same kit as the game (direction A · Ink & scene): ink, Lilita One, Nunito, one green button. */
:root { --ink: #14193A; --green: #5BD12E; --green-d: #3A9A16; --butter: #FFE36B; --pink: #FF4FA8; --card: #1E2550; --soft: #C9D3FF; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: #fff; font: 800 17px/1.45 Nunito, system-ui, sans-serif; }
img, video { display: block; max-width: 100%; }
a { color: #fff; }
h1, h2, h3, p { margin: 0; }
.l1 { font-family: 'Lilita One', sans-serif; font-weight: 400; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 9; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 10px; }

/* Outlined text, as in the game: a stroked copy behind the letters and an ink copy below them. */
.ol, .ol-s { position: relative; isolation: isolate; color: #fff; }
.ol::before, .ol-s::before, .ol::after, .ol-s::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; color: transparent; pointer-events: none; user-select: none; white-space: inherit; text-align: inherit; }
.ol::before, .ol-s::before { z-index: -1; }
.ol::after, .ol-s::after { z-index: -2; color: var(--ink); }
.ol::before { -webkit-text-stroke: 6px var(--ink); } .ol::after { transform: translateY(4px); }
.ol-s::before { -webkit-text-stroke: 3.5px var(--ink); } .ol-s::after { transform: translateY(2px); }

/* hero: the scene, dimmed, with the headline and the email form in the first view */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero > picture, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(20, 25, 58, .62), rgba(20, 25, 58, .78) 50%, var(--ink) 100%); }
.hero > .wrap { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 28px; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 28px; line-height: 1; text-decoration: none; }
.brand img { flex: none; width: 36px; height: 36px; filter: drop-shadow(0 2px 0 var(--ink)); }
.insta { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 99px; background: rgba(20, 25, 58, .55); border: 3px solid var(--ink); font-size: 14px; text-decoration: none; }
.hero-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(6px, 1.6svh, 24px) 0 clamp(4px, 1svh, 16px); text-align: center; }
h1 { font-size: clamp(31px, 9vw, 46px); line-height: 1.02; color: var(--butter); }
h1.ol { color: var(--butter); }
.lede, h1 { text-wrap: balance; }
.lede { margin-top: clamp(8px, 1.4svh, 14px); font-size: clamp(21px, 6vw, 26px); line-height: 1.1; }
/* what you do, shown: ten seconds of the real level 1 scene, critters moving, the kitty in his spot. A ring rests on two
   other cats, then finds him, and the game's own win look follows: the butter ring, FOUND IT! and a burst of stars.
   No clock and no buttons, so the one idea is "find this kitty". Narrows on short screens, never cropped. */
.demo { position: relative; align-self: center; width: auto; max-width: 100%; height: min(244px, 35svh); aspect-ratio: 706 / 488; margin-top: clamp(10px, 1.8svh, 18px); border-radius: 20px; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: var(--ink); overflow: hidden; container-type: inline-size; }
.demo-zoom { position: absolute; inset: 0; transform-origin: 55.7% 60.7%; }
.demo-zoom video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-dim { position: absolute; inset: 0; background: rgba(20, 25, 58, .5); opacity: 0; -webkit-mask: radial-gradient(circle at 55.7% 60.7%, transparent 9.5cqw, #000 10cqw); mask: radial-gradient(circle at 55.7% 60.7%, transparent 9.5cqw, #000 10cqw); }
.demo-ring { position: absolute; left: 55.7%; top: 60.7%; width: 20cqw; height: 20cqw; margin: -10cqw 0 0 -10cqw; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--ink); }
.demo-burst { position: absolute; left: 55.7%; top: 60.7%; width: 0; height: 0; }
.demo-burst i { position: absolute; left: -2.2cqw; top: -2.2cqw; width: 4.4cqw; height: 4.4cqw; background: var(--c); opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.demo-chip { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px 0 4px; border-radius: 99px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink); font-size: 16px; line-height: 1; white-space: nowrap; }
.demo-chip img { width: 30px; height: 30px; border-radius: 50%; background: var(--butter); }
.demo-won { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-size: 13cqw; line-height: 1; color: var(--butter); opacity: 0; }
.demo-won.ol { color: var(--butter); }
@media (prefers-reduced-motion: no-preference) {
  .demo-zoom { animation: demo-zoom 10s ease-in-out infinite; }
  .demo-dim { animation: demo-on 10s ease-in-out infinite; }
  .demo-ring { animation: demo-ring 10s ease-in-out infinite; }
  .demo-chip { animation: demo-off 10s ease-in-out infinite; }
  .demo-won { animation: demo-won 10s cubic-bezier(.2, 1.4, .4, 1) infinite; }
  .demo-burst i { animation: demo-burst 10s ease-out infinite; }
  @keyframes demo-ring {
    0% { left: 20%; top: 56%; opacity: 0; border-color: #fff; background: transparent; box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--ink); }
    6%, 20% { left: 20%; top: 56%; opacity: 1; border-color: #fff; background: transparent; }
    34%, 44% { left: 77%; top: 25%; opacity: 1; border-color: #fff; background: transparent; }
    58% { left: 55.7%; top: 60.7%; opacity: 1; border-color: #fff; background: transparent; box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--ink); transform: scale(1); }
    61% { transform: scale(1.18); }
    64%, 93% { left: 55.7%; top: 60.7%; opacity: 1; border-color: var(--butter); background: rgba(255, 227, 107, .3); box-shadow: 0 0 0 3px var(--ink), 0 0 30px rgba(255, 227, 107, .8); transform: scale(1); }
    100% { left: 55.7%; top: 60.7%; opacity: 0; border-color: var(--butter); background: rgba(255, 227, 107, .3); }
  }
  @keyframes demo-zoom { 0%, 60% { transform: scale(1); } 70%, 92% { transform: scale(1.3); } 100% { transform: scale(1); } }
  @keyframes demo-on { 0%, 59% { opacity: 0; } 65%, 93% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes demo-off { 0%, 58% { opacity: 1; } 62%, 95% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes demo-won { 0%, 61% { opacity: 0; transform: scale(.4) rotate(-6deg); } 66% { opacity: 1; transform: scale(1.08) rotate(-2deg); } 69%, 93% { opacity: 1; transform: scale(1) rotate(-2deg); } 97%, 100% { opacity: 0; transform: scale(1) rotate(-2deg); } }
  @keyframes demo-burst { 0%, 60% { opacity: 0; transform: rotate(var(--a)) translateY(-8cqw) scale(.4); } 62% { opacity: 1; } 72% { opacity: 1; transform: rotate(var(--a)) translateY(-22cqw) scale(1.2); } 78%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(-26cqw) scale(.6); } }
}
@media (prefers-reduced-motion: reduce) { .demo-ring { border-color: var(--butter); background: rgba(255, 227, 107, .3); } }

/* the email form: Box Kitty and his bubble on top, one field, one green button */
.signup { position: relative; }
.host { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: -22px 0 -6px; }
.fig { position: relative; display: block; flex: none; width: 84px; height: 84px; margin: 0 -4px -6px -8px; }
.fig > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fig > .sh { transform: translateY(5px); filter: brightness(0) invert(0.2) sepia(1) saturate(6) hue-rotate(200deg) brightness(0.41); }
/* the game's bubble (kit.tsx Host), with the tail redrawn as one smooth curve out of the side */
.bubble { position: relative; flex: 0 1 auto; display: flex; align-items: center; min-height: 52px; margin-bottom: 14px; padding: 8px 12px 9px; border-radius: 15px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); text-align: left; }
.bubble .tail { position: absolute; left: -21px; top: 50%; margin-top: -11px; overflow: visible; } /* 22 px tall: it starts and ends on the straight part of the side, between the rounded corners */
.bubble span { font-size: 16px; line-height: 1.15; color: var(--ink); }
.field { display: block; width: 100%; height: 60px; padding: 0 18px; border-radius: 20px; border: 4px solid var(--ink); background: #fff; color: var(--ink); font: 800 18px Nunito, system-ui, sans-serif; box-shadow: 0 5px 0 var(--ink); }
.field::placeholder { color: #8A8FB8; }
.field:focus-visible, .big:focus-visible, .pill:focus-visible, a:focus-visible { outline: 4px solid var(--butter); outline-offset: 3px; }
.big { display: flex; align-items: center; justify-content: center; width: 100%; height: 76px; margin-top: 14px; padding: 0 12px 4px; border-radius: 26px; background: var(--green); border: 4px solid var(--ink); box-shadow: inset 0 -9px 0 var(--green-d), inset 0 6px 0 rgba(255, 255, 255, .4), 0 7px 0 var(--ink); color: #fff; font-size: clamp(22px, 6.4vw, 27px); line-height: 1; cursor: pointer; }
.big:active { transform: translateY(3px); box-shadow: inset 0 -9px 0 var(--green-d), inset 0 6px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--ink); }
.big[disabled] { filter: saturate(.5); cursor: default; }
.note { margin-top: 16px; text-align: center; font-size: 13px; font-weight: 900; color: #D6E0FF; }
.error { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: #FFE1E6; color: #8A0F28; font-size: 15px; text-align: center; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { padding: 20px 18px 22px; border-radius: 24px; background: #fff; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); color: var(--ink); text-align: center; }
.done h2 { font-size: 30px; line-height: 1.05; }
.done p { margin-top: 8px; font-size: 16px; line-height: 1.3; }
.done b { overflow-wrap: anywhere; }
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: 14px; border-radius: 20px; background: rgba(20, 25, 58, .55); border: 3px solid var(--ink); color: #fff; font-size: 19px; text-decoration: none; cursor: pointer; }
.done .pill { background: var(--ink); }
[hidden] { display: none !important; }

/* sections under the hero */
section { padding: 44px 0 8px; }
section h2 { font-size: 34px; line-height: 1.05; text-align: center; }
section .sub { margin-top: 10px; text-align: center; color: var(--soft); }
/* The middle of the page is three light bands between the dark scene on top and the dark form at the end. Every join
   is its own skyline silhouette (market, meadow, hills, night trees), an SVG used as a mask in the lower band's colour. Small
   animals from the scenes stand in front of it. */
.band { position: relative; z-index: 3; overflow-x: clip; padding: 48px 0 calc(var(--edge) + 40px); background: var(--bg); color: var(--fg); }
.band, .again { --edge: clamp(84px, 12vw, 150px); }
.band::before, .again::before { content: ''; position: absolute; left: 0; right: 0; top: calc(1px - var(--edge)); height: var(--edge); background: var(--top);
  -webkit-mask: var(--sky) 50% 100% / auto 100% no-repeat; mask: var(--sky) 50% 100% / auto 100% no-repeat; }
.band h2, .band .sub { position: relative; }
.band .sub { color: var(--sub); }
/* first band: calm cream. Its top is a cream garden-party skyline (toadstools, bunting, a teapot table) rising into the dark above (a traced SVG silhouette, no repeating pattern), so dark meets light along a shape and not along a ruled line. */
.wraps { --fg: var(--ink); --sub: #4A4770; --bg: linear-gradient(#FFF1D0, #FFE9B8); padding-top: calc(var(--edge) + 48px); }
.band.wraps::before { top: -1px; background: var(--ink); -webkit-mask: none; mask: none; }
.band.wraps::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--edge); background: #FFF1D0; -webkit-mask: url(/home/edge-top.svg) 50% 100% / auto 100% no-repeat; mask: url(/home/edge-top.svg) 50% 100% / auto 100% no-repeat; }
/* the three light bands are tints of the three brand colours: butter (cream), green (sage), ink (lavender) */
.sage { --top: #DDF0CB; --fg: var(--ink); --sub: #3C4A3A; --bg: linear-gradient(#DDF0CB, #CDE8B6); --sky: url(/home/edge-meadow.svg); }
.band > .wrap { position: relative; }
.lav { --top: #E9E4F8; --fg: var(--ink); --bg: linear-gradient(#E9E4F8, #DCD5F3); --sky: url(/home/edge-hills.svg); }
.crit { position: absolute; z-index: 1; bottom: calc(100% - 3px); width: 52px; height: 52px; pointer-events: none; }
.c-a { left: max(7%, calc(50% - 250px)); } .c-b { right: max(8%, calc(50% - 240px)); transform: scaleX(-1); }
.c-c { left: max(31%, calc(50% - 150px)); } .c-d { right: max(29%, calc(50% - 160px)); bottom: calc(100% + 2px); }
.c-glide { left: -60px; }
.fish { display: inline-block; width: 30px; height: 30px; margin: -8px 0 -8px 2px; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .c-glide { animation: glide 44s linear infinite; }
  .fish { animation: bob 2.4s ease-in-out infinite; }
  .rv li { opacity: 0; }
  .rv.in li { animation: tile-in .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes glide { to { transform: translateX(calc(100vw + 120px)); } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-8deg); } }
@keyframes tile-in { from { opacity: 0; transform: scale(.5) rotate(-9deg); } to { opacity: 1; transform: none; } }
/* covered scenes are the real picture, blurred and dimmed, so they read as kept back; the first kitty stands in lantern light */
.band .scenes { gap: 9px; }
.band .scenes li { border-radius: 13px; box-shadow: 0 5px 0 rgba(20, 25, 58, .22); }
.band .scenes li::before { content: ''; position: absolute; inset: -5px; background: inherit; }
.band .scenes .cov::before { filter: blur(3.5px) brightness(.5) saturate(.85); }
.band .scenes .cov::after { inset: 0; background: none; border: 0; color: var(--butter); font-size: 22px; text-shadow: 0 2px 0 #0B0E24; }
.band .kitties { grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: start; max-width: 460px; margin: 30px auto 0; }
.band .kitties img, .band .shape { width: 100%; max-width: 104px; height: auto; aspect-ratio: 1; }
.band .kitties li:first-child { background: radial-gradient(closest-side at 50% 44%, rgba(255, 227, 107, .75), transparent); }
.band .kitties span { margin-top: 2px; font-size: 16px; }
.band .shape { background: #D9C28E; }
.sage .steps li { font-size: 18px; }
.sage .steps li::before { background: var(--butter); }
.lav .faq dt { color: var(--ink); border-color: rgba(20, 25, 58, .14); }
.lav .faq dd { color: #46436B; }
.lav .faq a { color: var(--ink); }
/* the three beats of a hunt: a real sequence, so it is numbered; plain lines, no cards */
.steps { list-style: none; margin: 24px auto 0; padding: 0; max-width: 400px; display: grid; gap: 16px; counter-reset: s; }
.steps li { position: relative; padding-left: 50px; min-height: 36px; display: flex; align-items: center; font-size: 17px; line-height: 1.3; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 99px; background: var(--butter); border: 3px solid #0B0E24; color: var(--ink); font: 400 20px/30px 'Lilita One', sans-serif; text-align: center; }
.kitties + .sub { margin-top: 20px; }
section .sub b { color: #fff; font-weight: 900; }
/* ten scene tiles from one picture; eight still have the cloth on */
.scenes { list-style: none; margin: 20px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scenes li { position: relative; aspect-ratio: 1; border-radius: 12px; border: 3px solid #0B0E24; background: url(/home/scenes.webp) 0 0 / 500% 200%; overflow: hidden; }
.scenes li:nth-child(5n+2) { background-position-x: 25%; } .scenes li:nth-child(5n+3) { background-position-x: 50%; } .scenes li:nth-child(5n+4) { background-position-x: 75%; } .scenes li:nth-child(5n+5) { background-position-x: 100%; }
.scenes li:nth-child(n+6) { background-position-y: 100%; }
.scenes .cov::after { content: '?'; position: absolute; inset: 38% 0 0; display: grid; place-items: center; background: #262D60; border-top: 3px solid #0B0E24; color: var(--butter); font: 400 20px/1 'Lilita One', sans-serif; }
.shape { display: block; width: 132px; height: 132px; margin: 0 auto; background: #39427F; -webkit-mask: var(--k) center / contain no-repeat; mask: var(--k) center / contain no-repeat; }
/* the kitties sit straight on the page, two by two */
.kitties { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.kitties li { text-align: center; }
.kitties img { width: 132px; height: 132px; margin: 0 auto; }
.kitties span { display: block; margin-top: -4px; font-size: 20px; line-height: 1.1; }
.faq { margin: 24px 0 0; }
.faq dt { margin-top: 20px; padding-top: 20px; border-top: 3px solid #262D60; font: 400 21px/1.15 'Lilita One', sans-serif; }
.faq dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--soft); font-size: 16.5px; line-height: 1.4; }
.again { --top: var(--ink); --sky: url(/home/edge-trees.svg); position: relative; z-index: 3; overflow-x: clip; padding: 48px 0 40px; background: var(--ink); }
.again > .wrap { position: relative; }
.again h2 { margin-bottom: 24px; }
footer { position: relative; z-index: 3; margin-top: 0; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); background: #0E1230; border-top: 3px solid #0B0E24; text-align: center; }
.foot-brand { display: inline-block; font-size: 30px; line-height: 1; color: #fff; text-decoration: none; }
footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 340px; margin: 20px auto 0; }
footer nav a:last-child { grid-column: 1 / -1; }
footer nav a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 99px; background: var(--card); border: 3px solid #0B0E24; color: #fff; font-size: 15px; text-decoration: none; }
footer nav a:hover { background: #2A3266; }
footer nav svg { flex: none; color: var(--butter); }
.foot-c { margin-top: 20px; color: #8089B8; font-size: 13px; }

/* plain pages: privacy and the two confirm pages */
.page { padding: 20px 0 30px; }
.page .bar { margin-bottom: 26px; }
.page h1 { margin: 0 0 14px; text-align: left; font-size: 38px; }
.page h2 { margin: 26px 0 8px; font: 400 23px/1.15 'Lilita One', sans-serif; text-align: left; }
.page p, .page li { color: #E4E9FF; font-size: 16.5px; line-height: 1.5; }
.page p + p { margin-top: 10px; }
.page ul { margin: 8px 0 0; padding-left: 22px; }
.center { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.center main { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 20px; }
.center main img.kitty { width: 140px; height: 140px; margin: 0 auto; }
.center main .who { margin-top: 30px; font-size: 26px; line-height: 1.1; }
.center main h1 { text-align: center; font-size: clamp(40px, 11vw, 52px); }
.center main p { margin-top: 12px; font-size: 19px; line-height: 1.3; color: #fff; }
.center main .pill { margin-top: 22px; }
.center main .pill + .pill { margin-top: 12px; }

/* on the plain ink pages the translucent pill has nothing behind it, so it gets a solid tone */
.page .insta, .center .insta, .center .pill { background: #262D60; border-color: #0B0E24; }
.center main .big { margin-top: 24px; }

@media (min-width: 900px) {
  .hero > .wrap { max-width: 600px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}
