/* festiplayb.com — festive night sky + warm paper, gold accents */
/* Fredoka (SIL Open Font License), self-hosted: no third-party requests */
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-display: swap; src: url(fonts/fredoka-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-display: swap; src: url(fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #1B1046;
  --night2: #3A1A78;
  --plum: #6B1F72;
  --ink: #2A1A44;
  --soft: #66597A;
  --gold: #FFC93C;
  --gold2: #FFE58A;
  --paper: #FFFAF1;
  --line: #EEE3F7;
  --radius: 28px;
  --round: Fredoka, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #6E3BE0; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.1; margin: 0; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(27, 16, 70, .72); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .in { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-family: var(--round); font-size: 28px; font-weight: 700; text-decoration: none; letter-spacing: .5px;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 0 4px 0 rgba(20, 8, 40, .35); }
.top nav { display: flex; gap: 22px; font-family: var(--round); }
.top nav a { color: #F4E8FF; text-decoration: none; font-weight: 500; opacity: .9; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); opacity: 1; }
.top .cta-s { border: 1px solid rgba(255, 201, 60, .6); color: var(--gold); border-radius: 999px; padding: 4px 14px; }

/* ---------- logo letters ---------- */
.rb span:nth-child(1) { color: #FF5A3C } .rb span:nth-child(2) { color: #FFA51F } .rb span:nth-child(3) { color: #FFC400 }
.rb span:nth-child(4) { color: #2FBF5B } .rb span:nth-child(5) { color: #12B5C9 } .rb span:nth-child(6) { color: #3D8BFF }
.rb span:nth-child(7) { color: #8E5BFF } .rb span:nth-child(8) { color: #E8457A } .rb span:nth-child(9) { color: #F05A87 }
.rb span:nth-child(10) { color: #8F00FF }

/* ---------- night sections ---------- */
.night { position: relative; overflow: hidden; color: #FFF6E8;
  background:
    radial-gradient(ellipse 55% 45% at 82% 8%, rgba(227, 64, 208, .32), transparent 70%),
    radial-gradient(ellipse 45% 40% at 12% 22%, rgba(255, 170, 60, .22), transparent 70%),
    linear-gradient(170deg, var(--night) 0%, var(--night2) 48%, var(--plum) 100%); }
.night .stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 75% 55%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 45%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 20% 85%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 65% 88%, #fff 50%, transparent 51%);
  opacity: .7; animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35 } to { opacity: .85 } }
.lantern { position: absolute; width: 16px; height: 21px; border-radius: 6px; background: linear-gradient(#FFD978, #FF8A3D);
  box-shadow: 0 0 22px 8px rgba(255, 170, 60, .4); animation: float 7s ease-in-out infinite; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* ---------- hero ---------- */
.hero .in { position: relative; max-width: 1160px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) 24px clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-block; font-family: var(--round); font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gold2); border: 1px solid rgba(255, 229, 138, .35); border-radius: 999px; padding: 5px 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; letter-spacing: .3px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #FFE58A, #FF9F6B 55%, #FF7AC6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 1.7vw, 20px); color: #EBDDFB; margin: 18px 0 26px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; background: #fff; color: #111; text-decoration: none; border-radius: 14px;
  padding: 9px 20px; line-height: 1.15; box-shadow: 0 10px 30px rgba(10, 0, 30, .35); }
.store small { font-size: 11.5px; opacity: .7; } .store b { font-size: 20px; font-family: var(--body); letter-spacing: -.2px; }
.ghost { color: #fff; font-family: var(--round); text-decoration: none; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); }
.ghost:hover { border-color: var(--gold); color: var(--gold); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 14.5px; color: #D9C8F2; }
.trust span::before { content: '✦'; color: var(--gold); margin-right: 7px; }

/* grid children may shrink below their image's natural width */
.hero .in > *, .ways > *, .values > * { min-width: 0; }

/* device frame */
.ipad { position: relative; border-radius: 34px; padding: 14px; background: linear-gradient(145deg, #2B2340, #0E0A1A);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px rgba(5, 0, 20, .55), 0 0 120px rgba(255, 170, 60, .18); }
.ipad img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero .ipad { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .6s ease; }
.hero .ipad:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }

/* ---------- light sections ---------- */
.sec { max-width: 1160px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) 24px; }
.sec .kicker { font-family: var(--round); color: #C2308F; letter-spacing: 1.2px; text-transform: uppercase; font-size: 14px; }
.sec h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 8px 0 14px; }
.sec p.sub { color: var(--soft); font-size: 18px; max-width: 640px; margin: 0 0 34px; }
.center { text-align: center; } .center p.sub { margin-left: auto; margin-right: auto; }

.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .25s, box-shadow .25s; }
.way:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(60, 20, 100, .12); }
.way .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px;
  background: var(--c); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.way h3 { font-size: 22px; margin-bottom: 6px; }
.way p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 26px; overflow-x: auto; padding: 8px 24px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 1400px; margin: 0 auto; }
.gallery::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; margin: 0; }
.shot .ipad { padding: 11px; border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 26px 50px rgba(5, 0, 20, .45); }
.shot .ipad img { border-radius: 18px; }
.shot figcaption { margin-top: 14px; font-family: var(--round); font-size: 19px; color: #fff; }
.shot figcaption small { display: block; font-family: var(--body); font-size: 14.5px; color: #D9C8F2; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #fff, #FFF8EC); border: 1px solid var(--line); }
.value b { display: block; font-family: var(--round); font-size: 19px; margin-bottom: 4px; }
.value span { color: var(--soft); font-size: 15.5px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; justify-content: center; }
.plan { position: relative; border-radius: var(--radius); padding: 28px 26px; background: #fff; border: 1.5px solid var(--line); text-align: left; }
.plan.best { border: 2px solid var(--gold); background: linear-gradient(180deg, #FFFBEA, #fff); box-shadow: 0 22px 50px rgba(255, 180, 40, .2); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--gold); color: #3A1A78; font-family: var(--round); font-weight: 700;
  font-size: 12.5px; letter-spacing: .6px; border-radius: 999px; padding: 4px 12px; }
.plan h3 { font-size: 22px; color: var(--soft); font-weight: 500; }
.plan .p { font-family: var(--round); font-size: 44px; font-weight: 700; margin: 6px 0 0; }
.plan .p small { font-size: 17px; color: var(--soft); font-weight: 500; }
.plan .in { color: var(--soft); margin: 2px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 15.5px; }
.plan li { padding: 4px 0; } .plan li::before { content: '✓'; color: #22A35A; font-weight: 700; margin-right: 9px; }
.note { color: var(--soft); font-size: 14.5px; margin-top: 22px; }

/* closing band */
.band .in { max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 90px) 24px; text-align: center; position: relative; }
.band h2 { font-size: clamp(30px, 4vw, 48px); }
.band p { color: #EBDDFB; font-size: 18px; margin: 14px 0 26px; }

/* footer */
.foot { background: var(--night); color: #CDBDE6; font-size: 14.5px; }
.foot .in { max-width: 1160px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot a { color: #E9DCFF; text-decoration: none; margin-left: 18px; } .foot a:hover { color: var(--gold); }

/* ---------- document pages (privacy, support) ---------- */
.page-head { text-align: center; padding: clamp(40px, 6vw, 70px) 24px clamp(70px, 9vw, 110px); position: relative; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { color: #EBDDFB; margin: 10px 0 0; }
.doc { position: relative; max-width: 860px; margin: -60px auto 70px; padding: clamp(28px, 4vw, 52px); background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(40, 10, 80, .14); font-size: 16.5px; line-height: 1.7; }
.doc h2 { font-size: 23px; margin: 30px 0 8px; color: #4B22B8; }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 22px; } .doc li { margin: 4px 0; }
.callout { background: linear-gradient(135deg, #FFF6D6, #FDEBF6); border: 1px solid #FFDF8F; border-radius: 18px; padding: 16px 20px; margin: 0 0 8px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 2px 18px; margin: 10px 0; background: #fff; transition: box-shadow .2s; }
details[open] { box-shadow: 0 10px 26px rgba(91, 43, 214, .09); border-color: #D9C6F5; }
summary { cursor: pointer; font-family: var(--round); font-size: 18px; font-weight: 500; padding: 12px 0; list-style: none; position: relative; padding-right: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 9px; font-size: 22px; color: #8E5BFF; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 14px; color: #3D3054; }

@media (max-width: 900px) {
  .hero .in { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .actions, .trust { justify-content: center; }
  .hero .ipad { transform: none; }
  .ways { grid-template-columns: 1fr 1fr; } .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .top nav { gap: 14px; font-size: 15px; } .top .cta-s { display: none; }
  .ways, .values, .plans { grid-template-columns: 1fr; }
  .foot .in { flex-direction: column; text-align: center; } .foot a { margin: 0 9px; }
}
@media (prefers-reduced-motion: reduce) { .lantern, .night .stars { animation: none; } .hero .ipad { transition: none; } }
