/* Mishap landing. Layout comes from Tailwind utilities (tailwind.css); these are
   the pieces that match the app: its category and pack colours, the league
   colours, and phone frames around real screenshots of it (screens/). */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
img{max-width:100%}

/* the language of the page: EN · ES · FR, beside the button that opens the app */
.lang-switch{display:flex;align-items:center;gap:2px;font-family:"IBM Plex Mono",monospace;font-size:11px;font-weight:600;letter-spacing:.06em}
.lang-switch a{padding:6px 8px;border-radius:999px;color:#15151580;transition:.2s}
.lang-switch a:hover{color:#151515;background:#15151510}
.lang-switch a[aria-current="page"]{color:#151515;background:#1515150f}

/* Let the wordmark give the language controls and app button room on phones. */
@media(max-width:1023px){
  #siteHeader nav{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding-inline:12px}
  #siteHeader nav>div.hidden{display:none}
  #siteHeader nav>a:first-child{min-width:0}
  #siteHeader nav>a:first-child img{width:auto;height:auto;max-height:24px;max-width:100%}
  #siteHeader nav>a:last-child{white-space:nowrap;padding-inline:12px}
  #siteHeader .lang-switch a{padding-inline:6px}
}

.nav-link{position:relative}
.nav-link:after{content:"";position:absolute;left:0;bottom:-7px;width:0;height:2px;background:#FF6B35;transition:.25s}
.nav-link:hover:after{width:100%}

/* the dice by the eyebrow: the render needs a little more room than the flat mark did */
.hero-die{width:88px;height:auto}

.hand-note{font-family:"Space Grotesk",sans-serif;font-size:1.05rem;line-height:1.1;font-weight:600}
.scribble-line,.orange-rule{display:block;height:4px;width:72px;background:#FF6B35;border-radius:100%;transform:rotate(-3deg);margin-top:12px}
.section-title{font-family:"Space Grotesk",sans-serif;font-size:clamp(2.4rem,5vw,4.7rem);font-weight:700;line-height:.95;letter-spacing:-.055em}

.cta-btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#FF6B35;color:#fff;padding:15px 24px;
  font-weight:600;box-shadow:0 12px 26px #ff6b3540;transition:transform .2s}
.cta-btn:hover{transform:translateY(-2px)}
.ghost-btn{display:inline-flex;align-items:center;border:1.5px solid #15151526;border-radius:999px;padding:14px 22px;font-weight:600;transition:border-color .2s}
.ghost-btn:hover{border-color:#151515}

/* phones: a frame around a screenshot of the app */
.phone{position:relative;overflow:hidden;border:9px solid #101010;border-radius:46px;background:#101010;box-shadow:0 30px 70px #00000038}
.phone img{display:block;width:100%;height:auto;border-radius:37px}
.phone.glow{box-shadow:0 0 0 1px #ffffff14,0 30px 90px #FFD70030}

/* Warm party photography sits behind a real, readable app screenshot. */
#top.hero-section{background:#19110d;color:#fff;isolation:isolate}
#top .hero-layout{padding-top:36px;padding-bottom:52px;gap:40px}
.hero-phones{position:relative;width:100%;max-width:600px;height:620px;margin:0 auto;isolation:isolate}
.hero-friends{position:absolute;inset:0;width:100%;height:88%;object-fit:cover;object-position:48% center;border-radius:32px;box-shadow:0 24px 60px #703b2426}
.hero-phones:after{content:"";position:absolute;inset:0 0 12%;border-radius:32px;background:linear-gradient(180deg,#0004,transparent 35%,#29140b33);pointer-events:none}
.hero-phones .phone-front{position:absolute;right:20px;bottom:0;z-index:2;width:220px;transform:rotate(6deg) translateY(calc(var(--drift,0) * -12px))}
.hero-note{position:absolute;z-index:3;color:#fff}
.hero-note.a{left:24px;top:24px;font-size:1.35rem;transform:rotate(-3deg);text-shadow:0 2px 12px #0008}
@media(max-width:1023px){
  #top .hero-layout{max-width:760px;gap:28px}
  .hero-phones{height:530px;max-width:600px}
  .hero-friends{object-position:center 38%}
}
@media(max-width:639px){
  #top .hero-layout{display:flex;flex-direction:column;align-items:stretch;padding-top:20px;padding-bottom:36px;gap:20px}
  .hero-copy{display:contents}
  .hero-copy>.hand-note{display:none}
  .hero-copy>div.mt-7{order:1;margin-top:0;gap:10px}
  .hero-die{width:56px}
  .hero-copy h1{order:2;margin-top:0;font-size:clamp(2.8rem,12vw,3.5rem)}
  .hero-copy>p.mt-7{order:4;margin-top:0;font-size:16px;line-height:1.65}
  .hero-copy>div.mt-9{order:5;margin-top:0}
  .hero-copy>p.mt-5{order:6;margin-top:0}
  .hero-phones{order:3;height:370px}
  .hero-friends{height:86%;border-radius:24px;object-position:44% center}
  .hero-phones:after{bottom:14%;border-radius:24px}
  .hero-phones .phone-front{width:146px;right:12px;border-width:6px;border-radius:30px;transform:rotate(5deg) translateY(calc(var(--drift,0) * -8px))}
  .hero-phones .phone-front img{border-radius:24px}
  .hero-note.a{left:18px;top:18px;font-size:1.05rem}
}
@media(prefers-reduced-motion:reduce){.hero-phones .phone-front{transform:rotate(5deg)}}

/* at a glance */
.fact-rail{overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,#0000,#000 7%,#000 93%,#0000);
  mask-image:linear-gradient(90deg,#0000,#000 7%,#000 93%,#0000)}
.fact-track{display:flex;width:max-content;animation:fact-roll 44s linear infinite}
.fact-rail:hover .fact-track,.fact-rail:focus-within .fact-track{animation-play-state:paused}
@keyframes fact-roll{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){
  .fact-rail{overflow-x:auto;scrollbar-width:none}
  .fact-rail::-webkit-scrollbar{display:none}
  .fact-track{animation:none}
}
.fact{flex:0 0 clamp(200px,44vw,300px);padding:30px 18px;text-align:center;border-right:1px solid #ffffff1f}
.fact b{display:block;font:700 clamp(1.45rem,3vw,2.2rem)/1 "Space Grotesk",sans-serif;letter-spacing:-.03em;color:#FF6B35}
.fact span{display:block;margin:8px auto 0;max-width:190px;font-size:13px;line-height:1.45;color:#ffffff99}


/* your party */
.party-visual{position:relative;width:min(290px,76vw);margin:0 auto}
.points-card{position:absolute;left:-80px;bottom:70px;z-index:2;width:230px;border-radius:20px;background:#151515;color:#fff;
  padding:18px 20px;box-shadow:0 22px 44px #0000003d;transform:rotate(-3deg)}
.points-card ul{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none;font-size:13px;color:#ffffffb3}
.points-card b{font-variant-numeric:tabular-nums;display:inline-block;min-width:40px;font:700 19px "Space Grotesk",sans-serif;color:#fff}
@media(max-width:639px){.points-card{position:relative;left:auto;bottom:auto;width:auto;margin-top:-56px;transform:none}}


/* ranked: the league colours from the app */
.leagues{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:540px;margin-bottom:0;padding:0;list-style:none}
.leagues li{display:flex;flex-direction:column;align-items:center;gap:9px;border:1px solid #ffffff1a;border-radius:16px;
  background:#ffffff08;padding:14px 4px 12px;font-size:12px;color:#ffffffcc}
.leagues svg{width:44px;height:44px;filter:drop-shadow(0 3px 6px #00000047)}
.leagues .rb-rim{fill:color-mix(in srgb,var(--tier) 62%,#000)}
.leagues .rb-face{fill:var(--tier)}
.leagues .rb-light{fill:#ffffff47}
.leagues .rb-shade{fill:#00000021}
.leagues .rb-star{fill:color-mix(in srgb,var(--tier) 40%,#000)}
.leagues .light .rb-star{fill:#ffffffeb}
@media(min-width:640px){.leagues{grid-template-columns:repeat(6,1fr)}}


.season-band .fine-note{color:#ffffff8c}
/* wildcards, in the Store's tints (app/store.css): a rail that rotates on its
   own. The track holds the ten cards twice and slides exactly half its width,
   so the loop has no seam. Half the gap comes off because the gap between the
   two sets counts too. */
.wc-rail{overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,#0000,#000 4%,#000 96%,#0000);
  mask-image:linear-gradient(90deg,#0000,#000 4%,#000 96%,#0000)}
.wc-track{display:flex;gap:12px;width:max-content;animation:wc-roll 72s linear infinite}
.wc-rail:hover .wc-track,.wc-rail:focus-within .wc-track{animation-play-state:paused}
@keyframes wc-roll{to{transform:translateX(calc(-50% - 6px))}}
@media(prefers-reduced-motion:reduce){
  .wc-rail{overflow-x:auto;scrollbar-width:none}
  .wc-rail::-webkit-scrollbar{display:none}
  .wc-track{animation:none}
}
.wc{flex:0 0 232px;border-radius:18px;padding:16px 16px 14px}
.wc i{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#ffffffa6}
.wc i svg{width:23px;height:23px}
.wc b{display:block;margin-top:13px;font:700 13px "Space Grotesk",sans-serif;letter-spacing:.01em;text-transform:uppercase}
.wc span{display:block;margin-top:6px;font-size:12.5px;line-height:1.4;color:#15151599}
.wc small{display:block;margin-top:10px;font:500 9.5px "IBM Plex Mono",monospace;letter-spacing:.14em}
.wc.peach{background:#ffe6da;color:#c2410c}
.wc.lilac{background:#ebe5ff;color:#5b4bc4}
.wc.pink{background:#ffe3ea;color:#c2185b}
.wc.mint{background:#dff3ea;color:#1f7a5c}
.wc.sky{background:#e2ecff;color:#2d5bd1}
.wc.yellow{background:#fff1c7;color:#8a6200}
.wc.sage{background:#e7eee1;color:#2f5d3a}





/* help center: the app's questions and answers */
.faq-group{margin:56px 0 16px;font:700 13px "IBM Plex Mono",monospace;letter-spacing:.16em;text-transform:uppercase;color:#15151599}
.faq{display:grid;gap:12px}
.faq details{border:1px solid #15151510;border-radius:20px;background:#fff;padding:0 22px;box-shadow:0 10px 30px #15151508}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;cursor:pointer;list-style:none;
  font:600 clamp(16px,2.2vw,19px)/1.3 "Space Grotesk",sans-serif}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;
  background:#ff6b3514;color:#FF6B35;font:600 22px/1 "Space Grotesk",sans-serif}
.faq details[open] summary:after{content:"−"}
.faq details p{margin:0 0 22px;max-width:62ch;font-size:15px;line-height:1.65;color:#000000a6}

/* start */
.cta-band{position:relative;overflow:hidden;border-radius:2rem;
  background:radial-gradient(90% 130% at 100% 100%,#FF6B35 0%,#a63a17 32%,#151515 72%);padding:clamp(2rem,6vw,4.5rem)}
.cta-die{position:absolute;right:clamp(10px,5vw,90px);top:50%;width:clamp(170px,26vw,320px);transform:translateY(-50%) rotate(calc(12deg + var(--drift,0) * 26deg));
  filter:drop-shadow(0 30px 40px #00000073)}
@media(max-width:767px){.cta-die{position:relative;right:auto;top:auto;display:block;margin:24px -10px -40px auto;width:170px;transform:rotate(calc(12deg + var(--drift,0) * 26deg))}}

/* ---------- the footer ---------- */
.site-foot{border-top:1px solid #15151512;background:#ffffff8c;padding:56px 0 30px}
.foot-top{display:grid;gap:40px}
@media(min-width:900px){.foot-top{grid-template-columns:1.15fr 2fr;gap:64px}}
.foot-brand p{margin:15px 0 0;max-width:36ch;font-size:14px;line-height:1.6;color:#151515a6}
.foot-cta{display:inline-flex;align-items:center;gap:8px;margin-top:20px;border-radius:999px;background:#151515;
  padding:11px 19px;font-size:13.5px;font-weight:600;color:#fff;transition:transform .2s,background .2s}
.foot-cta:hover{transform:translateY(-2px);background:#000}
.foot-cols{display:grid;grid-template-columns:repeat(2,1fr);gap:30px 20px}
@media(min-width:640px){.foot-cols{grid-template-columns:repeat(4,1fr)}}
.foot-cols h2{font:600 11px "IBM Plex Mono",monospace;letter-spacing:.16em;text-transform:uppercase;color:#15151599}
.foot-cols ul{display:grid;gap:11px;margin:15px 0 0;padding:0;list-style:none}
.foot-cols a{font-size:14px;color:#151515bf;transition:color .15s}
.foot-cols a:hover{color:#FF6B35}
.foot-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;
  margin-top:46px;border-top:1px solid #15151512;padding-top:22px}
.foot-bottom p{margin:0;font:500 11px "IBM Plex Mono",monospace;letter-spacing:.18em;text-transform:uppercase;color:#15151573}

/* the legal pages, until they have their text */
.legal-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.legal-list li{padding-left:20px;border-left:2px solid #ff6b3566;font-size:15px;line-height:1.55;color:#151515b3}

/* ---------- how it works: the phone holds still, its screen moves ---------- */
/* Compact rows keep the phone, progress and caption together below the header. */
.pin{position:relative;height:300vh;height:300svh}
.pin-stage{position:sticky;top:var(--site-header-height,80px);display:grid;place-items:center;align-content:center;height:calc(100svh - var(--site-header-height,80px));gap:14px}
.pin-phone{position:relative;overflow:hidden;width:min(250px,62vw);aspect-ratio:600/1298;
  border:9px solid #101010;border-radius:46px;background:#101010;box-shadow:0 30px 70px #00000038}
.pin-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:37px;
  opacity:0;transform:translateY(22px) scale(.97);transition:opacity .5s ease,transform .65s cubic-bezier(.22,.7,.3,1)}
.pin-shot.is-on{opacity:1;transform:none}
.pin-dots{display:flex;gap:7px}
.pin-dots i{width:7px;height:7px;border-radius:50%;background:#15151524;transition:.3s}
.pin-dots i.is-on{width:22px;border-radius:999px;background:#FF6B35}
.pin-caps{position:relative;width:min(340px,86vw);height:82px;text-align:center}
.pin-cap{position:absolute;inset:0;opacity:0;transform:translateY(8px);transition:opacity .4s,transform .4s}
.pin-cap.is-on{opacity:1;transform:none}
.pin-cap b{display:block;font:700 18px "Space Grotesk",sans-serif}
.pin-cap p{margin:7px 0 0;font-size:14.5px;line-height:1.5;color:#151515a6}
@media(max-width:1023px){
  .pin{height:calc(220svh - var(--site-header-height,80px));margin-top:28px}
  .pin-phone{width:min(250px,62vw,calc((100svh - var(--site-header-height,80px) - 150px) * 600 / 1298))}
}
@media(prefers-reduced-motion:reduce){.pin-shot,.pin-cap{transition:none;transform:none}}


/* ---------- things arrive as you reach them ---------- */
/* Nothing here is hidden until site.js puts .js on <html>, so a browser that
   never runs the script shows the whole page at once rather than nothing at
   all. --i deals siblings out one after another. */
.js [data-reveal]{opacity:0;transform:translateY(14px);
  transition:opacity .65s ease,transform .65s cubic-bezier(.22,.7,.3,1);
  transition-delay:calc(var(--i,0) * 70ms)}
.js [data-reveal].in{opacity:1;transform:none}
/* the rule under a header draws itself left to right */
.js [data-draw]{width:0;transition:width .7s cubic-bezier(.22,.7,.3,1) .15s}
.js [data-draw].in{width:72px}
@media(prefers-reduced-motion:reduce){
  .js [data-reveal]{opacity:1;transform:none;transition:none}
  .js [data-draw]{width:72px;transition:none}
}

/* The legal pages: terms.html, privacy.html and refunds.html, in /, /es/ and /fr/. */
.legal-doc{display:grid;gap:14px;font-size:16px;line-height:1.7;color:#151515b3}
.legal-doc h2{margin:30px 0 0;font-family:"Space Grotesk",sans-serif;font-size:1.5rem;font-weight:700;line-height:1.2;letter-spacing:-.02em;color:#151515}
.legal-doc h3{margin:12px 0 0;font-size:1.05rem;font-weight:600;color:#151515}
.legal-doc p,.legal-doc ul{margin:0}
.legal-doc ul{display:grid;gap:8px;padding-left:20px;list-style:disc}
.legal-doc li::marker{color:#FF6B35}
.legal-doc b{font-weight:600;color:#151515}
.legal-doc a{font-weight:600;color:#151515;text-decoration:underline;text-decoration-color:#FF6B35;text-decoration-thickness:2px;text-underline-offset:4px}

/* Full-bleed photography and quiet motion across the product story. */
#siteHeader{background:#111;border-color:#ffffff18;color:#fff}
#siteHeader .lang-switch a{color:#ffffff99}
#siteHeader .lang-switch a:hover,#siteHeader .lang-switch a[aria-current="page"]{color:#fff;background:#ffffff18}
#siteHeader nav>a:last-child{background:#ff6b35;color:#fff}
.hero-backdrop{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:65% center}
#top:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#100b08ed 0%,#100b08c7 35%,#100b0838 75%),linear-gradient(0deg,#100b0877,transparent 60%)}
#top .hero-layout{min-height:min(900px,calc(100svh - 80px));padding-block:64px;position:relative}
#top .hero-copy p,#top .hero-copy .font-mono{color:#ffffffb8}
#top .hero-copy b{color:#fff}
#top .ghost-btn{color:#fff;border-color:#ffffff66;background:#ffffff0a;backdrop-filter:blur(10px)}
#top .ghost-btn:hover{border-color:#fff;background:#ffffff1a}
.hero-phones:after{display:none}
.hero-phones .phone-front{right:24px;bottom:18px;width:240px}
.hero-note.a{left:12px;top:30px}
.lifestyle-photo{display:block;width:100%;object-fit:cover;border-radius:24px}
.party-photo{margin-top:32px;aspect-ratio:3/2;max-height:340px}
.pin-stage{isolation:isolate}
.step-photo{position:absolute;left:0;top:50%;width:42%;height:62%;object-fit:cover;border-radius:28px;transform:translateY(-50%) rotate(-4deg);z-index:-1;box-shadow:0 28px 60px #15151518}
.pin-phone{margin-left:25%}
.pin-dots,.pin-caps{margin-left:25%}
.wildcard-moment{position:relative;display:grid;grid-template-columns:1fr .6fr;align-items:center;gap:40px;margin-top:48px}
.wildcard-moment>.lifestyle-photo{height:440px;object-position:center}
.wildcard-moment>.phone{width:220px;justify-self:center;rotate:5deg}
.phone{animation:phone-float 7s ease-in-out infinite;animation-play-state:paused}
.phone.is-visible{animation-play-state:running}
.party-visual .phone{animation-delay:-2s}
.phone.glow{animation-delay:-4s}
@keyframes phone-float{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -12px;rotate:1deg}}
@media(max-width:1023px){
  #top .hero-layout{min-height:auto}
  .hero-phones{height:460px}
  .hero-phones .phone-front{width:200px;right:8%}
  .hero-backdrop{object-position:60% center}
}
@media(max-width:639px){
  #top .hero-layout{padding-top:28px;padding-bottom:36px;gap:22px}
  #top:before{background:linear-gradient(180deg,#100b08bb,#100b0833 48%,#100b08ee 78%)}
  .hero-backdrop{object-position:58% center}
  .hero-phones{height:290px}
  .hero-phones .phone-front{width:132px;right:6%;bottom:0}
  .hero-note.a{top:25px;left:0}
  .hero-copy>div.mt-7 .font-mono{font-size:10px;letter-spacing:.18em}
  .step-photo{width:58%;height:45%;left:-8px;opacity:.8}
  .pin-phone,.pin-dots,.pin-caps{margin-left:15%}
  .wildcard-moment{gap:0;grid-template-columns:1fr .6fr}
  .wildcard-moment>.lifestyle-photo{height:300px;border-radius:20px}
  .wildcard-moment>.phone{width:min(160px,36vw);margin-left:-30px;border-width:6px;border-radius:30px}
  .wildcard-moment>.phone img{border-radius:24px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .phone{animation:none}
}
