/* Gym Tycoon — marketing site. "Candy toy-box": chunky rounded forms, color-tinted
   shadows, pressable 3D buttons. Palette from game/core/palette.gd. */
:root {
  --sky:#46c2ff; --blue:#3f7bff; --yellow:#ffce3d; --pink:#ff6b9d;
  --green:#54cf6a; --teal:#33c9d8; --purple:#a578f0; --orange:#ff974d;
  --ink:#241f3a; --muted:#5f6781; --card:#ffffff;
  --bg-1:#cdedff; --bg-2:#e9fbef;
  --r: 22px;            /* card radius */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, #ffffff 100%);
  background-attachment: fixed;
  line-height: 1.62; font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,.brand span,.eyebrow,.btn { font-family: "Fredoka", "Nunito", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
img { max-width: 100%; height: auto; }   /* never stretch; fixed-size icons override via specificity */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Ambient candy blobs (behind everything) */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.blob-1 { width: 340px; height: 340px; top: -90px; left: -80px;
  background: radial-gradient(circle at 35% 30%, #bff0c9, transparent 70%); }
.blob-2 { width: 420px; height: 420px; top: 220px; right: -140px;
  background: radial-gradient(circle at 50% 50%, #ffe6a8, transparent 70%); opacity: .45; }
.blob-3 { width: 300px; height: 300px; top: 680px; left: -60px;
  background: radial-gradient(circle at 50% 50%, #c9deff, transparent 70%); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(40,60,90,.07); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 20px; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 10px -3px rgba(40,60,90,.35); }
.brand:hover { text-decoration: none; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 24px; font-weight: 700; }
.nav .links a { color: var(--ink); }
@media (max-width: 600px) { .nav .links { gap: 14px; font-size: 15px; } .brand span, .nav .links a:not(.btn) { display: none; } }

/* Buttons — pressable 3D candy */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 15px 28px; border-radius: 16px; font-weight: 600; font-size: 18px;
  color: #fff; border: none; cursor: pointer; letter-spacing: .2px;
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}
.btn-play { background: linear-gradient(180deg, #6ee07d, var(--green));
  box-shadow: 0 6px 0 #2ea84a, 0 18px 30px -12px rgba(46,168,74,.55); }
.btn-play:hover { filter: brightness(1.04); text-decoration: none; }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 #2ea84a, 0 9px 16px -10px rgba(46,168,74,.55); }
.btn-ic { font-size: 14px; }
.btn-ghost { background: #fff; color: var(--ink);
  box-shadow: 0 6px 0 #d4e1ee, 0 16px 28px -14px rgba(40,60,90,.4); }
.btn-ghost:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 2px 0 #d4e1ee; }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 13px;
  background: linear-gradient(180deg, #6ee07d, var(--green)); box-shadow: 0 4px 0 #2ea84a; }
.btn-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 #2ea84a; }

/* Eyebrow pill */
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #2a8f57;
  background: rgba(84,207,106,.16); padding: 7px 15px; border-radius: 999px;
}
.eyebrow.center { display: block; width: fit-content; margin: 0 auto 14px; }

/* Hero */
.hero { text-align: center; padding: 56px 0 30px; }
.hero-inner > .eyebrow { animation: rise .6s .02s both; }
.hero-title {
  font-size: clamp(52px, 11vw, 104px); font-weight: 700; line-height: .98;
  letter-spacing: -1.5px; margin: 16px 0 2px;
  text-shadow: 0 3px 0 #fff, 0 8px 0 rgba(84,207,106,.22), 0 22px 30px -16px rgba(46,168,74,.4);
  animation: pop .7s .06s both;
}
.tag { font-family: "Fredoka", sans-serif; color: var(--pink); font-weight: 600;
  font-size: clamp(20px, 3.6vw, 28px); animation: rise .6s .12s both; }
.sub { color: var(--muted); max-width: 600px; margin: 16px auto 26px; font-size: 18px;
  font-weight: 600; animation: rise .6s .18s both; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise .6s .24s both; }
.beta-note { margin-top: 16px; color: var(--muted); font-size: 14.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; animation: rise .6s .3s both; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(84,207,106,.6); animation: pulse 1.8s infinite; }

/* Hero art — the feature graphic as a tilted sticker + floating candy chips */
.hero-art { position: relative; max-width: 760px; margin: 42px auto 0; animation: rise .8s .34s both; }
.hero-shot { width: 100%; display: block; border-radius: 26px; border: 8px solid #fff;
  box-shadow: 0 44px 70px -34px rgba(40,60,90,.55); transform: rotate(-1.4deg); }
.chip { position: absolute; display: grid; place-items: center; border-radius: 50%;
  color: #fff; font-family: "Fredoka", sans-serif; font-weight: 700; }
.chip-coin { width: 66px; height: 66px; font-size: 30px; top: -26px; left: -22px;
  background: linear-gradient(180deg, #ffe06b, var(--yellow));
  box-shadow: 0 6px 0 #d9a017, 0 18px 26px -10px rgba(217,160,23,.6); animation: floaty 5s ease-in-out infinite; }
.chip-star { width: 56px; height: 56px; font-size: 26px; top: 40%; right: -26px;
  background: linear-gradient(180deg, #ff8fb6, var(--pink));
  box-shadow: 0 6px 0 #d34d77, 0 16px 24px -10px rgba(211,77,119,.6); animation: floaty 6.5s ease-in-out .6s infinite; }
.chip-bell { width: 74px; height: 74px; bottom: -28px; right: 9%; background: #fff;
  box-shadow: 0 7px 0 #cdd9e6, 0 20px 30px -12px rgba(40,60,90,.45); animation: floaty 5.8s ease-in-out .3s infinite; }
.chip-bell img { width: 56px; height: 56px; }
@media (max-width: 560px) { .chip { transform: scale(.78); } .chip-coin { left: -8px; } .chip-star { right: -8px; } }

/* Sections */
.section { padding: 60px 0; }
.section h2 { text-align: center; font-size: clamp(30px, 5.2vw, 46px); font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 8px; }
.lead { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 36px;
  font-size: 18px; font-weight: 600; }

/* Features — chunky accent cards (per-card --c) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border-radius: var(--r); padding: 26px 24px 28px;
  border-bottom: 5px solid color-mix(in srgb, var(--c) 72%, #1b1430 14%);
  box-shadow: 0 24px 42px -24px color-mix(in srgb, var(--c) 60%, transparent);
  transition: transform .18s cubic-bezier(.2,.8,.3,1.3), box-shadow .18s ease;
}
.feature:hover { transform: translateY(-7px) rotate(-.7deg);
  box-shadow: 0 34px 54px -22px color-mix(in srgb, var(--c) 65%, transparent); }
.feature .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 14px; background: var(--c);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 72%, #1b1430 22%); }
.feature h3 { font-size: 21px; font-weight: 600; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: 15.5px; font-weight: 600; }

/* Screenshots — a centered toy shelf. aspect-ratio + object-fit guarantee the 9:16
   phone shape (no stretching); flex-wrap + center keeps it centered at every width. */
.shots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 18px; padding: 26px 4px 30px; }
.shots img { width: clamp(148px, 27vw, 186px); aspect-ratio: 720 / 1280; height: auto;
  object-fit: cover; display: block; border-radius: 24px; background: #fff; border: 6px solid #fff;
  box-shadow: 0 26px 44px -24px rgba(40,60,90,.5); transition: transform .2s ease; }
.shots img:nth-child(odd) { transform: rotate(-2.2deg); }
.shots img:nth-child(even) { transform: rotate(2.2deg) translateY(8px); }
.shots img:hover { transform: rotate(0) translateY(-6px) scale(1.04); }

/* CTA band — bold candy slab */
.band { position: relative; overflow: hidden; color: #fff; border-radius: 30px;
  padding: 52px 28px; text-align: center; margin: 24px 0 10px;
  background: linear-gradient(125deg, var(--green) 0%, var(--teal) 55%, var(--sky) 100%);
  box-shadow: 0 30px 55px -24px rgba(51,201,216,.6); }
.band::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.16); top: -90px; right: -50px; }
.band h2 { color: #fff; position: relative; }
.band p { position: relative; opacity: .96; margin: 10px auto 24px; max-width: 540px;
  font-size: 18px; font-weight: 600; }
.btn-on-band { position: relative; }

/* Footer */
.footer { padding: 50px 0 64px; color: var(--muted); text-align: center; }
.foot-brand { justify-content: center; margin-bottom: 16px; }
.footer .links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; font-weight: 700; }
.footer .links a { color: var(--ink); }
.copyright { font-size: 14px; font-weight: 600; }

/* Legal pages (privacy / terms / data-deletion) */
.legal { background: #fff; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(40,60,90,.4);
  padding: 44px; margin: 40px auto 64px; max-width: 860px; border-bottom: 5px solid #e7edf4; }
.legal h1 { font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin-bottom: 24px; font-weight: 600; }
.legal h2 { font-size: 23px; font-weight: 600; margin: 28px 0 8px; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 18px 0 6px; }
.legal p, .legal li { color: #3a4250; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid #e6ebf1; padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: #f3f8fc; }
.legal a.back { display: inline-block; margin-bottom: 18px; font-weight: 700; }
@media (max-width: 540px) { .legal { padding: 26px; } }

/* Motion keyframes + reduced-motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(84,207,106,.55); } 70% { box-shadow: 0 0 0 9px rgba(84,207,106,0); } 100% { box-shadow: 0 0 0 0 rgba(84,207,106,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
