@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --sky: #070C1C; --screen: #0E1729; --card: #16223A; --row: #1F2E4B;
  --text: #F1E8D8; --text-2: #AEB6C8; --dawn: #F2B880; --moon: #B9B4FF; --line: rgba(241, 232, 216, .16);
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left), min(5vw, 64px));
  --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: #000; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--screen); color: var(--text); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -.012em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; font-weight: 600; }
p { margin: 0; }
a { color: var(--dawn); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--text); color: var(--screen); padding: 8px 14px; border-radius: 8px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.pad { padding-block: clamp(72px, 12vh, 150px); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.42; max-width: 32em; }
.muted { color: var(--text-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 12px; background: var(--dawn); color: #1B1420; font: 700 1.05rem/1 var(--display); text-decoration: none; cursor: pointer; }
.btn:hover { background: #F8C898; }

/* Hero: a night sky, with Kipi asleep in front of it */
.hero { position: relative; isolation: isolate; min-height: max(100svh, 680px); display: flex; flex-direction: column; background: linear-gradient(#04060F, #0A1124 62%, #16254A); overflow: hidden; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
#fig { position: absolute; z-index: -2; left: 73%; top: 33%; height: 62%; aspect-ratio: 5 / 6; transform: translate(-50%, -50%); pointer-events: none; }
.hero-in { position: relative; padding: clamp(24px, 5.5vh, 64px) var(--gutter) 0; max-width: 1280px; width: 100%; margin-inline: auto; display: grid; justify-items: start; gap: clamp(12px, 2.2vh, 24px); }
.hero h1 { font-size: clamp(3.4rem, min(9vw, 13.5vh), 7.6rem); line-height: .86; font-weight: 800; letter-spacing: -.028em; padding-top: .08em; }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.38; max-width: 27em; }
.launch-line { font-weight: 700; color: var(--dawn); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.cd { display: flex; gap: clamp(16px, 2.6vw, 34px); font-family: var(--display); }
.cd b { display: block; overflow: hidden; font-size: clamp(2.7rem, min(6.6vw, 9.4vh), 5.2rem); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: #FFF8EC; }
.cd b span { display: inline-block; }
.cd b span.roll { animation: roll .38s var(--out); }
@keyframes roll { from { transform: translateY(-46%); opacity: 0; } }
.cd small { display: block; margin-top: 2px; font: 400 clamp(.8rem, 1.1vw, .92rem)/1.2 var(--body); color: var(--text-2); }
.launched .cd { display: none; }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: min(100%, 470px); }
.signup input { min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(241, 232, 216, .32); background: rgba(4, 6, 15, .55); color: var(--text); font: inherit; }
.signup input::placeholder { color: var(--text-2); }
.signup-note { grid-column: 1 / -1; font-size: .88rem; color: var(--text-2); min-height: 1.4em; }

/* The camp along the ground, with Kipi big in front of it */
.camp { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(190px, min(40vh, 56vw), 460px); pointer-events: none; }
.horizon { max-width: none; position: absolute; left: -558.7%; width: 1217%; bottom: 0; height: 100%; pointer-events: none; }
.campwrap { position: absolute; bottom: 0; left: 50%; transform: translateX(-16%); height: 100%; aspect-ratio: 358 / 180; }
.camp-art { width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.camp-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.glow { position: absolute; left: 63.5%; top: 68%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 171, 84, .3), rgba(255, 171, 84, 0) 66%); mix-blend-mode: screen; animation: flicker 2.6s infinite alternate ease-in-out; }
@keyframes flicker { 0% { opacity: .7; } 30% { opacity: 1; } 55% { opacity: .78; } 80% { opacity: .95; } 100% { opacity: .72; } }
.sleeper { position: absolute; left: 62%; bottom: 2%; width: 48%; }
.sleeper > img { width: 100%; transform-origin: 40% 88%; animation: breathe 4.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.018, 1.035); } }
.zzz { position: absolute; left: 42%; top: 20%; font: 700 clamp(1.3rem, 2.8vw, 2.5rem)/1 var(--display); color: #DAD7FF; }
.zzz span { position: absolute; opacity: 0; animation: zzz 5.4s ease-out infinite; }
.zzz span:nth-child(2) { animation-delay: 1.8s; font-size: .78em; }
.zzz span:nth-child(3) { animation-delay: 3.6s; font-size: .6em; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0) scale(.55) rotate(-8deg); } 14% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: 0; transform: translate(2.2em, -3.6em) scale(1.25) rotate(12deg); } }



/* Kipi */
.kipi { background: var(--screen); overflow: clip; }
.kipi-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); align-items: center; }
.pet { position: relative; background: none; border: 0; padding: 0; width: min(100%, 520px); justify-self: center; cursor: pointer; }
.pat-ring { position: absolute; left: 50%; top: 56%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--dawn); opacity: 0; animation: ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .85; transform: translate(-50%, -50%) scale(.72); } 80%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.pat-hint { position: absolute; left: 66%; top: 7%; padding: 8px 16px; border-radius: 16px 16px 16px 4px; background: var(--text); color: #1B1420; font: 700 clamp(1.05rem, 1.8vw, 1.35rem)/1.1 var(--display); white-space: nowrap; animation: nudge 2.2s ease-in-out infinite; transform-origin: 0 100%; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-5deg) scale(1.06); } 80% { transform: rotate(4deg) scale(1.06); } 90% { transform: rotate(-2deg); } }
.pet.patted .pat-ring, .pet.patted .pat-hint { display: none; }
.pet img { width: 100%; transform-origin: 50% 88%; }
.js .pet:not(.in) img { transform: translateY(70%) scale(.7, 1.1); opacity: 0; }
.js .pet.in img { transition: transform .9s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.pet.hop img { animation: hop .7s cubic-bezier(.3, .7, .3, 1); }
@keyframes hop { 18% { transform: scale(1.06, .92); } 48% { transform: translateY(-11%) scale(.97, 1.05); } 76% { transform: scale(1.05, .95); } }
.emote { position: absolute; left: var(--x); top: 22%; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1; pointer-events: none; color: #E7A9A0; animation: float 1.15s ease-out forwards; }
@keyframes float { from { opacity: 0; transform: translateY(14px) scale(.6); } 25% { opacity: 1; } to { opacity: 0; transform: translateY(-90px) scale(1.2); } }
.kipi-copy { display: grid; gap: 16px; }
.kipi-copy h2 { font-size: clamp(3rem, 8vw, 7rem); line-height: .95; font-weight: 800; }
/* The flow: the phone stays put, its screen is swapped, and only the text scrolls. The sky behind it shifts with each step. */
/* One sky layer per step, cross-faded by opacity, so the colour change stays off the main thread. */
.flow { position: relative; isolation: isolate; background: #04060F; }
.flow-sky i { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s ease; will-change: opacity; background: linear-gradient(180deg, #04060F, var(--c1) 12%, var(--c2) 88%, #0A1124); }
.flow-sky i:nth-child(1) { --c1: #0b1030; --c2: #1b2352; }
.flow-sky i:nth-child(2) { --c1: #0b1a36; --c2: #174065; }
.flow-sky i:nth-child(3) { --c1: #16103d; --c2: #30246a; }
.flow-sky i:nth-child(4) { --c1: #0c2038; --c2: #1d5068; }
.flow-sky i:nth-child(5) { --c1: #1a1342; --c2: #5a3470; }
.flow-sky i:nth-child(6) { --c1: #181a38; --c2: #2c3358; }
.flow[data-step="0"] .flow-sky i:nth-child(1), .flow[data-step="1"] .flow-sky i:nth-child(2), .flow[data-step="2"] .flow-sky i:nth-child(3),
.flow[data-step="3"] .flow-sky i:nth-child(4), .flow[data-step="4"] .flow-sky i:nth-child(5), .flow[data-step="5"] .flow-sky i:nth-child(6) { opacity: 1; }
.flow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/stars-tile.svg); opacity: .55; }
.flow h2 { text-align: center; }
.flow-track { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); max-width: 1100px; margin: 0 auto; }
.flow-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; align-content: center; }
.phone { --ph: min(76svh, 700px); position: relative; height: var(--ph); aspect-ratio: 416 / 900; border-radius: calc(var(--ph) * .11); background: #04060F; box-shadow: 0 0 0 6px #070a14, 0 0 0 7.5px rgba(241, 232, 216, .16), 0 40px 90px rgba(0, 0, 0, .5); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; will-change: opacity; }
.phone img.on { opacity: 1; }
.stage-cap { display: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 100svh; display: grid; align-content: center; opacity: .25; transition: opacity .5s ease; }
.step.on { opacity: 1; }
.step h3 { font: 700 clamp(2rem, 4.2vw, 3.4rem)/1.05 var(--display); text-wrap: balance; }
.step .lede { margin-top: 14px; color: var(--text-2); }

.cards { background: var(--card); overflow: clip; }
.cards-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); align-items: end; gap: 24px; }
.cards-head img { width: min(100%, 240px); justify-self: end; margin-bottom: -12px; }
.hand { position: relative; list-style: none; margin: clamp(70px, 12vh, 120px) auto 0; padding: 0; display: flex; justify-content: center; --w: clamp(150px, 19.5vw, 262px); }
.hand li { position: relative; flex: none; width: var(--w); margin-inline: calc(var(--w) * -.235); }
.hand button { all: unset; display: block; width: 100%; aspect-ratio: 340 / 403; position: relative; cursor: pointer; transform-style: preserve-3d; will-change: transform; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .5s var(--out); }
.hand button:focus-visible { outline: 2px solid var(--dawn); outline-offset: 4px; border-radius: 10px; }
.hand li.on { z-index: 20 !important; }
.hand li.on button { transform: translateY(-9%) scale(1.26); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6% / 5%; box-shadow: 0 18px 26px -8px rgba(0, 0, 0, .55); transform: translateZ(.1px); }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hand.settled button, .hand.settled .flip { transform-style: flat; }
.back { transform: rotateY(180deg) translateZ(.1px); }
/* Safari can leave a back face showing through a card at rest, so once dealt the backs go. */
.hand.settled .back { display: none; }
/* The deal: from a face-down stack, each card flies out and turns over */
.js .hand:not(.dealt) button { transform: translate(var(--sx, 0), 40px) rotate(0deg); }
.js .hand:not(.dealt) .flip { transform: perspective(1100px) rotateY(180deg); }
.js .hand.dealing button { transition: transform .85s var(--out) var(--d); }
.js .hand.dealing .flip { transition: transform .75s var(--out) calc(var(--d) + .22s); }
.card-caption { text-align: center; margin-top: clamp(20px, 5vh, 56px); min-height: 5.4em; display: grid; gap: 2px; justify-items: center; }
.card-caption b { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); }
.motion { margin-top: 10px; background: none; color: var(--dawn); border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The catch: plain columns on the page, no boxes */
.terms { background: var(--screen); }
.terms-grid { display: grid; gap: 16px; max-width: 46rem; margin-inline: auto; justify-items: start; }
.free { font: 800 clamp(2.4rem, 6vw, 4.4rem)/1.02 var(--display); color: var(--dawn); text-wrap: balance; }
.premium { display: grid; gap: 12px; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line, rgba(255,255,255,.18)); width: 100%; }
.premium ul { margin: 0; padding-left: 1.1em; display: grid; gap: 14px; font-size: 1.05rem; }
.premium li b { color: var(--text); }
.premium li { color: var(--text-2); }
.price { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--display); color: var(--text); }
.price span { display: block; font: 400 1.05rem/1.3 var(--body); color: var(--text-2); margin-bottom: 4px; }
.price small { font: 400 1.05rem/1.3 var(--body); color: var(--text); }

/* Launch */
.final { background: #04060F; }
.final-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: end; }
.final-copy { display: grid; gap: 22px; justify-items: start; }
.kipi-point { justify-self: end; width: min(100%, 340px); margin-bottom: -40px; }
.kipi-point img { width: 100%; height: auto; display: block; }
.foot { background: #000; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); color: var(--text-2); font-size: .92rem; }
.foot .wrap { padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .social { flex-basis: 100%; }

/* FAQ */
.faq { max-width: 52rem; margin: auto; padding: clamp(16px, 4vh, 40px) var(--gutter) 80px; }
.faq-head { display: grid; grid-template-columns: minmax(0, 1fr) clamp(100px, 22vw, 190px); align-items: center; gap: 16px; }
.faq h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1; font-weight: 800; }
.faq-group { margin-top: clamp(32px, 6vh, 56px); }
.faq-group h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; color: var(--dawn); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font: 600 clamp(1.1rem, 2vw, 1.3rem)/1.25 var(--display); list-style-position: outside; }
.faq summary:hover { color: var(--dawn); }
.faq details p { padding: 0 0 18px; color: var(--text-2); max-width: 42em; }

/* Inner page */
.page-top { padding: 20px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--display); color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.prose { max-width: 44rem; margin: auto; padding: clamp(24px, 6vh, 60px) var(--gutter) 80px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1; margin-bottom: 12px; }
.prose h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 600; margin: 34px 0 6px; letter-spacing: 0; }
.prose p, .prose ul { margin: 0 0 12px; }

@media (max-width: 860px) {
  .hero h1 { font-size: clamp(3.3rem, 17.5vw, 5.4rem); }
  .cd { gap: 18px; }
  .hero { min-height: max(100svh, 760px); }
  /* Behind the words on a phone, so it stays quieter there */
  #fig { left: 64%; top: 25%; height: 40%; opacity: .55; }
  .camp { height: 56vw; min-height: 200px; }
  .campwrap { left: 50%; transform: translateX(-54%); }
  .final-grid { grid-template-columns: minmax(0, 1fr); }
  .kipi-point { order: -1; width: 180px; justify-self: start; margin: 0; }
  .sleeper { left: 50%; width: 50%; }
  .kipi-top, .terms-grid { grid-template-columns: minmax(0, 1fr); }
  .pet { width: min(86%, 420px); }
  .cards-head { grid-template-columns: minmax(0, 1fr); }
  .cards-head img { order: -1; width: 112px; justify-self: start; margin: 0; }
  /* A hand is too wide for a phone: the same cards in a row you swipe */
  .hand { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 19vw 36px; margin-inline: calc(var(--gutter) * -1); --w: 62vw; scrollbar-width: none; perspective: none; }
  .hand::-webkit-scrollbar { display: none; }
  .hand li { margin-inline: 8px; scroll-snap-align: center; }
  .hand button { transform: none; }
  .hand li.on button { transform: scale(1.04); }
    .flow-track { grid-template-columns: minmax(0, 1fr); }
  .flow-stage, .steps { grid-area: 1 / 1; }
  .flow-stage { align-content: start; padding-top: 5svh; }
  .phone { --ph: min(52svh, 460px); }
  .stage-cap { display: block; margin-top: 3svh; max-width: 24em; text-align: center; padding-inline: 8px; }
  .stage-cap h3 { font: 700 clamp(1.5rem, 6vw, 2rem)/1.1 var(--display); text-wrap: balance; }
  .stage-cap .lede { margin-top: 8px; color: var(--text-2); font-size: 1rem; }
  .stage-cap.in { animation: capin .4s ease; }
  .step { min-height: 75svh; opacity: 0 !important; pointer-events: none; }
  .step:last-child { min-height: 100svh; }
}
@media (max-width: 460px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
  .cd { gap: 16px; }
}
@keyframes capin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pat-ring { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .zzz span:first-child { opacity: 1; }
  .zzz span:nth-child(2) { opacity: .7; transform: translate(1em, -1.4em); }
  .zzz span:nth-child(3) { opacity: .45; transform: translate(1.6em, -3em); }
}
